comparison src/text.h @ 4388:1a14c304cb8e

Don't use PATH_MAX_EXTERNAL, non-Win32. 2008-01-08 Aidan Kehoe <kehoea@parhasard.net> * text.h (MAX_XETCHAR_SIZE): Remove, eliminating a redefinition warning on Win32. * dumper.c (pdump_load): Don't use PATH_MAX_EXTERNAL, instead allocate enough for the path + DUMP_SLACK (space for .dmp and version information), already used on Win32 and #defined to be 100.
author Aidan Kehoe <kehoea@parhasard.net>
date Wed, 09 Jan 2008 00:28:17 +0100
parents 1ce0622a56a3
children bc4f2511bbea
comparison
equal deleted inserted replaced
4387:9aa16aa434b6 4388:1a14c304cb8e
2986 #ifdef WEXTTEXT_IS_WIDE /* defined under MS Windows i.e. WIN32_NATIVE */ 2986 #ifdef WEXTTEXT_IS_WIDE /* defined under MS Windows i.e. WIN32_NATIVE */
2987 #define WEXTTEXT_ZTERM_SIZE sizeof (wchar_t) 2987 #define WEXTTEXT_ZTERM_SIZE sizeof (wchar_t)
2988 /* Extra indirection needed in case of manifest constant as arg */ 2988 /* Extra indirection needed in case of manifest constant as arg */
2989 #define WEXTSTRING_1(arg) L##arg 2989 #define WEXTSTRING_1(arg) L##arg
2990 #define WEXTSTRING(arg) WEXTSTRING_1(arg) 2990 #define WEXTSTRING(arg) WEXTSTRING_1(arg)
2991 #define MAX_XETCHAR_SIZE sizeof (WCHAR)
2992 #define wext_strlen wcslen 2991 #define wext_strlen wcslen
2993 #define wext_strcmp wcscmp 2992 #define wext_strcmp wcscmp
2994 #define wext_strncmp wcsncmp 2993 #define wext_strncmp wcsncmp
2995 #define wext_strcmp_ascii wcscmp_ascii 2994 #define wext_strcmp_ascii wcscmp_ascii
2996 #define wext_strncmp_ascii wcsncmp_ascii 2995 #define wext_strncmp_ascii wcsncmp_ascii
3012 #define wext_access _waccess 3011 #define wext_access _waccess
3013 #define wext_stat _wstat 3012 #define wext_stat _wstat
3014 #else 3013 #else
3015 #define WEXTTEXT_ZTERM_SIZE sizeof (char) 3014 #define WEXTTEXT_ZTERM_SIZE sizeof (char)
3016 #define WEXTSTRING(arg) arg 3015 #define WEXTSTRING(arg) arg
3017 #define MAX_XETCHAR_SIZE sizeof (char)
3018 #define wext_strlen strlen 3016 #define wext_strlen strlen
3019 #define wext_strcmp strcmp 3017 #define wext_strcmp strcmp
3020 #define wext_strncmp strncmp 3018 #define wext_strncmp strncmp
3021 #define wext_strcmp_ascii strcmp 3019 #define wext_strcmp_ascii strcmp
3022 #define wext_strncmp_ascii strncmp 3020 #define wext_strncmp_ascii strncmp