version 1.5, 2000/07/25 19:28:30 |
version 1.6, 2000/07/26 17:46:52 |
|
|
sp = tok; |
sp = tok; |
} |
} |
else if (sp != tok || begtoken(c)) { |
else if (sp != tok || begtoken(c)) { |
if (sp >= tok + sizeof tok) { |
/* hell... truncate it */ |
/* hell... truncate it */ |
if (sp == tok + sizeof tok - 1) |
if (sp == tok + sizeof(tok)) |
*sp = EOS; |
*sp = '\0'; |
else |
sp++; |
|
} else |
|
*sp++ = c; |
*sp++ = c; |
token = YES; |
token = YES; |
} |
} |
|
|
return; |
return; |
if (iswhite(c)) |
if (iswhite(c)) |
break; |
break; |
if (sp >= tok + sizeof(tok)) { |
/* hell... truncate it */ |
/* hell... truncate it */ |
if (sp == tok + sizeof tok - 1) |
if (sp == tok + sizeof(tok)) |
*sp = EOS; |
*sp = '\0'; |
else |
sp++; |
|
} else |
|
*sp++ = c; |
*sp++ = c; |
} |
} |
*sp = EOS; |
*sp = EOS; |
|
|
break; |
break; |
} |
} |
for (sp = tok;;) { /* get next token */ |
for (sp = tok;;) { /* get next token */ |
if (sp >= tok + sizeof tok) { |
/* hell... truncate it */ |
/* hell... truncate it */ |
if (sp == tok + sizeof tok - 1) |
if (sp == tok + sizeof(tok)) |
*sp = EOS; |
*sp = '\0'; |
else |
sp++; |
|
} else |
|
*sp++ = c; |
*sp++ = c; |
if (GETC(==, EOF)) |
if (GETC(==, EOF)) |
return; |
return; |
|
|
if (c == '{') /* it was "struct {" */ |
if (c == '{') /* it was "struct {" */ |
return (YES); |
return (YES); |
for (sp = tok;;) { /* get next token */ |
for (sp = tok;;) { /* get next token */ |
if (sp >= tok + sizeof tok) { |
/* hell... truncate it */ |
/* hell... truncate it */ |
if (sp == tok + sizeof tok - 1) |
if (sp == tok + sizeof(tok)) |
*sp = EOS; |
*sp = '\0'; |
else |
sp++; |
|
} else |
|
*sp++ = c; |
*sp++ = c; |
if (GETC(==, EOF)) |
if (GETC(==, EOF)) |
return (NO); |
return (NO); |