Commits
- Commit:
bf59f0ed282f9c9b1ae0660e5af0ac86c0d247b5
- From:
- Neven Sajko <nsajko@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
cmd/yacc: correctly detect end of file in gettok
This prevents an infinite loop.
Change-Id: I7eda6b9d032ca0daeb24b555954330d07f35c78b
- Commit:
eb4aea5072dcca2dfee2ff4d551352dae73a821c
- From:
- Neven Sajko <nsajko@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
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
- Commit:
d2fae53d17c120530a6d12facd8e0fc297331821
- From:
- Neven Sajko <nsajko@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
cmd/yacc: check for EOF in string constant in cpyact
Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c
- Commit:
4a3f20bceee7cef125f9a88bab32439f9fe4f773
- From:
- Neven Sajko <nsajko@gmail.com>
- Via:
- Russ Cox <rsc@golang.org>
- Date:
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
- Commit:
9e52ea8a29db42f37188fd8fa35d641724c3d015
- From:
- Dan Cross <cross@gajendra.net>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
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>
- Commit:
35368876ebfd1eb9f4e5eddec86cf0176d607386
- From:
- rsc <devnull@localhost>
- Date:
write YYARG def to ftable (fdefine might be null, and is not the right place anyway)
- Commit:
cbeb0b26e4c7caa8d1b47de791a7418dc20a4567
- From:
- rsc <devnull@localhost>
- Date:
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
- Commit:
cae9bfe9da0a9d46554940c127fb2a022f1360f6
- From:
- wkj <devnull@localhost>
- Date:
Reduce the differences between yaccpar and yaccpars.
Add support for passing an argument through yyparse to yylex.
- Commit:
459eae0c7098afbf9b572df241669209a37728eb
- From:
- rsc <devnull@localhost>
- Date:
fix unsharp
- Commit:
3940506bccddeff3235cd8874c540813a3deaf6d
- From:
- rsc <devnull@localhost>
- Date:
forgotten files