a188c72002-03-12Martin Stjernholm // -*- pike -*- // // $Id: roxen.h,v 1.23 2002/03/12 13:18:27 mast Exp $
16188f2000-07-15Henrik Grubbström (Grubba) 
b1fca01996-11-12Per Hedbor #ifndef _ROXEN_H_
b878961999-11-06Per Hedbor 
b1fca01996-11-12Per Hedbor #define _ROXEN_H_ #include <config.h> #define HOST_TO_IP 'H' #define IP_TO_HOST 'I'
0e78081998-10-13Henrik Grubbström (Grubba) // Localization support
16188f2000-07-15Henrik Grubbström (Grubba)  #ifndef __LOCALEOBJECT #ifdef IN_ROXEN
c6ea9e2000-11-21Per Hedbor mixed get_locale(); #define __LOCALE (get_locale)
16188f2000-07-15Henrik Grubbström (Grubba) #else /* !IN_ROXEN */
c6ea9e2000-11-21Per Hedbor #define __LOCALE (roxen.get_locale)
16188f2000-07-15Henrik Grubbström (Grubba) #endif /* IN_ROXEN */ #endif /* !__LOCALEOBJECT */
d05f9c2000-07-11Martin Nilsson #ifndef _STR_LOCALE
c6ea9e2000-11-21Per Hedbor #define _STR_LOCALE(X, Y, Z) Locale.translate(X, __LOCALE(), Y, Z)
16188f2000-07-15Henrik Grubbström (Grubba) #endif /* !_STR_LOCALE */
d05f9c2000-07-11Martin Nilsson 
b9a7022000-07-15Andreas Lange #ifndef _DEF_LOCALE
79ca872000-11-24Per Hedbor # define _DEF_LOCALE(X, Y, Z) ([object(Locale.DeferredLocale)|string]((mixed)Locale.DeferredLocale(X,__LOCALE,Y,Z)))
16188f2000-07-15Henrik Grubbström (Grubba) #endif /* !_DEF_LOCALE */
b9a7022000-07-15Andreas Lange 
1c783c2000-07-15Andreas Lange #ifndef _LOCALE_FUN
c6ea9e2000-11-21Per Hedbor #define _LOCALE_FUN(X, Y, Z) Locale.call(X, __LOCALE(), Y, Z)
16188f2000-07-15Henrik Grubbström (Grubba) #endif /* !_LOCALE_FUN */
a188c72002-03-12Martin Stjernholm // Debug macros. #ifdef DEBUG #define DO_IF_DEBUG(X...) X #else #define DO_IF_DEBUG(X...) #endif
16188f2000-07-15Henrik Grubbström (Grubba) #endif /* !_ROXEN_H_ */