diff options
author | Michael Forney <mforney@mforney.org> | 2021-04-23 12:49:55 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-04-23 12:50:25 -0700 |
commit | 3c17cff77ccee8c90d5ffea02b7cc8f7e828a4b8 (patch) | |
tree | 5fa7029dfc174c8ba0fe31971098739b4512dc27 /configure | |
parent | 87eaf587b4f95b3c302ced798a32d44a70db3d02 (diff) |
Make some static data const
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -129,10 +129,10 @@ test "$DEFAULT_DYNAMIC_LINKER" && linkflags=$linkflags' "--dynamic-linker", "'$D printf "creating config.h... " cat >config.h <<EOF -static char target[] = "$target"; -static char *startfiles[] = {$startfiles}; -static char *endfiles[] = {$endfiles}; -static char *preprocesscmd[] = { +static const char target[] = "$target"; +static const char *const startfiles[] = {$startfiles}; +static const char *const endfiles[] = {$endfiles}; +static const char *const preprocesscmd[] = { "$DEFAULT_PREPROCESSOR", "-P", /* clear preprocessor GNU C version */ @@ -149,9 +149,9 @@ static char *preprocesscmd[] = { "-D", "__attribute__(x)=", "-D", "__extension__=", $defines}; -static char *codegencmd[] = {"$DEFAULT_QBE"}; -static char *assemblecmd[] = {"$DEFAULT_ASSEMBLER"}; -static char *linkcmd[] = {"$DEFAULT_LINKER", $linkflags}; +static const char *const codegencmd[] = {"$DEFAULT_QBE"}; +static const char *const assemblecmd[] = {"$DEFAULT_ASSEMBLER"}; +static const char *const linkcmd[] = {"$DEFAULT_LINKER", $linkflags}; EOF echo done |