minor simplification

This commit is contained in:
anon 2024-11-07 15:23:25 +01:00
parent 618c56893e
commit 15f0963408
3 changed files with 3 additions and 3 deletions

View File

@ -601,7 +601,7 @@ if{wsnl}*\( { /* ignore 'if' */
}
/* if found word was a keyword: */
if ((s = lookup(my_yytext + first)) != NULL) {
if ((s = lookup(my_yytext + first, compress)) != NULL) {
first = my_yyleng;
/* if the start of a typedef */

View File

@ -224,7 +224,7 @@ char *findinclude(const char *pattern);
char *findassign(const char *pattern);
char *findallfcns(const char *dummy);
char *inviewpath(char *file);
char *lookup(char *ident);
char *lookup(char *ident, bool do_compressed);
char *pathcomponents(char *path, int components);
char *read_block(void);
char *scanpast(char c);

View File

@ -112,7 +112,7 @@ void initsymtab(void) {
/* see if this identifier is a keyword */
char *lookup(char *ident) {
char * lookup(char *ident, bool do_compressed) {
struct keystruct *p;
int c;