Add creation of .dat file by writing header and few machine codes
[zilutils.git] / zilasm / parser.c
index 7f8af7ec16fe1932c30e2c5c74cc23e4271a9a74..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
@@ -15,6 +15,8 @@
  *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>
+ *
+ * SPDX-License-Identifier: AGPL-3.0-or-later
  */
 
 #include <stdio.h>   /* fopen, fgets */
@@ -122,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;