keystruct constantness
This commit is contained in:
parent
afc9780e8a
commit
375626e864
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user