OSDN Git Service

2002-02-13 Michael Chastain <mec@shout.net>
authorchastain <chastain>
Wed, 13 Feb 2002 18:49:29 +0000 (18:49 +0000)
committerchastain <chastain>
Wed, 13 Feb 2002 18:49:29 +0000 (18:49 +0000)
* defs.h: Kill CONST_PTR.
* c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
* c-lang.c (c_builtin_types): Likewise.
* ch-lang.c (ch_builtin_types): Likewise.
* f-lang.c (f_builtin_types): Likewise.
* language.c (unknown_builtin_types): Likewise.
* m2-lang.c (m2_builtin_types): Likewise.
* p-lang.c (pascal_builtin_types): Likewise.
* scm-lang.c (c_builtin_types): Likewise.

gdb/ChangeLog
gdb/c-lang.c
gdb/c-lang.h
gdb/ch-lang.c
gdb/defs.h
gdb/f-lang.c
gdb/language.c
gdb/m2-lang.c
gdb/p-lang.c
gdb/scm-lang.c

index 80aad0d..6d826db 100644 (file)
@@ -1,3 +1,15 @@
+2002-02-13  Michael Chastain <mec@shout.net>
+
+       * defs.h: Kill CONST_PTR.
+       * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
+       * c-lang.c (c_builtin_types): Likewise.
+       * ch-lang.c (ch_builtin_types): Likewise.
+       * f-lang.c (f_builtin_types): Likewise.
+       * language.c (unknown_builtin_types): Likewise.
+       * m2-lang.c (m2_builtin_types): Likewise.
+       * p-lang.c (pascal_builtin_types): Likewise.
+       * scm-lang.c (c_builtin_types): Likewise.
+
 2002-02-13  Keith Seitz  <keiths@redhat.com>
 
        * arm-tdep.h (arm_get_next_pc): Add declaration.
index 9e92d7e..fa977cd 100644 (file)
@@ -1,5 +1,5 @@
 /* C language support routines for GDB, the GNU debugger.
-   Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
+   Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2002
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -385,7 +385,7 @@ const struct op_print c_op_print_tab[] =
   {NULL, 0, 0, 0}
 };
 \f
-struct type **CONST_PTR (c_builtin_types[]) =
+struct type **const (c_builtin_types[]) =
 {
   &builtin_type_int,
   &builtin_type_long,
index 8d5c002..b1925e1 100644 (file)
@@ -1,5 +1,5 @@
 /* C language support definitions for GDB, the GNU debugger.
-   Copyright 1992, 1994, 1995, 1996, 1997, 1998, 2000
+   Copyright 1992, 1994, 1995, 1996, 1997, 1998, 2000, 2002
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -51,7 +51,7 @@ extern void c_printstr (struct ui_file * stream, char *string,
 
 extern struct type *c_create_fundamental_type (struct objfile *, int);
 
-extern struct type **CONST_PTR (c_builtin_types[]);
+extern struct type **const (c_builtin_types[]);
 
 /* These are in c-typeprint.c: */
 
index f65e635..b46dce0 100644 (file)
@@ -1,5 +1,5 @@
 /* Chill language support routines for GDB, the GNU debugger.
-   Copyright 1992, 1993, 1994, 1995, 1996, 2000, 2001
+   Copyright 1992, 1993, 1994, 1995, 1996, 2000, 2001, 2002
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -322,7 +322,7 @@ struct type *builtin_type_chill_long;
 struct type *builtin_type_chill_ulong;
 struct type *builtin_type_chill_real;
 
-struct type **CONST_PTR (chill_builtin_types[]) =
+struct type **const (chill_builtin_types[]) =
 {
   &builtin_type_chill_bool,
     &builtin_type_chill_char,
index 5962b14..cf7b0ce 100644 (file)
@@ -987,8 +987,6 @@ typedef struct ptid ptid_t;
 #include "fopen-same.h"
 #endif
 
-#define CONST_PTR const
-
 /* Defaults for system-wide constants (if not defined by xm.h, we fake it).
    FIXME: Assumes 2's complement arithmetic */
 
index bee4063..1727bda 100644 (file)
@@ -1,5 +1,5 @@
 /* Fortran language support routines for GDB, the GNU debugger.
-   Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+   Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
    Free Software Foundation, Inc.
    Contributed by Motorola.  Adapted from the C parser by Farooq Butt
    (fmbutt@engage.sps.mot.com).
@@ -429,7 +429,7 @@ static const struct op_print f_op_print_tab[] =
   {NULL, 0, 0, 0}
 };
 \f
-struct type **CONST_PTR (f_builtin_types[]) =
+struct type **const (f_builtin_types[]) =
 {
   &builtin_type_f_character,
     &builtin_type_f_logical,
index a9077a9..4c4036b 100644 (file)
@@ -1,5 +1,5 @@
 /* Multiple source language support for GDB.
-   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
    Free Software Foundation, Inc.
    Contributed by the Department of Computer Science at the State University
    of New York at Buffalo.
@@ -1444,7 +1444,7 @@ unk_lang_value_print (struct value *val, struct ui_file *stream, int format,
   error ("internal error - unimplemented function unk_lang_value_print called.");
 }
 
-static struct type **CONST_PTR (unknown_builtin_types[]) =
+static struct type **const (unknown_builtin_types[]) =
 {
   0
 };
index 15e3600..116d850 100644 (file)
@@ -1,5 +1,5 @@
 /* Modula 2 language support routines for GDB, the GNU debugger.
-   Copyright 1992, 1993, 1994, 1995, 1996, 1998, 2000
+   Copyright 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2002
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -398,7 +398,7 @@ struct type *builtin_type_m2_card;
 struct type *builtin_type_m2_real;
 struct type *builtin_type_m2_bool;
 
-struct type **CONST_PTR (m2_builtin_types[]) =
+struct type **const (m2_builtin_types[]) =
 {
   &builtin_type_m2_char,
     &builtin_type_m2_int,
index b5ad580..62c8a64 100644 (file)
@@ -1,5 +1,5 @@
 /* Pascal language support routines for GDB, the GNU debugger.
-   Copyright 2000 Free Software Foundation, Inc.
+   Copyright 2000, 2002 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -407,7 +407,7 @@ const struct op_print pascal_op_print_tab[] =
   {NULL, 0, 0, 0}
 };
 \f
-struct type **const /* CONST_PTR v 4.17 */ (pascal_builtin_types[]) =
+struct type **const (pascal_builtin_types[]) =
 {
   &builtin_type_int,
     &builtin_type_long,
index 4f1295c..30ca763 100644 (file)
@@ -41,7 +41,7 @@ static void scm_printstr (struct ui_file * stream, char *string,
                          unsigned int length, int width,
                          int force_ellipses);
 
-extern struct type **CONST_PTR (c_builtin_types[]);
+extern struct type **const (c_builtin_types[]);
 
 struct type *builtin_type_scm;