bit neater talloc_asprintf() implementation
[vlendec/samba-autobuild/.git] / source3 / include / webintl.h
1 #ifndef I18N_H_INCLUDED
2 #define I18N_H_INCLUDED 1
3
4 /*
5  * I18N_ORIGINAL_LANG ...the language of the original document files (*.html).
6  */
7 #define I18N_ORIGINAL_LANG "en"
8
9 /* these constants are defined in Makefile.
10  *
11  * I18N_PACKAGE ...package name "i18n_swat" defined in configure.in.
12  * I18N_LOCALEDIR ...directory to put message catalogs.
13  * I18N_LOCALE_FILE ...filename of the language-locale map file.
14  */
15
16 #ifdef ENABLE_NLS
17 #define I18N_GETTEXT 1
18 #endif /* ENABLE_NLS */
19
20 /* if NLS is disabled (ENABLE_NLS == 0), configure script will
21  * automatically creates intl/libintl.h -> intl/libgettext.h (symlink)
22  * and gettext(str) is defined as (str) in that file.
23  */
24 #include <libintl.h>
25 #define _(String) gettext(String)
26 #define N_(String) (String)
27
28 #if I18N_SWAT
29 #define LN_(fname) ln_get_pref_file_n_o(fname)
30 #else
31 #define LN_(fname) (fname)
32 #endif /* I18N_SWAT */
33
34 /* global function pointers defined in kanji.c. */
35 extern char *(*dos_to_dos)(char *to, const char *from);
36
37 /* ******************************************************************
38  * macros for debugging.
39  ***************************************************************** */
40 #define LN_R_NODEBUG 1
41 #ifdef LN_R_NODEBUG
42 #define rassert(b) (void)0
43 #define rstrace(s) (void)0
44
45 #else
46 void ln_debug_error(const char *info, int nLine);
47 void rassert_help(BOOL b, int l);
48 #define rassert(b) rassert_help((BOOL)(b), (__LINE__))
49 #define rstrace(s) ln_debug_error((s), (__LINE__))
50 #endif /* LN_R_NODEBUG */
51
52 #endif /* I18N_H_INCLUDED */