--- deliantra/server/include/cfperl.h 2007/08/06 10:54:12 1.86 +++ deliantra/server/include/cfperl.h 2007/08/30 07:28:25 1.88 @@ -57,6 +57,7 @@ #undef gethostbyname #undef ctime #undef strerror +#undef _ // same here, massive symbol spamming #undef do_open @@ -71,6 +72,11 @@ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +#define _(msg) (msg) +#define N_(msg) (msg) + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + // some macros to simplify perl in-calls #define CHECK_ERROR \ @@ -208,7 +214,17 @@ } // set a custom key to the given value, or delete it if value = 0 - void set_key (const char *key, const char *value = 0); + void set_key (const char *key, const char *value = 0, bool is_utf8 = 0); + + void set_key_text (const char *key, const char *value = 0) + { + set_key (key, value, 1); + } + + void set_key_data (const char *key, const char *value = 0) + { + set_key (key, value, 0); + } attachable &operator =(const attachable &src);