PP, nonfunctional: Remove crufty bit-twiddling of tokens.

This commit is contained in:
John Kessenich 2017-02-10 12:56:05 -07:00
parent 8e711b84bd
commit b49bb2ca5c
7 changed files with 52 additions and 51 deletions

View file

@ -1076,16 +1076,16 @@ bool TPpContext::tMacroInput::peekMacPasting()
size_t savePos = mac->body.current;
// skip white-space
int ltoken;
int subtoken;
do {
ltoken = pp->lReadByte(mac->body);
} while (ltoken == ' ');
subtoken = pp->getSubtoken(mac->body);
} while (subtoken == ' ');
// check for ##
bool pasting = false;
if (ltoken == '#') {
ltoken = pp->lReadByte(mac->body);
if (ltoken == '#')
if (subtoken == '#') {
subtoken = pp->getSubtoken(mac->body);
if (subtoken == '#')
pasting = true;
}