1 | | |
2 | | |
3 | | |
4 | | |
5 | | |
6 | | |
7 | | |
8 | | |
9 | | |
10 | | |
11 | | |
12 | | |
13 | | |
14 | | |
15 | | |
16 | | |
17 | | |
18 | | |
19 | | |
20 | | |
21 | | |
22 | | |
23 | | |
24 | | |
25 | | |
26 | | |
27 | | |
28 | | |
29 | | |
30 | | |
31 | | |
32 | | |
33 | | |
34 | | |
35 | | |
36 | | |
37 | | |
38 | | |
39 | | |
40 | | |
41 | | |
42 | | |
43 | | |
44 | | |
45 | | |
46 | | |
| | #ifndef _ROXEN_H_ | | #define _ROXEN_H_ | #include <config.h> | #define HOST_TO_IP 'H' | #define IP_TO_HOST 'I' | | #define perror roxen_perror | | | #ifndef _STR_LOCALE | # if constant(Locale.translate) | # ifdef IN_ROXEN | # define _STR_LOCALE(Z,X,Y) (Locale.translate(Z, locale->get(), X, Y)) | # else | # define _STR_LOCALE(Z,X,Y) (Locale.translate(Z, roxen.locale->get(), X,Y)) | # endif | # else | # ifdef IN_ROXEN | # define _STR_LOCALE(Z,X,Y) (RoxenLocale.translate(Z, locale->get(), X, Y)) | # else | # define _STR_LOCALE(Z,X,Y) (RoxenLocale.translate(Z, roxen.locale->get(), X, Y)) | # endif | # endif | #endif | | #ifndef _DEF_LOCALE | # if constant(Locale.translate) | # define _DEF_LOCALE(Z,X,Y) ([string](mixed)Locale.DeferredLocale(Z,GETLOCLANG,X,Y)) | # else | # define _DEF_LOCALE(Z,X,Y) ([string](mixed)RoxenLocale.DeferredLocale(Z,GETLOCLANG,X,Y)) | # endif | #endif | | #ifndef USE_DEFERRED_LOCALE | # ifdef IN_ROXEN | # define USE_DEFERRED_LOCALE static inline string GETLOCLANG() {return locale->get();} | # else | # define USE_DEFERRED_LOCALE static inline string GETLOCLANG() {return roxen.locale->get();} | # endif | #endif | | #endif /* _ROXEN_H_ */ | | |
|