src/misc/util/stdlib_hack.h File Reference

Go to the source code of this file.

Data Structures

struct  _div_t
struct  _ldiv_t

Defines

#define _CRTIMP
#define __cdecl
#define NULL   ((void *)0)
#define EXIT_SUCCESS   0
#define EXIT_FAILURE   1
#define onexit_t   _onexit_t
#define _ONEXIT_T_DEFINED
#define RAND_MAX   0x7fff
#define MB_CUR_MAX   __mb_cur_max
#define __max(a, b)   (((a) > (b)) ? (a) : (b))
#define __min(a, b)   (((a) < (b)) ? (a) : (b))
#define _MAX_PATH   260
#define _MAX_DRIVE   3
#define _MAX_DIR   256
#define _MAX_FNAME   256
#define _MAX_EXT   256
#define _OUT_TO_DEFAULT   0
#define _OUT_TO_STDERR   1
#define _OUT_TO_MSGBOX   2
#define _REPORT_ERRMODE   3
#define max(a, b)   (((a) > (b)) ? (a) : (b))
#define min(a, b)   (((a) < (b)) ? (a) : (b))
#define sys_errlist   _sys_errlist
#define sys_nerr   _sys_nerr
#define environ   _environ

Typedefs

typedef unsigned int size_t
typedef unsigned short wchar_t
typedef int(__cdecl * _onexit_t )(void)
typedef struct _div_t div_t
typedef struct _ldiv_t ldiv_t

Functions

_CRTIMP void __cdecl abort (void)
_CRTIMP void __cdecl exit (int)
int __cdecl abs (int)
int __cdecl atexit (void(__cdecl *)(void))
_CRTIMP double __cdecl atof (const char *)
_CRTIMP int __cdecl atoi (const char *)
_CRTIMP long __cdecl atol (const char *)
_CRTIMP void *__cdecl bsearch (const void *, const void *, size_t, size_t, int(__cdecl *)(const void *, const void *))
_CRTIMP void *__cdecl calloc (size_t, size_t)
_CRTIMP div_t __cdecl div (int, int)
_CRTIMP void __cdecl free (void *)
_CRTIMP char *__cdecl getenv (const char *)
_CRTIMP char *__cdecl _itoa (int, char *, int)
long __cdecl labs (long)
_CRTIMP ldiv_t __cdecl ldiv (long, long)
_CRTIMP char *__cdecl _ltoa (long, char *, int)
_CRTIMP void *__cdecl malloc (size_t)
_CRTIMP int __cdecl mblen (const char *, size_t)
_CRTIMP size_t __cdecl _mbstrlen (const char *s)
_CRTIMP int __cdecl mbtowc (wchar_t *, const char *, size_t)
_CRTIMP size_t __cdecl mbstowcs (wchar_t *, const char *, size_t)
_CRTIMP void __cdecl qsort (void *, size_t, size_t, int(__cdecl *)(const void *, const void *))
_CRTIMP int __cdecl rand (void)
_CRTIMP void *__cdecl realloc (void *, size_t)
_CRTIMP int __cdecl _set_error_mode (int)
_CRTIMP void __cdecl srand (unsigned int)
_CRTIMP double __cdecl strtod (const char *, char **)
_CRTIMP long __cdecl strtol (const char *, char **, int)
_CRTIMP unsigned long __cdecl strtoul (const char *, char **, int)
_CRTIMP int __cdecl system (const char *)
_CRTIMP char *__cdecl _ultoa (unsigned long, char *, int)
_CRTIMP int __cdecl wctomb (char *, wchar_t)
_CRTIMP size_t __cdecl wcstombs (char *, const wchar_t *, size_t)
_CRTIMP wchar_t *__cdecl _itow (int, wchar_t *, int)
_CRTIMP wchar_t *__cdecl _ltow (long, wchar_t *, int)
_CRTIMP wchar_t *__cdecl _ultow (unsigned long, wchar_t *, int)
_CRTIMP double __cdecl wcstod (const wchar_t *, wchar_t **)
_CRTIMP long __cdecl wcstol (const wchar_t *, wchar_t **, int)
_CRTIMP unsigned long __cdecl wcstoul (const wchar_t *, wchar_t **, int)
_CRTIMP wchar_t *__cdecl _wgetenv (const wchar_t *)
_CRTIMP int __cdecl _wsystem (const wchar_t *)
_CRTIMP int __cdecl _wtoi (const wchar_t *)
_CRTIMP long __cdecl _wtol (const wchar_t *)
_CRTIMP char *__cdecl _ecvt (double, int, int *, int *)
_CRTIMP void __cdecl _exit (int)
_CRTIMP char *__cdecl _fcvt (double, int, int *, int *)
_CRTIMP char *__cdecl _fullpath (char *, const char *, size_t)
_CRTIMP char *__cdecl _gcvt (double, int, char *)
unsigned long __cdecl _lrotl (unsigned long, int)
unsigned long __cdecl _lrotr (unsigned long, int)
_CRTIMP void __cdecl _makepath (char *, const char *, const char *, const char *, const char *)
_onexit_t __cdecl _onexit (_onexit_t)
_CRTIMP void __cdecl perror (const char *)
_CRTIMP int __cdecl _putenv (const char *)
unsigned int __cdecl _rotl (unsigned int, int)
unsigned int __cdecl _rotr (unsigned int, int)
_CRTIMP void __cdecl _searchenv (const char *, const char *, char *)
_CRTIMP void __cdecl _splitpath (const char *, char *, char *, char *, char *)
_CRTIMP void __cdecl _swab (char *, char *, int)
_CRTIMP wchar_t *__cdecl _wfullpath (wchar_t *, const wchar_t *, size_t)
_CRTIMP void __cdecl _wmakepath (wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *, const wchar_t *)
_CRTIMP void __cdecl _wperror (const wchar_t *)
_CRTIMP int __cdecl _wputenv (const wchar_t *)
_CRTIMP void __cdecl _wsearchenv (const wchar_t *, const wchar_t *, wchar_t *)
_CRTIMP void __cdecl _wsplitpath (const wchar_t *, wchar_t *, wchar_t *, wchar_t *, wchar_t *)
_CRTIMP void __cdecl _seterrormode (int)
_CRTIMP void __cdecl _beep (unsigned, unsigned)
_CRTIMP void __cdecl _sleep (unsigned long)
_CRTIMP int __cdecl tolower (int)
_CRTIMP int __cdecl toupper (int)
_CRTIMP char *__cdecl ecvt (double, int, int *, int *)
_CRTIMP char *__cdecl fcvt (double, int, int *, int *)
_CRTIMP char *__cdecl gcvt (double, int, char *)
_CRTIMP char *__cdecl itoa (int, char *, int)
_CRTIMP char *__cdecl ltoa (long, char *, int)
onexit_t __cdecl onexit (onexit_t)
_CRTIMP int __cdecl putenv (const char *)
_CRTIMP void __cdecl swab (char *, char *, int)
_CRTIMP char *__cdecl ultoa (unsigned long, char *, int)

