Commits


cmd/yacc: correctly detect end of file in gettok This prevents an infinite loop. Change-Id: I7eda6b9d032ca0daeb24b555954330d07f35c78b


cmd/yacc: check that arg is safe to pass to <ctype.h> isX functions The functions from <ctype.h> require that their argument be representable as an unsigned char, anything else is an error. Change-Id: I9dafc49c431b7a2550b041603f27bac3c0010eea


cmd/yacc: check for EOF in string constant in cpyact Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c


cmd/yacc: do not create an out of bounds pointer An out of bounds pointer/array index being created is an error in standard C. Updates #313 Change-Id: I7108fcde1a8e03017e9ab852adb737940489c827


yacc: Fix a bug from at least 1995. Fix a bug folding newlines in strings constants in C code snippets in YACC. This code has existed since at least 2nd Edition Plan 9. Change-Id: Iba17b89a6529ac9fa6610bf0b44f551904174c26 Signed-off-by: Dan Cross <cross@gajendra.net> Reviewed-on: https://plan9port-review.googlesource.com/2840 Reviewed-by: Russ Cox <rsc@swtch.com>


write YYARG def to ftable (fdefine might be null, and is not the right place anyway)


Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.


Reduce the differences between yaccpar and yaccpars. Add support for passing an argument through yyparse to yylex.


fix unsharp


forgotten files