Branch: Tag:

1998-10-12

1998-10-12 23:26:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added a few localization macros.

Rev: server/etc/include/roxen.h:1.7

1: - // $Id: roxen.h,v 1.6 1998/03/02 18:28:29 grubba Exp $ + // $Id: roxen.h,v 1.7 1998/10/12 23:26:29 grubba Exp $   #ifndef _ROXEN_H_   #define _ROXEN_H_   #include <config.h>
8:      #define perror roxen_perror    + // Localization support + #ifndef LOW_LOCALE + #ifdef THREADS + #ifdef IN_ROXEN + #define LOW_LOCALE locale->get() + #define SET_LOCALE(X) locale->set(X) + #else + #define LOW_LOCALE roxen->locale->get() + #define SET_LOCALE(X) roxen->locale->set(X) + #endif /* IN_ROXEN */ + #else /* !THREADS */ + #ifdef IN_ROXEN + #define LOW_LOCALE locale + #else + #define LOW_LOCALE roxen->locale + #endif /* IN_ROXEN */ + #define SET_LOCALE(X) LOW_LOCALE=(X) + #endif /* THREADS */ + #endif /* !LOW_LOCALE */ +    #define CONFIGURATION_FILE_LEVEL 6      #ifdef DEBUG_LEVEL