Variables

_CRTIMP int __mb_cur_max
_CRTIMP int errno
_CRTIMP unsigned long _doserrno
_CRTIMP char * _sys_errlist []
_CRTIMP int _sys_nerr
_CRTIMP int __argc
_CRTIMP char ** __argv
_CRTIMP wchar_t ** __wargv
_CRTIMP char ** _environ
_CRTIMP wchar_t ** _wenviron
_CRTIMP char * _pgmptr
_CRTIMP wchar_t_wpgmptr
_CRTIMP int _fmode
_CRTIMP int _fileinfo
_CRTIMP unsigned int _osver
_CRTIMP unsigned int _winver
_CRTIMP unsigned int _winmajor
_CRTIMP unsigned int _winminor

Define Documentation

#define __cdecl

Definition at line 57 of file stdlib_hack.h.

#define __max ( a,
 )     (((a) > (b)) ? (a) : (b))

Definition at line 144 of file stdlib_hack.h.

#define __min ( a,
 )     (((a) < (b)) ? (a) : (b))

Definition at line 145 of file stdlib_hack.h.

#define _CRTIMP

Definition at line 49 of file stdlib_hack.h.

#define _MAX_DIR   256

Definition at line 154 of file stdlib_hack.h.

#define _MAX_DRIVE   3

Definition at line 153 of file stdlib_hack.h.

#define _MAX_EXT   256

Definition at line 156 of file stdlib_hack.h.

#define _MAX_FNAME   256

Definition at line 155 of file stdlib_hack.h.

#define _MAX_PATH   260

Definition at line 152 of file stdlib_hack.h.

#define _ONEXIT_T_DEFINED

Definition at line 106 of file stdlib_hack.h.

#define _OUT_TO_DEFAULT   0

Definition at line 166 of file stdlib_hack.h.

#define _OUT_TO_MSGBOX   2

Definition at line 168 of file stdlib_hack.h.

#define _OUT_TO_STDERR   1

Definition at line 167 of file stdlib_hack.h.

#define _REPORT_ERRMODE   3

Definition at line 169 of file stdlib_hack.h.

#define environ   _environ

Definition at line 446 of file stdlib_hack.h.

