Ignore:
Timestamp:
Jun 26, 2001, 2:12:13 AM (24 years ago)
Author:
bird
Message:

Added memory debugging stuff. EMX -> WIN32OS2. Note -Tm+ makes it *very* slow!! Delcared strcasecmp and getopt stuff for VAC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/wrc/utils.h

    r5523 r6112  
    1313#endif
    1414
    15 #include <stddef.h>     /* size_t */
     15#include <stddef.h> /* size_t */
    1616
     17#if defined(__DEBUG_ALLOC__) && defined(__IBMC__)
     18void *_xmalloc(size_t, char*, int);
     19void *_xrealloc(void *, size_t, char*, int);
     20char *_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
    1725void *xmalloc(size_t);
    1826void *xrealloc(void *, size_t);
    1927char *xstrdup(const char *str);
     28#endif
    2029
    2130int pperror(const char *s, ...) __attribute__((format (printf, 1, 2)));
     
    3544void set_language(unsigned short lang, unsigned short sublang);
    3645
     46#if defined(__IBMC__) || defined(__IBMCPP__)
     47int strcasecmp( char *p1, char *p2 );
     48
     49/* Borrowed from Apache NT Port and PHP */
     50
     51extern char *ap_php_optarg;
     52extern int   ap_php_optind;
     53extern int   ap_php_opterr;
     54extern int   ap_php_optopt;
     55int 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
    3763#endif
     64
     65#endif
Note: See TracChangeset for help on using the changeset viewer.