]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
More cleanup
authorDale Weiler <weilercdale@gmail.com>
Wed, 14 Jan 2015 02:46:52 +0000 (21:46 -0500)
committerDale Weiler <weilercdale@gmail.com>
Wed, 14 Jan 2015 02:46:52 +0000 (21:46 -0500)
main.c
opts.c
opts.def
test.c

diff --git a/main.c b/main.c
index bfdadda21f3994a436ff8110c174569fd52536cf..ac715d5b4186bc1d18cff1e6a2b16a154dff1dc3 100644 (file)
--- a/main.c
+++ b/main.c
@@ -36,8 +36,7 @@ static int usage(void) {
     con_out("usage: %s [options] [files...]", app_name);
     con_out("options:\n"
             "  -h, --help             show this help message\n"
-            "  -debug                 turns on compiler debug messages\n"
-            "  -memchk                turns on compiler memory leak check\n");
+            "  -debug                 turns on compiler debug messages\n");
     con_out("  -o, --output=file      output file, defaults to progs.dat\n"
             "  -s filename            add a progs.src file to be used\n");
     con_out("  -E                     stop after preprocessing\n");
@@ -121,14 +120,13 @@ static bool options_long_gcc(const char *optname, int *argc_, char ***argv_, cha
 static bool options_parse(int argc, char **argv) {
     bool argend = false;
     size_t itr;
-    char  buffer[1024];
-    char *config      = NULL;
-    char *memdumpcols = NULL;
+    char buffer[1024];
+    char *config = NULL;
 
     while (!argend && argc > 1) {
         char *argarg;
         argitem item;
-        ppitem  macro;
+        ppitem macro;
 
         ++argv;
         --argc;
@@ -202,10 +200,6 @@ static bool options_parse(int argc, char **argv) {
                 config = argarg;
                 continue;
             }
-            if (options_long_gcc("memdumpcols", &argc, &argv, &memdumpcols)) {
-                OPTS_OPTION_U16(OPTION_MEMDUMPCOLS) = (uint16_t)strtol(memdumpcols, NULL, 10);
-                continue;
-            }
             if (options_long_gcc("progsrc", &argc, &argv, &argarg)) {
                 OPTS_OPTION_STR(OPTION_PROGSRC) = argarg;
                 continue;
@@ -246,10 +240,6 @@ static bool options_parse(int argc, char **argv) {
                 OPTS_OPTION_BOOL(OPTION_DUMPFIN) = true;
                 continue;
             }
-            if (!strcmp(argv[0]+1, "memchk")) {
-                OPTS_OPTION_BOOL(OPTION_MEMCHK) = true;
-                continue;
-            }
             if (!strcmp(argv[0]+1, "nocolor")) {
                 con_color(0);
                 continue;
diff --git a/opts.c b/opts.c
index cbe94445111e1b1ace3cd76b1054e8469b71397b..bc728248ba6786db126f46d40267446104abdbbb 100644 (file)
--- a/opts.c
+++ b/opts.c
@@ -112,7 +112,6 @@ void opts_init(const char *output, int standard, size_t arraysize) {
     OPTS_OPTION_STR(OPTION_OUTPUT)         = output;
     OPTS_OPTION_U32(OPTION_STANDARD)       = standard;
     OPTS_OPTION_U32(OPTION_MAX_ARRAY_SIZE) = arraysize;
-    OPTS_OPTION_U16(OPTION_MEMDUMPCOLS)    = 16;
 }
 
 static bool opts_setflag_all(const char *name, bool on, uint32_t *flags, const opts_flag_def_t *list, size_t listsize) {
index 4f828e202581efb4b6e940e5e68a9cfebb3df8e1..f5ce0af60c58c0fb00a6866935ebabe3a482b0a5 100644 (file)
--- a/opts.def
+++ b/opts.def
     GMQCC_DEFINE_FLAG(G)
     GMQCC_DEFINE_FLAG(STANDARD)
     GMQCC_DEFINE_FLAG(DEBUG)
-    GMQCC_DEFINE_FLAG(MEMDUMPCOLS)
-    GMQCC_DEFINE_FLAG(MEMCHK)
     GMQCC_DEFINE_FLAG(DUMPFIN)
     GMQCC_DEFINE_FLAG(DUMP)
     GMQCC_DEFINE_FLAG(FORCECRC)
     GMQCC_DEFINE_FLAG(PP_ONLY)
     GMQCC_DEFINE_FLAG(MAX_ARRAY_SIZE)
     GMQCC_DEFINE_FLAG(ADD_INFO)
-    GMQCC_DEFINE_FLAG(STATISTICS)
     GMQCC_DEFINE_FLAG(PROGSRC)
     GMQCC_DEFINE_FLAG(COVERAGE)
     GMQCC_DEFINE_FLAG(STATE_FPS)
diff --git a/test.c b/test.c
index 0c59c6f9776c3c0fea2e09e43b4b012dc536224b..2c985f0fad87d7ead73d61d3133adc9184e2c0ec 100644 (file)
--- a/test.c
+++ b/test.c
@@ -1279,7 +1279,6 @@ int main(int argc, char **argv) {
     char *defs = NULL;
 
     con_init();
-    OPTS_OPTION_U16(OPTION_MEMDUMPCOLS) = 16;
 
     /*
      * Command line option parsing commences now We only need to support
@@ -1297,10 +1296,6 @@ int main(int argc, char **argv) {
                 OPTS_OPTION_BOOL(OPTION_DEBUG) = true;
                 continue;
             }
-            if (!strcmp(argv[0]+1, "memchk")) {
-                OPTS_OPTION_BOOL(OPTION_MEMCHK) = true;
-                continue;
-            }
             if (!strcmp(argv[0]+1, "nocolor")) {
                 con_color(0);
                 continue;