55a8662000-11-20Per Hedbor // $Id: roxen.h,v 1.19 2000/11/20 13:36:35 per Exp $
16188f2000-07-15Henrik Grubbström (Grubba) // -*- Pike -*-
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'
ff66f71997-03-03Henrik Grubbström (Grubba) #define perror roxen_perror
0e78081998-10-13Henrik Grubbström (Grubba) // Localization support
16188f2000-07-15Henrik Grubbström (Grubba)  #ifndef __LOCALEOBJECT #ifdef IN_ROXEN
55a8662000-11-20Per Hedbor #define __LOCALEOBJECT roxenp()["locale"]
16188f2000-07-15Henrik Grubbström (Grubba) #else /* !IN_ROXEN */ #define __LOCALEOBJECT roxen.locale #endif /* IN_ROXEN */ #endif /* !__LOCALEOBJECT */
d05f9c2000-07-11Martin Nilsson #ifndef _STR_LOCALE
a316582000-07-19Andreas Lange #define _STR_LOCALE(X, Y, Z) \
e5ee292000-09-24Martin Nilsson  (Locale.translate(X, __LOCALEOBJECT->get(), Y, Z))
16188f2000-07-15Henrik Grubbström (Grubba) #endif /* !_STR_LOCALE */
d05f9c2000-07-11Martin Nilsson 
b9a7022000-07-15Andreas Lange #ifndef _DEF_LOCALE
55a8662000-11-20Per Hedbor # ifndef GETLOCLANG # ifdef IN_ROXEN # define GETLOCLANG (this_object()->locale->get) # else # define GETLOCLANG roxen.get_locale # endif # endif # define _DEF_LOCALE(X, Y, Z) Locale.DeferredLocale(X, GETLOCLANG, Y, Z)
16188f2000-07-15Henrik Grubbström (Grubba) #endif /* !_DEF_LOCALE */
b9a7022000-07-15Andreas Lange 
1c783c2000-07-15Andreas Lange #ifndef _LOCALE_FUN
16188f2000-07-15Henrik Grubbström (Grubba) #define _LOCALE_FUN(X, Y, Z) \
e5ee292000-09-24Martin Nilsson  (Locale.call(X, __LOCALEOBJECT->get(), Y, Z))
16188f2000-07-15Henrik Grubbström (Grubba) #endif /* !_LOCALE_FUN */ #endif /* !_ROXEN_H_ */