cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 9ab369a2b826b4a2d0df1afbb43b181b3c2da4f3
parent 5cb3d6896f7c473a7fc66408114db4511fd9504c
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 18 Mar 2020 00:44:08 -0700

pp: Handle #define without trailing newline

Diffstat:
Mpp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pp.c b/pp.c @@ -227,7 +227,7 @@ define(void) m->nparam = params.len / sizeof(m->param[0]); /* read macro body */ - while (t->kind != TNEWLINE) { + while (t->kind != TNEWLINE && t->kind != TEOF) { if (t->kind == THASHHASH) error(&t->loc, "'##' operator is not yet implemented"); prev = t->kind;