summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-03-24 08:52:35 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-03-24 08:52:35 +0000
commit35247a52ef719584a59ae9c518523f0ee825c8e3 (patch)
treee14e2a884d3c40a86f93b8dcb4ec144f510fe35a /util.h
parent1727010a3abf84fd06f0e44d44b1b8ef6cde588e (diff)
990324
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.h')
-rw-r--r--util.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/util.h b/util.h
index 675df9aaa7..fcd4a7cc59 100644
--- a/util.h
+++ b/util.h
@@ -21,13 +21,13 @@
#endif
#define scan_oct ruby_scan_oct
-unsigned long scan_oct _((char*, int, int*));
+unsigned long scan_oct _((const char*, int, int*));
#define scan_hex ruby_scan_hex
-unsigned long scan_hex _((char*, int, int*));
+unsigned long scan_hex _((const char*, int, int*));
#if defined(MSDOS) || defined(__CYGWIN32__) || defined(NT)
+void ruby_add_suffix();
#define add_suffix ruby_add_suffix
-void add_suffix();
#endif
char *ruby_mktemp _((void));
@@ -37,5 +37,9 @@ void ruby_qsort _((void*, int, int, int (*)()));
void ruby_setenv _((char*, char*));
void ruby_unsetenv _((char*));
+#undef setenv
+#undef unsetenv
+#define setenv(name,val) ruby_setenv((name),(val))
+#define unsetenv(name,val) ruby_unsetenv((name));
#endif /* UTIL_H */