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

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

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

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