Remove the ability to undefine a macro
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Sun, 13 Dec 2009 07:55:18 +0000 (02:55 -0500)
committerMichael Spang <mspang@csclub.uwaterloo.ca>
Tue, 22 Dec 2009 03:11:49 +0000 (22:11 -0500)
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
inapt.cc

index f968d2e..8f1089a 100644 (file)
--- a/inapt.cc
+++ b/inapt.cc
@@ -350,14 +350,11 @@ int main(int argc, char *argv[]) {
     set<string> defines;
 
     prog = xstrdup(basename(argv[0]));
     set<string> defines;
 
     prog = xstrdup(basename(argv[0]));
-    while ((opt = getopt_long(argc, argv, "D:U:", opts, NULL)) != -1) {
+    while ((opt = getopt_long(argc, argv, "D:", opts, NULL)) != -1) {
         switch (opt) {
             case 'D':
                 defines.insert(optarg);
                 break;
         switch (opt) {
             case 'D':
                 defines.insert(optarg);
                 break;
-            case 'U':
-                defines.erase(optarg);
-                break;
             case '?':
                 usage();
                 break;
             case '?':
                 usage();
                 break;