OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / ruby / util.h
1 /**********************************************************************
2
3   util.h -
4
5   $Author: tacyas $
6   $Date: 2002/02/01 06:39:41 $
7   created at: Thu Mar  9 11:55:53 JST 1995
8
9   Copyright (C) 1993-2000 Yukihiro Matsumoto
10
11 **********************************************************************/
12
13 #ifndef UTIL_H
14 #define UTIL_H
15
16 #ifndef _
17 #ifdef HAVE_PROTOTYPES
18 # define _(args) args
19 #else
20 # define _(args) ()
21 #endif
22 #ifdef HAVE_STDARG_PROTOTYPES
23 # define __(args) args
24 #else
25 # define __(args) ()
26 #endif
27 #endif
28
29 #define scan_oct ruby_scan_oct
30 unsigned long scan_oct _((const char*, int, int*));
31 #define scan_hex ruby_scan_hex
32 unsigned long scan_hex _((const char*, int, int*));
33
34 #if defined(MSDOS) || defined(__CYGWIN32__) || defined(NT)
35 void ruby_add_suffix();
36 #define add_suffix ruby_add_suffix
37 #endif
38
39 void ruby_qsort _((void*, int, int, int (*)()));
40 #define qsort(b,n,s,c) ruby_qsort(b,n,s,c)
41
42 void ruby_setenv _((const char*, const char*));
43 void ruby_unsetenv _((const char*));
44 #undef setenv
45 #undef unsetenv
46 #define setenv(name,val) ruby_setenv((name),(val))
47 #define unsetenv(name,val) ruby_unsetenv((name));
48
49 char *ruby_strdup _((const char*));
50 #undef strdup
51 #define strdup(s) ruby_strdup((s))
52
53 #endif /* UTIL_H */