* src/vm/options.c (opt_foo): Added. This is a development option.
authortwisti <none@none>
Fri, 4 Aug 2006 14:10:29 +0000 (14:10 +0000)
committertwisti <none@none>
Fri, 4 Aug 2006 14:10:29 +0000 (14:10 +0000)
* src/vm/options.h (opt_foo): Likewise.

* src/vm/vm.c (vm_create): Added OPT_FOO.

src/vm/options.c
src/vm/options.h
src/vm/vm.c

index 32facd9c869d23907781103f98b7c60ac15820eb..7eebff0b860f6b8420467a3f22598b1ceb9b398c 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes:
 
-   $Id: options.c 4942 2006-05-23 08:42:46Z twisti $
+   $Id: options.c 5206 2006-08-04 14:10:29Z twisti $
 
 */
 
@@ -49,6 +49,8 @@
 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)
index 373c613acfcc4c8fb2bc3701cd032fdfca9affa7..51e13e7a62e2bc767ff0147b4bf1f284dbd7643d 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes:
 
-   $Id: options.h 4942 2006-05-23 08:42:46Z twisti $
+   $Id: options.h 5206 2006-08-04 14:10:29Z twisti $
 
 */
 
@@ -67,6 +67,8 @@ struct opt_struct {
 extern s4    opt_index;
 extern char *opt_arg;
 
+extern bool opt_foo;
+
 extern bool opt_jit;
 extern bool opt_intrp;
 
index 39de283129b8bc4a704dc91a7e409a11c66bc1f9..7e968806e41b0e583156bd874c07b73d014cc706 100644 (file)
@@ -110,6 +110,8 @@ bool startit = true;
 /* define command line options ************************************************/
 
 enum {
+       OPT_FOO,
+
        /* Java options */
 
        OPT_JAR,
@@ -219,6 +221,8 @@ enum {
 
 
 opt_struct opts[] = {
+       { "foo",               false, OPT_FOO },
+
        /* Java options */
 
        { "jar",               false, OPT_JAR },
@@ -656,6 +660,10 @@ bool vm_create(JavaVMInitArgs *vm_args)
 
        while ((opt = options_get(opts, vm_args)) != OPT_DONE) {
                switch (opt) {
+               case OPT_FOO:
+                       opt_foo = true;
+                       break;
+
                case OPT_IGNORE:
                        break;