jvgenmain.c (error): Reversed 2001-02-01 deletion.

2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* jvgenmain.c (error): Reversed 2001-02-01 deletion.

(http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00527.html)

From-SVN: r39567
This commit is contained in:
Alexandre Petit-Bianco 2001-02-09 11:41:28 -08:00 committed by Alexandre Petit-Bianco
parent ab51eb25ba
commit a395f5abc5
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
* jvgenmain.c (error): Reversed 2001-02-01 deletion.
2001-02-08 Alexandre Petit-Bianco <apbianco@cygnus.com>
* Make-lang.in (JAVA_OBJS): Added java/mangle_name.o

View File

@ -33,6 +33,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "java-tree.h"
static char * do_mangle_classname PARAMS ((const char *string));
void error PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1;
struct obstack name_obstack;
struct obstack *mangle_obstack = &name_obstack;
@ -66,6 +67,27 @@ usage (const char *name)
exit (1);
}
/* This function is defined here to help us link jvgenmain at
bootstrap. */
void
error VPARAMS ((const char *msgid, ...))
{
#ifndef ANSI_PROTOTYPES
const char *msgid;
#endif
va_list ap;
VA_START (ap, msgid);
#ifndef ANSI_PROTOTYPES
msgid = va_arg (ap, const char *);
#endif
vfprintf (stderr, msgid, ap);
va_end (ap);
}
int
main (int argc, const char **argv)
{