in utils/hp2ps/AuxFile.c [109:144]
static void GetAuxTok(FILE *auxfp)
{
while (isspace(ch)) { /* skip whitespace */
if (ch == '\n') linenum++;
ch = getc(auxfp);
}
if (ch == EOF) {
thetok = EOF_TOK;
return;
}
if (isdigit(ch)) {
thetok = GetNumber(auxfp);
return;
} else if (IsIdChar(ch)) { /* ch can't be a digit here */
GetIdent(auxfp);
if (!isupper((int)theident[0])) {
thetok = IDENTIFIER_TOK;
} else if (strcmp(theident, "X_RANGE") == 0) {
thetok = X_RANGE_TOK;
} else if (strcmp(theident, "Y_RANGE") == 0) {
thetok = Y_RANGE_TOK;
} else if (strcmp(theident, "ORDER") == 0) {
thetok = ORDER_TOK;
} else if (strcmp(theident, "SHADE") == 0) {
thetok = SHADE_TOK;
} else {
thetok = IDENTIFIER_TOK;
}
return;
} else {
Error("%s, line %d: strange character (%c)", auxfile, linenum, ch);
}
}