source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/i686-linux/util.h@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 1.5 KB
Line 
1/**********************************************************************
2
3 util.h -
4
5 $Author: shyouhei $
6 $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $
7 created at: Thu Mar 9 11:55:53 JST 1995
8
9 Copyright (C) 1993-2003 Yukihiro Matsumoto
10
11**********************************************************************/
12
13#ifndef UTIL_H
14#define UTIL_H
15
16#ifndef _
17#ifdef __cplusplus
18# ifndef HAVE_PROTOTYPES
19# define HAVE_PROTOTYPES 1
20# endif
21# ifndef HAVE_STDARG_PROTOTYPES
22# define HAVE_STDARG_PROTOTYPES 1
23# endif
24#endif
25#ifdef HAVE_PROTOTYPES
26# define _(args) args
27#else
28# define _(args) ()
29#endif
30#ifdef HAVE_STDARG_PROTOTYPES
31# define __(args) args
32#else
33# define __(args) ()
34#endif
35#endif
36
37#define scan_oct ruby_scan_oct
38unsigned long scan_oct _((const char*, int, int*));
39#define scan_hex ruby_scan_hex
40unsigned long scan_hex _((const char*, int, int*));
41
42#if defined(MSDOS) || defined(__CYGWIN32__) || defined(_WIN32)
43void ruby_add_suffix();
44#endif
45
46void ruby_qsort _((void*, const int, const int, int (*)(), void*));
47#define qsort(b,n,s,c,d) ruby_qsort(b,n,s,c,d)
48
49void ruby_setenv _((const char*, const char*));
50void ruby_unsetenv _((const char*));
51#undef setenv
52#undef unsetenv
53#define setenv(name,val) ruby_setenv(name,val)
54#define unsetenv(name,val) ruby_unsetenv(name);
55
56char *ruby_strdup _((const char*));
57#undef strdup
58#define strdup(s) ruby_strdup(s)
59
60char *ruby_getcwd _((void));
61#define my_getcwd() ruby_getcwd()
62
63double ruby_strtod _((const char*, char **));
64#undef strtod
65#define strtod(s,e) ruby_strtod(s,e)
66
67#endif /* UTIL_H */
Note: See TracBrowser for help on using the repository browser.