cp-tree.h (lvalue_or_else): Qualify a char* with the `const' keyword to match an...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Thu, 18 Feb 1999 20:44:21 +0000 (20:44 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Thu, 18 Feb 1999 20:44:21 +0000 (20:44 +0000)
        * cp-tree.h (lvalue_or_else): Qualify a char* with the `const'
        keyword to match an analogous change at the top level.
        * tree.c (lvalue_or_else): Likewise.

From-SVN: r25297

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/tree.c

index d7dc235..38b713d 100644 (file)
@@ -1,3 +1,10 @@
+Thu Feb 18 23:40:01 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * cp-tree.h (lvalue_or_else): Qualify a char* with the `const'
+       keyword to match an analogous change at the top level.
+
+       * tree.c (lvalue_or_else): Likewise.
+
 1999-02-17  Mark Mitchell  <mark@markmitchell.com>
 
        * decl.c (xref_basetypes): Comment.
index bbb0adf..d91149c 100644 (file)
@@ -3245,7 +3245,7 @@ extern tree build_min                             PVPROTO((enum tree_code, tree, ...));
 extern tree build_min_nt                       PVPROTO((enum tree_code, ...));
 extern tree min_tree_cons                      PROTO((tree, tree, tree));
 extern int lvalue_p                            PROTO((tree));
-extern int lvalue_or_else                      PROTO((tree, char *));
+extern int lvalue_or_else                      PROTO((tree, const char *));
 extern tree build_cplus_new                    PROTO((tree, tree));
 extern tree get_target_expr                    PROTO((tree));
 extern tree break_out_cleanups                 PROTO((tree));
index bc5a18e..323532a 100644 (file)
@@ -171,7 +171,7 @@ lvalue_p (ref)
 int
 lvalue_or_else (ref, string)
      tree ref;
-     char *string;
+     const char *string;
 {
   int win = lvalue_p (ref);
   if (! win)