From 91f1418007e11416f4ef36e807143e8750938180 Mon Sep 17 00:00:00 2001 From: Masaki Fukushima Date: Mon, 13 Nov 2000 14:53:03 +0000 Subject: [PATCH] fixed bug in ruby -feature option handling git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@945 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules1.1/ruby.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Source/Modules1.1/ruby.cxx b/Source/Modules1.1/ruby.cxx index 6e7e0aae1..cd66d7ccb 100644 --- a/Source/Modules1.1/ruby.cxx +++ b/Source/Modules1.1/ruby.cxx @@ -95,9 +95,9 @@ Ruby Options (available with -ruby)\n\ -module name - Set module name\n\ -feature name - Set feature name (used by `require')\n"; -static char *module; -static char *modvar; -static char *feature; +static char *module = 0; +static char *modvar = 0; +static char *feature = 0; static String *other_extern = 0; static String *other_init = 0; static char *import_file; @@ -188,9 +188,6 @@ static void insert_file(char *filename, File *file) { * --------------------------------------------------------------------- */ void RUBY::parse() { - module = 0; - modvar = 0; - feature = 0; import_file = 0; current = NO_CPP; klass = 0;