Removed some of the cruft related to keyword argument support for Ruby
until this can be developed further. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4705 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ba55d4c6eb
commit
43cb4323ce
1 changed files with 1 additions and 12 deletions
|
|
@ -88,20 +88,12 @@ class RClass {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifdef RUBY_SUPPORTS_KEYWORD_ARGS
|
|
||||||
static const char *
|
|
||||||
usage = "\
|
|
||||||
Ruby Options (available with -ruby)\n\
|
|
||||||
-ldflags - Print runtime libraries to link with\n\
|
|
||||||
-feature name - Set feature name (used by `require')\n\
|
|
||||||
-keyword - Use keyword arguments\n";
|
|
||||||
#else
|
|
||||||
static const char *
|
static const char *
|
||||||
usage = "\
|
usage = "\
|
||||||
Ruby Options (available with -ruby)\n\
|
Ruby Options (available with -ruby)\n\
|
||||||
-ldflags - Print runtime libraries to link with\n\
|
-ldflags - Print runtime libraries to link with\n\
|
||||||
-feature name - Set feature name (used by `require')\n";
|
-feature name - Set feature name (used by `require')\n";
|
||||||
#endif
|
|
||||||
|
|
||||||
#define RCLASS(hash, name) (RClass*)(Getattr(hash, name) ? Data(Getattr(hash, name)) : 0)
|
#define RCLASS(hash, name) (RClass*)(Getattr(hash, name) ? Data(Getattr(hash, name)) : 0)
|
||||||
#define SET_RCLASS(hash, name, klass) Setattr(hash, name, NewVoid(klass, 0))
|
#define SET_RCLASS(hash, name, klass) Setattr(hash, name, NewVoid(klass, 0))
|
||||||
|
|
@ -190,9 +182,6 @@ public:
|
||||||
} else if (strcmp (argv[i],"-ldflags") == 0) {
|
} else if (strcmp (argv[i],"-ldflags") == 0) {
|
||||||
printf("%s\n", SWIG_RUBY_RUNTIME);
|
printf("%s\n", SWIG_RUBY_RUNTIME);
|
||||||
SWIG_exit (EXIT_SUCCESS);
|
SWIG_exit (EXIT_SUCCESS);
|
||||||
} else if (strcmp(argv[i],"-keyword") == 0) {
|
|
||||||
use_kw = true;
|
|
||||||
Swig_mark_arg(i);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue