00001 static unsigned long ruby_scan_oct(); 00002 static unsigned long ruby_scan_hex(); 00003 static unsigned long ruby_strtoul(); 00004 static void ruby_qsort(); 00005 static char *ruby_strdup(); 00006 static char *ruby_getcwd(); 00007 static double ruby_strtod(); 00008 static char *ruby_dtoa(); 00009 static void ruby_each_words(); 00010 static char *ruby_hdtoa(); 00011 #include "ruby.h" 00012 #include "ruby/defines.h" 00013 #include "ruby/util.h" 00014 #ifndef HAVE_RUBY_ADD_SUFFIX 00015 #define _WIN32 1 00016 #include "util.c" 00017 #endif 00018 00019 static VALUE 00020 add_suffix(VALUE self, VALUE path, VALUE suffix) 00021 { 00022 StringValueCStr(path); 00023 ruby_add_suffix(path, StringValueCStr(suffix)); 00024 return path; 00025 } 00026 00027 void 00028 Init_bug(void) 00029 { 00030 VALUE mBug = rb_define_module("Bug"); 00031 rb_define_module_function(mBug, "add_suffix", add_suffix, 2); 00032 } 00033
1.6.1