diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 18:00:39 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 18:00:39 -0700 |
commit | 0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4 (patch) | |
tree | e61a1007a79f0d678aca72222918cec96e9f157c /def.h | |
parent | 97ae52f80f9e382917889bde1913367572e89012 (diff) |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'def.h')
-rw-r--r-- | def.h | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -134,10 +134,10 @@ struct filepointer { int match(const char *str, const char * const *list); char *base_name(const char *file); char *getnextline(struct filepointer *fp); -struct symtab **slookup(char *symbol, struct inclist *file); -struct symtab **isdefined(char *symbol, struct inclist *file, +struct symtab **slookup(const char *symbol, struct inclist *file); +struct symtab **isdefined(const char *symbol, struct inclist *file, struct inclist **srcfile); -struct symtab **fdefined(char *symbol, struct inclist *file, +struct symtab **fdefined(const char *symbol, struct inclist *file, struct inclist **srcfile); struct filepointer *getfile(const char *file); void included_by(struct inclist *ip, @@ -150,9 +150,10 @@ struct inclist *inc_path(const char *file, const char *include, void freefile(struct filepointer *fp); -void define2(char *name, char *val, struct inclist *file); +void define2(const char *name, const char *val, + struct inclist *file); void define(char *def, struct inclist *file); -void undefine(char *symbol, struct inclist *file); +void undefine(const char *symbol, struct inclist *file); int find_includes(struct filepointer *filep, struct inclist *file, struct inclist *file_red, @@ -186,8 +187,8 @@ extern const char **includedirsnext; extern const char * const directives[]; extern char *notdotdot[ ]; -extern char *objprefix; -extern char *objsuffix; +extern const char *objprefix; +extern const char *objsuffix; extern int width; extern boolean printed; extern boolean verbose; |