]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
More parse tree stuff
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index 3e8b8b6b45c73c51f9aaf3c64d9c53b49c37bd1a..c796d7c6525898885dba1e340d105eb10fce2b1e 100644 (file)
--- a/main.c
+++ b/main.c
 #include <limits.h>
 #include "gmqcc.h"
 
-//typedef int foo;
-
 int usage(const char *name) {
        printf("Usage: %s -f infile -o outfile\n", name);
        return 0;
 }
-
 int main(int argc, char **argv) {
        const char *ofile = NULL;
        const char *ifile = NULL;
@@ -60,10 +57,9 @@ int main(int argc, char **argv) {
        printf("ifile: %s\n", ifile);
        printf("ofile: %s\n", ofile);
        
+       
        /* Open file */
        FILE *fp = fopen(ifile, "r");
-       
-       /* run the preprocessor */
        if  (!fp) {
                fclose(fp);
                return error(ERROR_COMPILER, "Source file: %s not found\n", ifile);