dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnet/resgen resgen.c,1.7,1.8


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnet/resgen resgen.c,1.7,1.8
Date: Thu, 13 Nov 2003 23:15:50 +0000

Update of /cvsroot/dotgnu-pnet/pnet/resgen
In directory subversions:/tmp/cvs-serv14570/resgen

Modified Files:
        resgen.c 
Log Message:


Perform the check for "/compile" and "-compile" in a different manner,
to deal with "@name" option file references.


Index: resgen.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/resgen/resgen.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** resgen.c    30 Oct 2003 07:39:44 -0000      1.7
--- resgen.c    13 Nov 2003 23:15:48 -0000      1.8
***************
*** 84,87 ****
--- 84,88 ----
                "--help",
                "Print this help message."},
+       {"-c", 'c', 1, 0, 0},
        {0, 0, 0, 0, 0}
  };
***************
*** 119,131 ****
        ILContext *context;
  
-       /* Skip a "/compile" or "-compile" option, if present, for backwards
-          compatibility with tools from other CLI vendors */
-       if(argc >= 2 &&
-          (!ILStrICmp(argv[1], "/compile") || !ILStrICmp(argv[1], "-compile")))
-       {
-               ++argv;
-               --argc;
-       }
- 
        /* Parse the command-line arguments */
        state = 0;
--- 120,123 ----
***************
*** 135,138 ****
--- 127,136 ----
                switch(opt)
                {
+                       case 'c':
+                       {
+                               /* Probably "-compile", which we ignore */
+                       }
+                       break;
+ 
                        case 't':
                        {
***************
*** 215,218 ****
--- 213,224 ----
                        /* Not reached */
                }
+       }
+ 
+       /* Skip a "/compile" option, if present, for backwards
+          compatibility with tools from other CLI vendors */
+       if(argc >= 2 && !ILStrICmp(argv[1], "/compile"))
+       {
+               ++argv;
+               --argc;
        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]