#define EXIT_FAILURE   1

Definition at line 97 of file stdlib_hack.h.

#define EXIT_SUCCESS   0

Definition at line 96 of file stdlib_hack.h.

#define max ( a,
 )     (((a) > (b)) ? (a) : (b))

Definition at line 440 of file stdlib_hack.h.

#define MB_CUR_MAX   __mb_cur_max

Definition at line 137 of file stdlib_hack.h.

#define min ( a,
 )     (((a) < (b)) ? (a) : (b))

Definition at line 441 of file stdlib_hack.h.

#define NULL   ((void *)0)

Definition at line 89 of file stdlib_hack.h.

#define onexit_t   _onexit_t

Definition at line 104 of file stdlib_hack.h.

#define RAND_MAX   0x7fff

Definition at line 130 of file stdlib_hack.h.

#define sys_errlist   _sys_errlist

Definition at line 444 of file stdlib_hack.h.

#define sys_nerr   _sys_nerr

Definition at line 445 of file stdlib_hack.h.


Typedef Documentation

typedef int(__cdecl * _onexit_t)(void)

Definition at line 101 of file stdlib_hack.h.

typedef struct _div_t div_t
typedef struct _ldiv_t ldiv_t
typedef unsigned int size_t

Definition at line 72 of file stdlib_hack.h.

typedef unsigned short wchar_t

Definition at line 78 of file stdlib_hack.h.


Function Documentation

