diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-08-09 23:38:41 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-08-09 23:38:41 +0000 |
commit | c95910595c2eaf9a2c9e566433e7f5aef4b6c638 (patch) | |
tree | cd91fe7eb3d0e0ce44e6dcba69e73f071c3f67b0 | |
parent | 63ac1f08b75c93d78920bf03466a1add4a57271c (diff) | |
download | gcc-c95910595c2eaf9a2c9e566433e7f5aef4b6c638.zip gcc-c95910595c2eaf9a2c9e566433e7f5aef4b6c638.tar.gz gcc-c95910595c2eaf9a2c9e566433e7f5aef4b6c638.tar.bz2 |
tree.h (lang_identify): Constify a char*.
* tree.h (lang_identify): Constify a char*.
(print_error_function): Add extern prototype. Constify a char*.
* c-lang.c (lang_identify): Constify a char*.
* objc/objc-act.c (lang_identify): Constify a char*.
From-SVN: r28631
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/c-lang.c | 2 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 2 | ||||
-rw-r--r-- | gcc/tree.h | 6 |
4 files changed, 16 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb1515f..5128c7b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * tree.h (lang_identify): Constify a char*. + (print_error_function): Add extern prototype. Constify a char*. + + * c-lang.c (lang_identify): Constify a char*. + + * objc/objc-act.c (lang_identify): Constify a char*. + Mon Aug 9 16:21:53 1999 Bernd Schmidt <bernds@cygnus.co.uk> * genpeep.c (main): Make generated file include "function.h". diff --git a/gcc/c-lang.c b/gcc/c-lang.c index 8f37cab..c8c4645 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -75,7 +75,7 @@ lang_finish () { } -char * +const char * lang_identify () { return "c"; diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 685c950..3bafafe 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -682,7 +682,7 @@ lang_finish () { } -char * +const char * lang_identify () { return "objc"; @@ -2077,7 +2077,11 @@ extern void lang_init PROTO((void)); extern void lang_finish PROTO((void)); /* Function to identify which front-end produced the output file. */ -extern char *lang_identify PROTO((void)); +extern const char *lang_identify PROTO((void)); + +/* Called by report_error_function to print out function name. + * Default may be overridden by language front-ends. */ +extern void (*print_error_function) PROTO((const char *)); /* Function to replace the DECL_LANG_SPECIFIC field of a DECL with a copy. */ extern void copy_lang_decl PROTO((tree)); |