diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-10-07 14:45:04 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-10-07 14:45:04 +0000 |
commit | 0be6abca220b75aa5a3394fc1f89705aa37c0ebf (patch) | |
tree | a0690de0f4f882e39e15d7ffb604d61ec38915f9 /libiberty/argv.c | |
parent | 59d42021f94fd5aa07147cb63d9187c93f4f13b9 (diff) | |
download | gcc-0be6abca220b75aa5a3394fc1f89705aa37c0ebf.zip gcc-0be6abca220b75aa5a3394fc1f89705aa37c0ebf.tar.gz gcc-0be6abca220b75aa5a3394fc1f89705aa37c0ebf.tar.bz2 |
demangle.h (demangler_engine): Const-ify.
include:
* demangle.h (demangler_engine): Const-ify.
* libiberty.h (buildargv): Likewise.
libiberty:
* argv.c (buildargv, tests, main): Const-ify.
* cp-demangle.c (operator_code): Likewise.
* cplus-dem.c (optable, libiberty_demanglers,
cplus_demangle_set_style, cplus_demangle_name_to_style,
print_demangler_list): Likewise.
* hashtab.c (higher_prime_number): Likewise.
* strcasecmp.c (charmap): Likewise.
* strerror.c (error_info, strerror, main): Likewise.
* strncasecmp.c (charmap): Likewise.
* strsignal.c (signal_info): Likewise.
From-SVN: r46060
Diffstat (limited to 'libiberty/argv.c')
-rw-r--r-- | libiberty/argv.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libiberty/argv.c b/libiberty/argv.c index 3588285..5d848ad 100644 --- a/libiberty/argv.c +++ b/libiberty/argv.c @@ -1,5 +1,5 @@ /* Create and destroy argument vectors (argv's) - Copyright (C) 1992 Free Software Foundation, Inc. + Copyright (C) 1992, 2001 Free Software Foundation, Inc. Written by Fred Fish @ Cygnus Support This file is part of the libiberty library. @@ -203,7 +203,7 @@ NOTES */ char **buildargv (input) -char *input; + const char *input; { char *arg; char *copybuf; @@ -336,7 +336,7 @@ char *input; /* Simple little test driver. */ -static char *tests[] = +static const char *const tests[] = { "a simple command line", "arg 'foo' is single quoted", @@ -353,10 +353,10 @@ static char *tests[] = NULL }; -main () +int main () { char **argv; - char **test; + const char *const *test; char **targs; for (test = tests; *test != NULL; test++) @@ -377,6 +377,7 @@ main () freeargv (argv); } + return 0; } #endif /* MAIN */ |