diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -30,20 +30,8 @@ int main(int argc, char **argv, char **envp) { #ifdef RUBY_DEBUG_ENV - RUBY_EXTERN int gc_stress; - RUBY_EXTERN int enable_coredump; - char *str; - str = getenv("RUBY_DEBUG"); - if (str) { - for (str = strtok(str, ","); str; str = strtok(NULL, ",")) { - if (strcmp(str, "gc_stress") == 0) - gc_stress = 1; - else if (strcmp(str, "core") == 0) - enable_coredump = 1; - else - fprintf(stderr, "unexpected debug option: %s\n", str); - } - } + extern void ruby_set_debug_option(const char *); + ruby_set_debug_option(getenv("RUBY_DEBUG")); #endif #ifdef _WIN32 NtInitialize(&argc, &argv); |