~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to util.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20070904160117-68anapnflh5c9kgb
Tags: upstream-1.9.0+20070830
Import upstream version 1.9.0+20070830

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**********************************************************************
2
 
 
3
 
  util.h -
4
 
 
5
 
  $Author: shyouhei $
6
 
  $Date: 2007-02-13 08:01:19 +0900 (火, 13  2月 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
38
 
unsigned long ruby_scan_oct(const char *, int, int *);
39
 
#define scan_hex ruby_scan_hex
40
 
unsigned long ruby_scan_hex(const char *, int, int *);
41
 
 
42
 
#if defined(MSDOS) || defined(__CYGWIN32__) || defined(_WIN32)
43
 
void ruby_add_suffix(VALUE str, const char *suffix);
44
 
#endif
45
 
 
46
 
void ruby_qsort(void *, const int, const int,
47
 
                int (*)(const void *, const void *, void *), void *);
48
 
 
49
 
void ruby_setenv(const char *, const char *);
50
 
void 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
 
 
56
 
char *ruby_strdup(const char *);
57
 
#undef strdup
58
 
#define strdup(s) ruby_strdup(s)
59
 
 
60
 
char *ruby_getcwd(void);
61
 
#define my_getcwd() ruby_getcwd()
62
 
 
63
 
double ruby_strtod(const char *, char **);
64
 
#undef strtod
65
 
#define strtod(s,e) ruby_strtod(s,e)
66
 
 
67
 
#endif /* UTIL_H */