Add creation of .dat file by writing header and few machine codes
[zilutils.git] / zilasm / parser.c
index 61038a4fc7e4061cdc76b7630e9c05c841bfea68..81713cc03b1f7df9e847ba73853cf1299062744f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * parser.c -- part of ZilUtils/ZilAsm
  *
- * Copyright (C) 2016 Jason Self <j@jxself.org>
+ * Copyright (C) 2016, 2019 Jason Self <j@jxself.org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as
@@ -124,12 +124,14 @@ int parse_line(const char *p)
        return 0;
 }
 
+#define MAX_LINESIZE 1024
+
 int parse_file(const char *filename)
 {
        FILE *fp = fopen(filename, "r");
        if (!fp) fatal_error("wrong file");
 
-       const int MAX_LINESIZE = 1024;
+        //const int MAX_LINESIZE = 1024;
        char line[MAX_LINESIZE];
        int newline_missing = 0;