Neven Sajko
bf59f0ed28
cmd/yacc: correctly detect end of file in gettok
...
This prevents an infinite loop.
Change-Id: I7eda6b9d032ca0daeb24b555954330d07f35c78b
2020-01-13 14:41:28 -05:00
Neven Sajko
eb4aea5072
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
2020-01-13 14:41:28 -05:00
Neven Sajko
d2fae53d17
cmd/yacc: check for EOF in string constant in cpyact
...
Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c
2020-01-13 14:41:28 -05:00
Neven Sajko
4a3f20bcee
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
2020-01-13 14:41:28 -05:00
Dan Cross
9e52ea8a29
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>
2017-04-21 14:09:47 +00:00
rsc
35368876eb
write YYARG def to ftable (fdefine might be null, and is not the right place anyway)
2007-01-29 16:46:16 +00:00
rsc
cbeb0b26e4
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
2006-04-01 19:24:03 +00:00
wkj
cae9bfe9da
Reduce the differences between yaccpar and yaccpars.
...
Add support for passing an argument through yyparse to yylex.
2005-02-14 20:27:13 +00:00
rsc
459eae0c70
fix unsharp
2005-01-14 17:40:02 +00:00
rsc
3940506bcc
forgotten files
2005-01-13 04:56:07 +00:00
rsc
a9df759c98
new stuff.
2004-04-21 22:49:15 +00:00
rsc
8ad517944e
Today's changes.
...
More changes.
2004-03-25 23:03:57 +00:00
rsc
d21d62e2fc
Various tweaks.
2004-02-29 23:20:28 +00:00
rsc
32f69c36e0
Add support for user-level 9P servers/clients and various bug fixes to go with them.
2003-12-11 17:48:38 +00:00
rsc
c5b9ff9fa8
add hoc
2003-12-04 17:45:49 +00:00
rsc
bc7cb1a15a
new utilities.
...
the .C files compile but are renamed to avoid building automatically.
2003-11-23 18:04:47 +00:00