summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-11 12:30:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-11 12:30:48 +0000
commit1b03efee58ee4c825b278a7bcb4ac80e41e7c18a (patch)
tree816ef7c640e729eeb44447211cb3be2071ee86c6 /util.h
parent32f264bfef9ef6eb96c791ee33ffad8d5e461578 (diff)
* array.c, enum.c, eval.c, util.c: safer function pointer usage.
fixed: [ruby-core:06143] * util.h (qsort): removed the definition incompatible to ANSI. fixed: [ruby-core:06147] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/util.h b/util.h
index 032c3337b5..23316292bf 100644
--- a/util.h
+++ b/util.h
@@ -43,8 +43,7 @@ unsigned long scan_hex(const char*, int, int*);
void ruby_add_suffix(VALUE str, char *suffix);
#endif
-void ruby_qsort(void*, const int, const int, int (*)(), void*);
-#define qsort(b,n,s,c,d) ruby_qsort(b,n,s,c,d)
+void ruby_qsort(void*, const int, const int, int (*)(const void*,const void*,void*), void*);
void ruby_setenv(const char*, const char*);
void ruby_unsetenv(const char*);