From 77b1a9217b8359f417c7e090e857c464d2e8778a Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 21 Oct 2001 21:03:48 +0000 Subject: langhooks.c (lang_hook_default_do_nothing, [...]): New defaults. * langhooks.c (lang_hook_default_do_nothing, lang_hook_default_decode_option): New defaults. * langhooks.h: Make hooks unconditional and non-NULL. * toplev.c (compile_file, toplev_main): Update. * toplev.h: Update comments. * objc/objc-act.c (lang_hooks): Update to new paradigm. From-SVN: r46396 --- gcc/toplev.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gcc/toplev.h') diff --git a/gcc/toplev.h b/gcc/toplev.h index 61a277c3766..4203207f096 100644 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -138,7 +138,7 @@ struct lang_hooks_for_tree_inlining int (*anon_aggr_type_p) PARAMS ((union tree_node *)); }; -/* Language-specific hooks. Can be NULL unless otherwise specified. */ +/* Language-specific hooks. See langhooks.h for defaults. */ struct lang_hooks { @@ -158,9 +158,7 @@ struct lang_hooks option. If this function returns a negative number, then its absolute value is the number of command-line arguments used, but, in addition, no language-independent option processing should be - done for this option. - - This hook cannot be NULL. */ + done for this option. */ int (*decode_option) PARAMS ((int, char **)); /* Called when all command line options have been processed. */ -- cgit v1.2.1