diff options
author | Andreas Jaeger <aj@gcc.gnu.org> | 2000-09-21 05:43:14 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@gcc.gnu.org> | 2000-09-21 05:43:14 +0200 |
commit | bb20cc46aed1c5abe454e1d0472cf307c6a982ed (patch) | |
tree | 568721c9fe85a0db443612f5ad1c39eb052bdd5d /gcc/cp/errfn.c | |
parent | 07328167818043c60e665d3c5bb750a9b54da09b (diff) | |
download | gcc-bb20cc46aed1c5abe454e1d0472cf307c6a982ed.zip gcc-bb20cc46aed1c5abe454e1d0472cf307c6a982ed.tar.gz gcc-bb20cc46aed1c5abe454e1d0472cf307c6a982ed.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/errfn.c')
-rw-r--r-- | gcc/cp/errfn.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/cp/errfn.c b/gcc/cp/errfn.c index 8560527..802f567 100644 --- a/gcc/cp/errfn.c +++ b/gcc/cp/errfn.c @@ -19,21 +19,13 @@ You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - + #include "config.h" #include "system.h" #include "tree.h" #include "cp-tree.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 used to avoid being too talkative about problems with tentative choices when we're computing the conversion costs for a method call. */ @@ -76,7 +68,7 @@ cp_thing (errfn, atarg1, format, ap) cp_printer * function; int alternate; int maybe_here; - + /* ignore text */ if (*f != '%') { @@ -175,7 +167,7 @@ cp_thing (errfn, atarg1, format, ap) buf[offset] = '\0'; /* If ATARG1 is set, but we haven't extracted any arguments, then - extract one tree argument for ATARG. */ + extract one tree argument for ATARG. */ if (nargs == 0 && atarg1) atarg = va_arg (ap, tree); |