tree.h (lang_identify): Constify a char*.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 9 Aug 1999 23:38:41 +0000 (23:38 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 9 Aug 1999 23:38:41 +0000 (23:38 +0000)
        * 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

gcc/ChangeLog
gcc/c-lang.c
gcc/objc/objc-act.c
gcc/tree.h

index fb1515facae2231bde06d64261db63940d0a244e..5128c7b326b093e549e060f6e026a74455ef0011 100644 (file)
@@ -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".
index 8f37cab474a7becff169eab9f7c241b1d49654d7..c8c4645a883596b9515259317484fca365f198cd 100644 (file)
@@ -75,7 +75,7 @@ lang_finish ()
 {
 }
 
-char *
+const char *
 lang_identify ()
 {
   return "c";
index 685c95087feec975bb66c29fedc6e8cb762763b4..3bafafe56a104b88922b663b8b2faebe5828c775 100644 (file)
@@ -682,7 +682,7 @@ lang_finish ()
 {
 }
 
-char *
+const char *
 lang_identify ()
 {
   return "objc";
index 8380560e8eeaf59ec12427fdaeaf58865422f38e..a56b202a26885cd19f5e22a28a6f263b40a122b6 100644 (file)
@@ -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));