From: Peter Johnson Date: Sun, 23 Sep 2001 19:26:31 +0000 (-0000) Subject: Make name and keyword const. X-Git-Tag: v0.1.0~307 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3f0a1c6b8eb75e7bc153eb6c097936f51218f90;p=yasm Make name and keyword const. svn path=/trunk/yasm/; revision=211 --- diff --git a/libyasm/objfmt.h b/libyasm/objfmt.h index 1b085063..cd584de3 100644 --- a/libyasm/objfmt.h +++ b/libyasm/objfmt.h @@ -25,10 +25,10 @@ /* Interface to the object format module(s) */ typedef struct objfmt_s { /* one-line description of the format */ - char *name; + const char *name; /* keyword used to select format on the command line */ - char *keyword; + const char *keyword; /* default (starting) section name */ const char *default_section_name; diff --git a/libyasm/optimizer.h b/libyasm/optimizer.h index d039130b..4b7e9d0f 100644 --- a/libyasm/optimizer.h +++ b/libyasm/optimizer.h @@ -25,10 +25,10 @@ /* Interface to the optimizer module(s) */ typedef struct optimizer_s { /* one-line description of the optimizer */ - char *name; + const char *name; /* keyword used to select optimizer on the command line */ - char *keyword; + const char *keyword; /* Main entrance point for the optimizer. * diff --git a/libyasm/parser.h b/libyasm/parser.h index e021bdc2..b66d317b 100644 --- a/libyasm/parser.h +++ b/libyasm/parser.h @@ -25,10 +25,10 @@ /* Interface to the parser module(s) -- the "front end" of the assembler */ typedef struct parser_s { /* one-line description of the parser */ - char *name; + const char *name; /* keyword used to select parser on the command line */ - char *keyword; + const char *keyword; /* NULL-terminated list of preprocessors that are valid to use with this * parser. The raw preprocessor (raw_preproc) should always be in this diff --git a/libyasm/preproc.h b/libyasm/preproc.h index 9da830be..760afc94 100644 --- a/libyasm/preproc.h +++ b/libyasm/preproc.h @@ -25,10 +25,10 @@ /* Interface to the preprocesor module(s) */ typedef struct preproc_s { /* one-line description of the preprocessor */ - char *name; + const char *name; /* keyword used to select preprocessor on the command line */ - char *keyword; + const char *keyword; /* Initializes preprocessor. * diff --git a/src/objfmt.h b/src/objfmt.h index 1b085063..cd584de3 100644 --- a/src/objfmt.h +++ b/src/objfmt.h @@ -25,10 +25,10 @@ /* Interface to the object format module(s) */ typedef struct objfmt_s { /* one-line description of the format */ - char *name; + const char *name; /* keyword used to select format on the command line */ - char *keyword; + const char *keyword; /* default (starting) section name */ const char *default_section_name; diff --git a/src/optimizer.h b/src/optimizer.h index d039130b..4b7e9d0f 100644 --- a/src/optimizer.h +++ b/src/optimizer.h @@ -25,10 +25,10 @@ /* Interface to the optimizer module(s) */ typedef struct optimizer_s { /* one-line description of the optimizer */ - char *name; + const char *name; /* keyword used to select optimizer on the command line */ - char *keyword; + const char *keyword; /* Main entrance point for the optimizer. * diff --git a/src/parser.h b/src/parser.h index e021bdc2..b66d317b 100644 --- a/src/parser.h +++ b/src/parser.h @@ -25,10 +25,10 @@ /* Interface to the parser module(s) -- the "front end" of the assembler */ typedef struct parser_s { /* one-line description of the parser */ - char *name; + const char *name; /* keyword used to select parser on the command line */ - char *keyword; + const char *keyword; /* NULL-terminated list of preprocessors that are valid to use with this * parser. The raw preprocessor (raw_preproc) should always be in this diff --git a/src/preproc.h b/src/preproc.h index 9da830be..760afc94 100644 --- a/src/preproc.h +++ b/src/preproc.h @@ -25,10 +25,10 @@ /* Interface to the preprocesor module(s) */ typedef struct preproc_s { /* one-line description of the preprocessor */ - char *name; + const char *name; /* keyword used to select preprocessor on the command line */ - char *keyword; + const char *keyword; /* Initializes preprocessor. *