diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-29 13:53:59 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-29 13:53:59 +0000 |
commit | fb35179aa55fc69f7e58d3364684246fd3b584ce (patch) | |
tree | 6e3201f8c8d3d502dd57d16041c0f18d17a276f9 /libgfortran/runtime/environ.c | |
parent | 908cb59d263cca413d6a47836cee043d3b3b9ece (diff) | |
download | gcc-fb35179aa55fc69f7e58d3364684246fd3b584ce.tar.gz |
* runtime/string.c (find_option): Change 3rd argument to
const st_option *.
* libgfortran.h (find_option): Likewise.
* runtime/environ.c (rounding, precision, signal_choices): Constify.
(init_choice, show_choice): Change 2nd argument to const choice *.
* io/open.c (access_opt, action_opt, blank_opt, delim_opt, form_opt,
position_opt, status_opt, pad_opt): Constify.
* io/transfer.c (advance_opt): Likewise.
* io/inquire.c (undefined): Likewise.
* io/close.c (status_opt): Likewise.
* io/format.c (posint_required, period_required, nonneg_required,
unexpected_element, unexpected_end, bad_string, bad_hollerith,
reversion_error): Likewise.
* io/unix.c (yes, no, unknown): Change from const char *
into const char [].
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104773 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/runtime/environ.c')
-rw-r--r-- | libgfortran/runtime/environ.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgfortran/runtime/environ.c b/libgfortran/runtime/environ.c index 66222bfd2f7..e86f2ce5b5c 100644 --- a/libgfortran/runtime/environ.c +++ b/libgfortran/runtime/environ.c @@ -356,7 +356,7 @@ choice; enum { FP_ROUND_NEAREST, FP_ROUND_UP, FP_ROUND_DOWN, FP_ROUND_ZERO }; -static choice rounding[] = { +static const choice rounding[] = { {"NEAREST", FP_ROUND_NEAREST}, {"UP", FP_ROUND_UP}, {"DOWN", FP_ROUND_DOWN}, @@ -364,7 +364,7 @@ static choice rounding[] = { {NULL, 0} }; -static choice precision[] = +static const choice precision[] = { { "24", 1}, { "53", 2}, @@ -372,7 +372,7 @@ static choice precision[] = { NULL, 0} }; -static choice signal_choices[] = +static const choice signal_choices[] = { { "IGNORE", 1}, { "ABORT", 0}, @@ -381,7 +381,7 @@ static choice signal_choices[] = static void -init_choice (variable * v, choice * c) +init_choice (variable * v, const choice * c) { char *p; @@ -408,7 +408,7 @@ init_choice (variable * v, choice * c) static void -show_choice (variable * v, choice * c) +show_choice (variable * v, const choice * c) { st_printf ("%s ", var_source (v)); |