shithub: scc

Download patch

ref: 4735283b475d30289ba7384f62b64e4e53406d0e
parent: 1ad61425f50fc4f6dc66ccbc6bca4c6330b8027c
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Jul 6 04:58:33 EDT 2013

Fix bug in dirdcl()

accept() already pass to the next element in the input, so calling
next() after accept() means losing a token.

--- a/decl.c
+++ b/decl.c
@@ -52,7 +52,6 @@
 
 	for (;;) {
 		if (accept('(')) {
-			next();
 			pushtype(FTN);
 			if (accept(')'))
 				; /* TODO: k&r function */
--