OSDN Git Service

* tree.h (lang_identify): Constify a char*.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Aug 1999 23:38:41 +0000 (23:38 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Aug 1999 23:38:41 +0000 (23:38 +0000)
        (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*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28631 138bc75d-0d04-0410-961f-82ee72b054a4

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

index fb1515f..5128c7b 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 8f37cab..c8c4645 100644 (file)
@@ -75,7 +75,7 @@ lang_finish ()
 {
 }
 
-char *
+const char *
 lang_identify ()
 {
   return "c";
index 685c950..3bafafe 100644 (file)
@@ -682,7 +682,7 @@ lang_finish ()
 {
 }
 
-char *
+const char *
 lang_identify ()
 {
   return "objc";
index 8380560..a56b202 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));