Commit bb20cc46 by Andreas Jaeger

errfn.c: Move declaration of cp_printer and cp_printers to ...

        * errfn.c: Move declaration of cp_printer and cp_printers to ...
        * cp-tree.h: ... here.

        * error.c: Remove declaration of cp_printer.

From-SVN: r36557
parent 07328167
2000-09-21 Andreas Jaeger <aj@suse.de>
* errfn.c: Move declaration of cp_printer and cp_printers to ...
* cp-tree.h: ... here.
* error.c: Remove declaration of cp_printer.
2000-09-20 Mark Mitchell <mark@codesourcery.com> 2000-09-20 Mark Mitchell <mark@codesourcery.com>
* tree.c (mark_local_for_remap_r): Handle CASE_LABELs. * tree.c (mark_local_for_remap_r): Handle CASE_LABELs.
...@@ -6327,4 +6334,3 @@ Wed Jan 26 22:19:14 2000 J"orn Rennecke <amylaar@cygnus.co.uk> ...@@ -6327,4 +6334,3 @@ Wed Jan 26 22:19:14 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2000-01-01 Martin v. Lwis <loewis@informatik.hu-berlin.de> 2000-01-01 Martin v. Lwis <loewis@informatik.hu-berlin.de>
* call.c (build_new_method_call): Also check destructors. * call.c (build_new_method_call): Also check destructors.
...@@ -4019,6 +4019,13 @@ extern const char *cp_file_of PARAMS ((tree)); ...@@ -4019,6 +4019,13 @@ extern const char *cp_file_of PARAMS ((tree));
extern int cp_line_of PARAMS ((tree)); extern int cp_line_of PARAMS ((tree));
extern const char *language_to_string PARAMS ((enum languages, int)); extern const char *language_to_string PARAMS ((enum languages, int));
extern void print_instantiation_context PARAMS ((void)); extern void print_instantiation_context PARAMS ((void));
/* cp_printer is the type of a function which converts an argument into
a string for digestion by printf. The cp_printer function should deal
with all memory management; the functions in errfn will not free
the char*s returned. See error.c for an example use of this code. */
typedef const char *cp_printer PARAMS ((tree, int));
extern cp_printer *cp_printers[256];
/* in except.c */ /* in except.c */
extern void init_exception_processing PARAMS ((void)); extern void init_exception_processing PARAMS ((void));
......
...@@ -26,14 +26,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -26,14 +26,6 @@ Boston, MA 02111-1307, USA. */
#include "cp-tree.h" #include "cp-tree.h"
#include "toplev.h" #include "toplev.h"
/* cp_printer is the type of a function which converts an argument into
a string for digestion by printf. The cp_printer function should deal
with all memory management; the functions in this file will not free
the char*s returned. See error.c for an example use of this code. */
typedef const char *cp_printer PARAMS ((tree, int));
extern cp_printer * cp_printers[256];
/* Whether or not we should try to be quiet for errors and warnings; this is /* Whether or not we should try to be quiet for errors and warnings; this is
used to avoid being too talkative about problems with tentative choices used to avoid being too talkative about problems with tentative choices
when we're computing the conversion costs for a method call. */ when we're computing the conversion costs for a method call. */
......
...@@ -90,8 +90,6 @@ typedef struct ...@@ -90,8 +90,6 @@ typedef struct
put_whitespace (TFI) = none; \ put_whitespace (TFI) = none; \
} while (0) } while (0)
typedef const char *cp_printer ();
#define obstack_chunk_alloc xmalloc #define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free #define obstack_chunk_free free
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment