diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-09-13 14:37:29 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-09-13 14:37:29 +0000 |
commit | 83182544dbfc89d2d974431383d61039cac9b773 (patch) | |
tree | c5d68aba90c30f41b5992271d9c2e33574c3a647 /gcc/protoize.c | |
parent | f404402c4ebc0b51b63128c9ce40b381743c9cb0 (diff) | |
download | gcc-83182544dbfc89d2d974431383d61039cac9b773.zip gcc-83182544dbfc89d2d974431383d61039cac9b773.tar.gz gcc-83182544dbfc89d2d974431383d61039cac9b773.tar.bz2 |
c-parse.in (yyerror): Const-ification and/or static-ization.
* c-parse.in (yyerror): Const-ification and/or static-ization.
* c-typeck.c (push_member_name): Likewise.
* collect2.c (main): Likewise.
* dbxout.c (dbxout_parms): Likewise.
* diagnostic.c (format_with_decl): Likewise.
* dwarf2out.c (output_ranges): Likewise.
* dwarfout.c (fundamental_type_code): Likewise.
* except.c (dw2_output_call_site_table): Likewise.
* gcc.c (do_spec_1): Likewise.
* genopinit.c (optabs): Likewise.
* objc/objc-act.c (synth_id_with_class_suffix, start_class,
gen_declaration_1, handle_impent): Likewise.
* protoize.c (default_include, in_system_include_dir, abspath):
Likewise.
* sched-vis.c (visualize_stall_cycles): Likewise.
* sdbout.c (plain_type_1, sdbout_end_function,
sdbout_end_epilogue): Likewise.
* varasm.c (decode_reg_name): Likewise.
* 1750a.c (mod_regno_adjust): Likewise.
* alpha.c (alpha_write_one_linkage,
unicosmk_output_default_externs): Likewise.
* arm.c (arm_condition_codes): Likewise.
* arm.h (arm_condition_codes): Likewise.
* avr.c (output_movsisf, encode_section_info): Likewise.
* darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
Likewise.
* i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
* i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
* m88k.c (output_function_profiler): Likewise.
* mips.c (mips_output_conditional_branch): Likewise.
* ns32k.c (ns32k_out_reg_names): Likewise.
* ns32k.h (ns32k_out_reg_names): Likewise.
* pj.c (pj_output_rval): Likewise.
* rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
* sparc.c (sparc_flat_function_prologue,
sparc_flat_function_epilogue): Likewise.
cp:
* decl.c (warn_extern_redeclared_static, cp_make_fname_decl):
Const-ification.
* pt.c (tsubst_decl): Likewise.
f:
* bad.c (ffebad_finish): Const-ification and/or static-ization.
* intrin.c (ffeintrin_cmp_name_): Likewise.
* stc.c (ffestc_R904): Likewise.
java:
* expr.c (expand_invoke): Const-ification.
* parse.y (patch_method_invocation): Likewise.
From-SVN: r45581
Diffstat (limited to 'gcc/protoize.c')
-rw-r--r-- | gcc/protoize.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/protoize.c b/gcc/protoize.c index 63b6935..a0c1d19 100644 --- a/gcc/protoize.c +++ b/gcc/protoize.c @@ -205,7 +205,7 @@ static const int hash_mask = (HASH_TABLE_SIZE - 1); #define LOCAL_INCLUDE_DIR "/usr/local/include" #endif -struct default_include { const char *const fname; +static const struct default_include { const char *const fname; const char *const component; int x1, x2; } include_defaults[] #ifdef INCLUDE_DEFAULTS @@ -743,7 +743,7 @@ static int in_system_include_dir (path) const char *path; { - struct default_include *p; + const struct default_include *p; if (! is_abspath (path)) abort (); /* Must be an absolutized filename. */ @@ -1195,7 +1195,7 @@ abspath (cwd, rel_filename) const char *rel_filename; { /* Setup the current working directory as needed. */ - const char *cwd2 = (cwd) ? cwd : cwd_buffer; + const char *const cwd2 = (cwd) ? cwd : cwd_buffer; char *const abs_buffer = (char *) alloca (strlen (cwd2) + strlen (rel_filename) + 2); char *endp = abs_buffer; |