summaryrefslogtreecommitdiff
path: root/def.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 18:00:39 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 18:00:39 -0700
commit0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4 (patch)
treee61a1007a79f0d678aca72222918cec96e9f157c /def.h
parent97ae52f80f9e382917889bde1913367572e89012 (diff)
downloadxorg-util-makedepend-0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4.tar.gz
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.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/def.h b/def.h
index 6251d91..ce344a8 100644
--- a/def.h
+++ b/def.h
@@ -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;