If NOPP is defined, do not do trigraph translation; cpp does it
This commit is contained in:
parent
5d00c41800
commit
b503d85d23
1 changed files with 6 additions and 1 deletions
|
@ -640,9 +640,12 @@ GetChar()
|
||||||
*/
|
*/
|
||||||
register int ch;
|
register int ch;
|
||||||
|
|
||||||
|
#ifndef NOPP
|
||||||
again:
|
again:
|
||||||
|
#endif
|
||||||
LoadChar(ch);
|
LoadChar(ch);
|
||||||
|
|
||||||
|
#ifndef NOPP
|
||||||
/* possible trigraph sequence */
|
/* possible trigraph sequence */
|
||||||
if (ch == '?')
|
if (ch == '?')
|
||||||
ch = trigraph();
|
ch = trigraph();
|
||||||
|
@ -657,10 +660,11 @@ again:
|
||||||
PushBack();
|
PushBack();
|
||||||
ch = '\\';
|
ch = '\\';
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return(LexSave = ch);
|
return(LexSave = ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NOPP
|
||||||
int
|
int
|
||||||
trigraph()
|
trigraph()
|
||||||
{
|
{
|
||||||
|
@ -703,6 +707,7 @@ trigraph()
|
||||||
PushBack();
|
PushBack();
|
||||||
return('?');
|
return('?');
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* strflt2tok only checks the syntax of the floating-point number and
|
/* strflt2tok only checks the syntax of the floating-point number and
|
||||||
* selects the right type for the number.
|
* selects the right type for the number.
|
||||||
|
|
Loading…
Add table
Reference in a new issue