_CRTIMP void __cdecl _beep ( unsigned  ,
unsigned   
)
_CRTIMP char* __cdecl _ecvt ( double  ,
int  ,
int *  ,
int *   
)
_CRTIMP void __cdecl _exit ( int   ) 
_CRTIMP char* __cdecl _fcvt ( double  ,
int  ,
int *  ,
int *   
)
_CRTIMP char* __cdecl _fullpath ( char *  ,
const char *  ,
size_t   
)
_CRTIMP char* __cdecl _gcvt ( double  ,
int  ,
char *   
)
_CRTIMP char* __cdecl _itoa ( int  ,
char *  ,
int   
)
_CRTIMP wchar_t* __cdecl _itow ( int  ,
wchar_t ,
int   
)
unsigned long __cdecl _lrotl ( unsigned  long,
int   
)
unsigned long __cdecl _lrotr ( unsigned  long,
int   
)
_CRTIMP char* __cdecl _ltoa ( long  ,
char *  ,
int   
)
_CRTIMP wchar_t* __cdecl _ltow ( long  ,
wchar_t ,
int   
)
_CRTIMP void __cdecl _makepath ( char *  ,
const char *  ,
const char *  ,
const char *  ,
const char *   
)
_CRTIMP size_t __cdecl _mbstrlen ( const char *  s  ) 
_onexit_t __cdecl _onexit ( _onexit_t   ) 
_CRTIMP int __cdecl _putenv ( const char *   ) 
unsigned int __cdecl _rotl ( unsigned  int,
int   
)
unsigned int __cdecl _rotr ( unsigned  int,
int   
)
_CRTIMP void __cdecl _searchenv ( const char *  ,
const char *  ,
char *   
)
_CRTIMP int __cdecl _set_error_mode ( int   ) 
_CRTIMP void __cdecl _seterrormode ( int   ) 
_CRTIMP void __cdecl _sleep ( unsigned  long  ) 
_CRTIMP void __cdecl _splitpath ( const char *  ,
char *  ,
char *  ,
char *  ,
char *   
)
_CRTIMP void __cdecl _swab ( char *  ,
char *  ,
int   
)
_CRTIMP char* __cdecl _ultoa ( unsigned  long,
char *  ,
int   
)
_CRTIMP wchar_t* __cdecl _ultow ( unsigned  long,
wchar_t ,
int   
)
_CRTIMP wchar_t* __cdecl _wfullpath ( wchar_t ,
const wchar_t ,
size_t   
)
_CRTIMP wchar_t* __cdecl _wgetenv ( const wchar_t  ) 
_CRTIMP void __cdecl _wmakepath ( wchar_t ,
const wchar_t ,
const wchar_t ,
const wchar_t ,
const wchar_t  
)
_CRTIMP void __cdecl _wperror ( const wchar_t  ) 
_CRTIMP int __cdecl _wputenv ( const wchar_t  ) 
_CRTIMP void __cdecl _wsearchenv ( const wchar_t ,
const wchar_t ,
wchar_t  
)
_CRTIMP void __cdecl _wsplitpath ( const wchar_t ,
wchar_t ,
wchar_t ,
wchar_t ,
wchar_t  
)
_CRTIMP int __cdecl _wsystem ( const wchar_t  ) 
_CRTIMP int __cdecl _wtoi ( const wchar_t  ) 
_CRTIMP long __cdecl _wtol ( const wchar_t  ) 
_CRTIMP void __cdecl abort ( void   ) 
int __cdecl abs ( int   ) 
int __cdecl atexit ( void(__cdecl *)(void)   ) 
_CRTIMP double __cdecl atof ( const char *   ) 
_CRTIMP int __cdecl atoi ( const char *   ) 
_CRTIMP long __cdecl atol ( const char *   ) 
_CRTIMP void* __cdecl bsearch ( const void *  ,
const void *  ,
size_t  ,
size_t  ,
int(__cdecl *)(const void *, const void *)   
)
_CRTIMP void* __cdecl calloc ( size_t  ,
size_t   
)
_CRTIMP div_t __cdecl div ( int  ,
int   
)
_CRTIMP char* __cdecl ecvt ( double  ,
int  ,
int *  ,
int *   
)
_CRTIMP void __cdecl exit ( int   ) 
_CRTIMP char* __cdecl fcvt ( double  ,
int  ,
int *  ,
int *   
)
_CRTIMP void __cdecl free ( void *   ) 
_CRTIMP char* __cdecl gcvt ( double  ,
int  ,
char *   
)
_CRTIMP char* __cdecl getenv ( const char *   ) 
_CRTIMP char* __cdecl itoa ( int  ,
char *  ,
int   
)
long __cdecl labs ( long   ) 
_CRTIMP ldiv_t __cdecl ldiv ( long  ,
long   
)
_CRTIMP char* __cdecl ltoa ( long  ,
char *  ,
int   
)
_CRTIMP void* __cdecl malloc ( size_t   ) 
_CRTIMP int __cdecl mblen ( const char *  ,
size_t   
)
_CRTIMP size_t __cdecl mbstowcs ( wchar_t ,
const char *  ,
size_t   
)
_CRTIMP int __cdecl mbtowc ( wchar_t ,
const char *  ,
size_t   
)
onexit_t __cdecl onexit ( onexit_t   ) 
_CRTIMP void __cdecl perror ( const char *   ) 
_CRTIMP int __cdecl putenv ( const char *   ) 
_CRTIMP void __cdecl qsort ( void *  ,
size_t  ,
size_t  ,
int(__cdecl *)(const void *, const void *)   
)
_CRTIMP int __cdecl rand ( void   ) 
_CRTIMP void* __cdecl realloc ( void *  ,
size_t   
)
_CRTIMP void __cdecl srand ( unsigned  int  ) 
_CRTIMP double __cdecl strtod ( const char *  ,
char **   
)
_CRTIMP long __cdecl strtol ( const char *  ,
char **  ,
int   
)
_CRTIMP unsigned long __cdecl strtoul ( const char *  ,
char **  ,
int   
)
_CRTIMP void __cdecl swab ( char *  ,
char *  ,
int   
)
_CRTIMP int __cdecl system ( const char *   ) 
_CRTIMP int __cdecl tolower ( int   ) 
_CRTIMP int __cdecl toupper ( int   ) 
_CRTIMP char* __cdecl ultoa ( unsigned  long,
char *  ,
int   
)
_CRTIMP double __cdecl wcstod ( const wchar_t ,
wchar_t **   
)
_CRTIMP long __cdecl wcstol ( const wchar_t ,
wchar_t **  ,
int   
)
_CRTIMP size_t __cdecl wcstombs ( char *  ,
const wchar_t ,
size_t   
)
_CRTIMP unsigned long __cdecl wcstoul ( const wchar_t ,
wchar_t **  ,
int   
)
_CRTIMP int __cdecl wctomb ( char *  ,
wchar_t   
)

Variable Documentation

_CRTIMP int __argc
_CRTIMP char** __argv
_CRTIMP int __mb_cur_max
_CRTIMP wchar_t** __wargv
_CRTIMP unsigned long _doserrno
_CRTIMP char** _environ
_CRTIMP int _fileinfo
_CRTIMP int _fmode
_CRTIMP unsigned int _osver
_CRTIMP char* _pgmptr
_CRTIMP char* _sys_errlist[]
_CRTIMP int _sys_nerr
_CRTIMP wchar_t** _wenviron
_CRTIMP unsigned int _winmajor
_CRTIMP unsigned int _winminor
_CRTIMP unsigned int _winver
_CRTIMP wchar_t* _wpgmptr
_CRTIMP int errno

Generated on Tue Jan 5 12:19:19 2010 for abc70930 by  doxygen 1.6.1