comparison src/text.h @ 4137:1ce0622a56a3

[xemacs-hg @ 2007-08-22 15:10:10 by aidan] Patch from Nix; fix buffer overrun in pdump_load() See 87y7r4lzwf.fsf@hades.wkstn.nix , also http://calypso.tux.org/pipermail/xemacs-patches/2006-October/000017.html for explanation
author aidan
date Wed, 22 Aug 2007 15:10:19 +0000
parents d30cd499e445
children 1a14c304cb8e
comparison
equal deleted inserted replaced
4136:db22824aa020 4137:1ce0622a56a3
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)
2991 #define wext_strlen wcslen 2992 #define wext_strlen wcslen
2992 #define wext_strcmp wcscmp 2993 #define wext_strcmp wcscmp
2993 #define wext_strncmp wcsncmp 2994 #define wext_strncmp wcsncmp
2994 #define wext_strcmp_ascii wcscmp_ascii 2995 #define wext_strcmp_ascii wcscmp_ascii
2995 #define wext_strncmp_ascii wcsncmp_ascii 2996 #define wext_strncmp_ascii wcsncmp_ascii
3011 #define wext_access _waccess 3012 #define wext_access _waccess
3012 #define wext_stat _wstat 3013 #define wext_stat _wstat
3013 #else 3014 #else
3014 #define WEXTTEXT_ZTERM_SIZE sizeof (char) 3015 #define WEXTTEXT_ZTERM_SIZE sizeof (char)
3015 #define WEXTSTRING(arg) arg 3016 #define WEXTSTRING(arg) arg
3017 #define MAX_XETCHAR_SIZE sizeof (char)
3016 #define wext_strlen strlen 3018 #define wext_strlen strlen
3017 #define wext_strcmp strcmp 3019 #define wext_strcmp strcmp
3018 #define wext_strncmp strncmp 3020 #define wext_strncmp strncmp
3019 #define wext_strcmp_ascii strcmp 3021 #define wext_strcmp_ascii strcmp
3020 #define wext_strncmp_ascii strncmp 3022 #define wext_strncmp_ascii strncmp