X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=zilasm%2Fparser.c;h=81713cc03b1f7df9e847ba73853cf1299062744f;hb=37d32bd49e745a5c1686b6495f60172b24222361;hp=7f8af7ec16fe1932c30e2c5c74cc23e4271a9a74;hpb=fd453701e368225dd15e9df2e5b1752aebe454e8;p=zilutils.git diff --git a/zilasm/parser.c b/zilasm/parser.c index 7f8af7e..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 @@ -15,6 +15,8 @@ * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ #include /* 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;