Changeset 6112 for trunk/tools/wrc/utils.h
- Timestamp:
- Jun 26, 2001, 2:12:13 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/wrc/utils.h
r5523 r6112 13 13 #endif 14 14 15 #include <stddef.h> 15 #include <stddef.h> /* size_t */ 16 16 17 #if defined(__DEBUG_ALLOC__) && defined(__IBMC__) 18 void *_xmalloc(size_t, char*, int); 19 void *_xrealloc(void *, size_t, char*, int); 20 char *_xstrdup(const char *, char*, int); 21 #define xmalloc(a) _xmalloc(a, __FILE__, __LINE__) 22 #define xrealloc(a, b) _xrealloc(a, b, __FILE__, __LINE__) 23 #define xstrdup(a) _xstrdup(a, __FILE__, __LINE__) 24 #else 17 25 void *xmalloc(size_t); 18 26 void *xrealloc(void *, size_t); 19 27 char *xstrdup(const char *str); 28 #endif 20 29 21 30 int pperror(const char *s, ...) __attribute__((format (printf, 1, 2))); … … 35 44 void set_language(unsigned short lang, unsigned short sublang); 36 45 46 #if defined(__IBMC__) || defined(__IBMCPP__) 47 int strcasecmp( char *p1, char *p2 ); 48 49 /* Borrowed from Apache NT Port and PHP */ 50 51 extern char *ap_php_optarg; 52 extern int ap_php_optind; 53 extern int ap_php_opterr; 54 extern int ap_php_optopt; 55 int ap_php_getopt(int argc, char* const *argv, const char *optstr); 56 57 #define getopt ap_php_getopt 58 #define optarg ap_php_optarg 59 #define optind ap_php_optind 60 #define opterr ap_php_opterr 61 #define optopt ap_php_optopt 62 37 63 #endif 64 65 #endif
Note:
See TracChangeset
for help on using the changeset viewer.