Replaced a couple of UnGetChar calls with ChPushBack calls. The

UnGetChar call is wrong after skipspaces().
This commit is contained in:
ceriel
1998-02-09 09:49:00 +00:00
parent d6e0e461f7
commit 91cb060d10
4 changed files with 10 additions and 10 deletions

View File

@@ -366,7 +366,7 @@ do_define()
/* read the replacement text if there is any */
ch = skipspaces(ch,0); /* find first character of the text */
assert(ch != EOI);
/* UngetChar() is not right when replacement starts with a '/' */
/* UnGetChar() is not right when replacement starts with a '/' */
ChPushBack(ch);
repl_text = get_text((nformals > 0) ? formals : 0, &length);
macro_def(str2idf(str, 0), repl_text, nformals, length, NOFLAG);