X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=zilasm%2Fparser.c;h=81713cc03b1f7df9e847ba73853cf1299062744f;hb=37d32bd49e745a5c1686b6495f60172b24222361;hp=61038a4fc7e4061cdc76b7630e9c05c841bfea68;hpb=e66bff85f58de39f1b850a713413b0d9c10bb9a1;p=zilutils.git diff --git a/zilasm/parser.c b/zilasm/parser.c index 61038a4..81713cc 100644 --- a/zilasm/parser.c +++ b/zilasm/parser.c @@ -1,7 +1,7 @@ /* * parser.c -- part of ZilUtils/ZilAsm * - * Copyright (C) 2016 Jason Self + * Copyright (C) 2016, 2019 Jason Self * * 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;