keystruct constantness

This commit is contained in:
anon 2024-11-10 13:12:58 +01:00
parent afc9780e8a
commit 375626e864
3 changed files with 13 additions and 13 deletions

View File

@ -195,8 +195,8 @@ extern int blocklen; /* length of disk block read */
/* lookup.c global data */
extern struct keystruct {
char *text;
char delim;
const char * text;
const char delim;
struct keystruct *next;
} keyword[];
@ -315,7 +315,7 @@ int findinit(const char *pattern_);
MOUSE *getmouseaction(char leading_char);
int egrep(char *file, FILE *output, char *format);
int hash(char *ss);
int hash(const char * ss);
int execute(char *a, ...);
long dbseek(long offset);

View File

@ -39,11 +39,11 @@
#include "lookup.h"
/* keyword text for fast testing of keywords in the scanner */
char enumtext[] = "enum";
char externtext[] = "extern";
char structtext[] = "struct";
char typedeftext[] = "typedef";
char uniontext[] = "union";
const char enumtext[] = "enum";
const char externtext[] = "extern";
const char structtext[] = "struct";
const char typedeftext[] = "typedef";
const char uniontext[] = "union";
/* This keyword table is also used for keyword text compression. Keywords
* with an index less than the numeric value of a space are replaced with the

View File

@ -36,10 +36,10 @@
/* declarations for objects defined in lookup.c */
/* keyword text for fast testing of keywords in the scanner */
extern char enumtext[];
extern char externtext[];
extern char structtext[];
extern char typedeftext[];
extern char uniontext[];
extern const char enumtext[];
extern const char externtext[];
extern const char structtext[];
extern const char typedeftext[];
extern const char uniontext[];
#endif /* CSCOPE_LOOKUP_H */