Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

util.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 
00003   util.h -
00004 
00005   $Author: matz $
00006   $Date: 2005/10/30 18:20:53 $
00007   created at: Thu Mar  9 11:55:53 JST 1995
00008 
00009   Copyright (C) 1993-2003 Yukihiro Matsumoto
00010 
00011 **********************************************************************/
00012 
00013 #ifndef UTIL_H
00014 #define UTIL_H
00015 
00016 #ifndef _
00017 #ifdef __cplusplus
00018 # ifndef  HAVE_PROTOTYPES
00019 #  define HAVE_PROTOTYPES 1
00020 # endif
00021 # ifndef  HAVE_STDARG_PROTOTYPES
00022 #  define HAVE_STDARG_PROTOTYPES 1
00023 # endif
00024 #endif
00025 #ifdef HAVE_PROTOTYPES
00026 # define args args
00027 #else
00028 # define args ()
00029 #endif
00030 #ifdef HAVE_STDARG_PROTOTYPES
00031 # define args args
00032 #else
00033 # define args ()
00034 #endif
00035 #endif
00036 
00037 #define scan_oct ruby_scan_oct
00038 unsigned long scan_oct (const char*, int, int*);
00039 #define scan_hex ruby_scan_hex
00040 unsigned long scan_hex (const char*, int, int*);
00041 
00042 #if defined(MSDOS) || defined(__CYGWIN32__) || defined(_WIN32)
00043 void ruby_add_suffix();
00044 #endif
00045 
00046 void ruby_qsort (void*, const int, const int, int (*(), void*));
00047 #define qsort(b,n,s,c,d) ruby_qsort(b,n,s,c,d)
00048 
00049 void ruby_setenv (const char*, const char*);
00050 void ruby_unsetenv (const char*);
00051 #undef setenv
00052 #undef unsetenv
00053 #define setenv(name,val) ruby_setenv(name,val)
00054 #define unsetenv(name,val) ruby_unsetenv(name);
00055 
00056 char *ruby_strdup (const char*);
00057 #undef strdup
00058 #define strdup(s) ruby_strdup(s)
00059 
00060 char *ruby_getcwd (void);
00061 #define my_getcwd() ruby_getcwd()
00062 
00063 double ruby_strtod (const char*, char **);
00064 #undef strtod
00065 #define strtod(s,e) ruby_strtod(s,e)
00066 
00067 #endif /* UTIL_H */
00068 

Generated on Wed Jan 18 23:32:08 2006 for Ruby by doxygen 1.3.5