scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 38178a4bd93825581a30edfe490aa173c1fdb59b
parent ad3eeab0b264ec44bfc0d9370a458b1ce9279a6c
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 15 Feb 2017 11:35:00 -0800

Use LINESIZ instead of MAXLINE (200)

The cc1 output of libutil/unescape.c from sbase exceeds the 200
character limit (longest line is 205).

Also, make `line` static.

Diffstat:
Mcc2/parser.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cc2/parser.c b/cc2/parser.c @@ -10,7 +10,6 @@ static char sccsid[] = "@(#) ./cc2/parser.c"; #include "cc2.h" -#define MAXLINE 200 #define STACKSIZ 50 extern Type int8type, int16type, int32type, int64type, @@ -311,7 +310,7 @@ eval(char *tok) static int nextline(void) { - char line[MAXLINE]; + static char line[LINESIZ]; size_t len; int c; void (*fun)(void);