a188c72002-03-12Martin Stjernholm // -*- pike -*- //
ed4e2d2003-03-05Martin Stjernholm // $Id: roxen.h,v 1.24 2003/03/05 13:50:42 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 */
ed4e2d2003-03-05Martin Stjernholm // Needed to get core dumps of seteuid()'ed processes on Linux. #if constant(System.dumpable) #define enable_coredumps(X) System.dumpable(X) #elif constant(system.dumpable) // Pike 7.2. #define enable_coredumps(X) system.dumpable(X) #else #define enable_coredumps(X) #endif
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_ */