d05f9c2000-07-11Martin Nilsson // $Id: roxen.h,v 1.12 2000/07/11 01:46:03 nilsson Exp $
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
d05f9c2000-07-11Martin Nilsson #ifndef _DEF_LOCALE
d846882000-07-10Martin Nilsson # if constant(Locale.translate)
d05f9c2000-07-11Martin Nilsson # define _DEF_LOCALE(X,Y) ([string](mixed)Locale.DeferredLocale(GETLOCOBJ,X,Y))
d846882000-07-10Martin Nilsson # else
d05f9c2000-07-11Martin Nilsson # define _DEF_LOCALE(X,Y) ([string](mixed)RoxenLocale.DeferredLocale(GETLOCOBJ,X,Y)) # endif #endif #ifndef _STR_LOCALE # if constant(Locale.translate) # ifdef IN_ROXEN # define _STR_LOCALE(Z,X,Y) (Locale.translate(locale->get()->Z, X, Y)) # else # define _STR_LOCALE(Z,X,Y) (Locale.translate(roxen.locale->get()->Z, X, Y)) # endif # else # ifdef IN_ROXEN # define _STR_LOCALE(Z,X,Y) (RoxenLocale.translate(locale->get()->Z, X, Y)) # else # define _STR_LOCALE(Z,X,Y) (RoxenLocale.translate(roxen.locale->get()->Z, X, Y)) # endif # endif #endif #ifndef LOCALE_PROJECT
d846882000-07-10Martin Nilsson # ifdef IN_ROXEN
d05f9c2000-07-11Martin Nilsson # define LOCALE_PROJECT(X) static inline object GETLOCOBJ() {return locale->get()->X;}
d846882000-07-10Martin Nilsson # else
d05f9c2000-07-11Martin Nilsson # define LOCALE_PROJECT(X) static inline object GETLOCOBJ() {return roxen.locale->get()->X;} # endif #endif
0e78081998-10-13Henrik Grubbström (Grubba) 
b878961999-11-06Per Hedbor #endif /* _ROXEN_H_ */