}
}
+
+
static long GetDecimalToken (void)
{
long Value = 0;
return Value;
}
-static int GetEncodedChar (char *Buf, unsigned *IPtr, unsigned Size)
+
+
+static int GetEncodedChar (char* Buf, unsigned* IPtr, unsigned Size)
{
char Decoded = 0;
int Count;
} else {
switch (C) {
case '"': case '\'': case '\\':
- Decoded = C; break;
- case 't': Decoded = '\t'; break;
- case 'r': Decoded = '\r'; break;
- case 'n': Decoded = '\n'; break;
- default: return -1;
+ Decoded = C; break;
+ case 't': Decoded = '\t'; break;
+ case 'r': Decoded = '\r'; break;
+ case 'n': Decoded = '\n'; break;
+ default: return -1;
}
NextChar ();
}
return 0;
}
+
+
static void LineMarkerOrComment ()
/* Handle a line beginning with '#'. Possible interpretations are:
-** - #line <lineno> ["<filename>"] (C preprocessor input)
+** - #line <lineno> ["<filename>"] (C preprocessor input)
** - # <lineno> "<filename>" [<flag>]... (gcc preprocessor output)
** - #<comment>
*/
SB_Done (&SrcNameBuf);
}
+
+
void InfoNextTok (void)
/* Read the next token from the input stream */
{
if (C != '\"') {
InfoError ("Unterminated string");
}
- NextChar ();
+ NextChar ();
InfoTok = INFOTOK_STRCON;
break;
-#ifdef unused
-const char* InfoGetName (void)
-/* Get the name of the config file */
-{
- return InfoFile? InfoFile : "";
-}
-#endif /* unused */
-
-
-
int InfoAvail ()
/* Return true if we have an info file given */
{