Changeset 27730 in webkit for trunk/JavaScriptCore/JavaScriptCorePrefix.h
- Timestamp:
- Nov 12, 2007, 3:04:41 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/JavaScriptCorePrefix.h
r26688 r27730 1 #ifdef __cplusplus2 #define new ("if you use new/delete make sure to include config.h at the top of the file"())3 #define delete ("if you use new/delete make sure to include config.h at the top of the file"())4 #endif5 6 1 #ifdef __cplusplus 7 2 #define NULL __null … … 9 4 #define NULL ((void *)0) 10 5 #endif 11 12 #include "config.h"13 6 14 7 #include <ctype.h> … … 28 21 #ifdef __cplusplus 29 22 30 /* Work around bug 3553309 by re-including <ctype.h>. */31 #include <cctype>32 #define isalnum(c) __istype((c), (_CTYPE_A|_CTYPE_D))33 #define isalpha(c) __istype((c), _CTYPE_A)34 #define iscntrl(c) __istype((c), _CTYPE_C)35 #define isdigit(c) __isctype((c), _CTYPE_D) /* ANSI -- locale independent */36 #define isgraph(c) __istype((c), _CTYPE_G)37 #define islower(c) __istype((c), _CTYPE_L)38 #define isprint(c) __istype((c), _CTYPE_R)39 #define ispunct(c) __istype((c), _CTYPE_P)40 #define isspace(c) __istype((c), _CTYPE_S)41 #define isupper(c) __istype((c), _CTYPE_U)42 #define isxdigit(c) __isctype((c), _CTYPE_X) /* ANSI -- locale independent */43 #define tolower(c) __tolower(c)44 #define toupper(c) __toupper(c)45 46 23 #include <list> 47 24 #include <typeinfo> … … 49 26 #endif 50 27 28 #ifdef __cplusplus 29 #define new ("if you use new/delete make sure to include config.h at the top of the file"()) 30 #define delete ("if you use new/delete make sure to include config.h at the top of the file"()) 31 #endif 32 51 33 /* Work around bug with C++ library that screws up Objective-C++ when exception support is disabled. */ 52 34 #undef try
Note:
See TracChangeset
for help on using the changeset viewer.