* src/vm/options.h (opt_foo): Likewise.
* src/vm/vm.c (vm_create): Added OPT_FOO.
Changes:
- $Id: options.c 4942 2006-05-23 08:42:46Z twisti $
+ $Id: options.c 5206 2006-08-04 14:10:29Z twisti $
*/
s4 opt_index = 0; /* index of processed arguments */
char *opt_arg; /* this one exports the option argument */
+bool opt_foo = false; /* option for development */
+
bool opt_jar = false;
#if defined(ENABLE_JIT)
Changes:
- $Id: options.h 4942 2006-05-23 08:42:46Z twisti $
+ $Id: options.h 5206 2006-08-04 14:10:29Z twisti $
*/
extern s4 opt_index;
extern char *opt_arg;
+extern bool opt_foo;
+
extern bool opt_jit;
extern bool opt_intrp;
/* define command line options ************************************************/
enum {
+ OPT_FOO,
+
/* Java options */
OPT_JAR,
opt_struct opts[] = {
+ { "foo", false, OPT_FOO },
+
/* Java options */
{ "jar", false, OPT_JAR },
while ((opt = options_get(opts, vm_args)) != OPT_DONE) {
switch (opt) {
+ case OPT_FOO:
+ opt_foo = true;
+ break;
+
case OPT_IGNORE:
break;