gengenrtl.c (type_from_format): De-ANSIfy function signature.

* gengenrtl.c (type_from_format): De-ANSIfy function signature.
        (accessor_from_format): Likewise.
        (xmalloc): New function for use when linking with alloca.o.

From-SVN: r17386
This commit is contained in:
Kaveh R. Ghazi 1998-01-17 20:09:09 +00:00 committed by Jeff Law
parent 520ab477c8
commit 982255c878
2 changed files with 27 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Sat Jan 17 21:09:46 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gengenrtl.c (type_from_format): De-ANSIfy function signature.
(accessor_from_format): Likewise.
(xmalloc): New function for use when linking with alloca.o.
Mon Jan 5 02:53:01 1998 Bruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de>
* frame.c (find_fde): Correct FDE's upper bound.

View File

@ -49,7 +49,8 @@ struct rtx_definition defs[] =
const char *formats[NUM_RTX_CODE];
static const char *
type_from_format (char c)
type_from_format (c)
char c;
{
switch (c)
{
@ -70,7 +71,8 @@ type_from_format (char c)
}
static const char *
accessor_from_format (char c)
accessor_from_format (c)
char c;
{
switch (c)
{
@ -258,6 +260,23 @@ gencode (f)
gendef (f, *fmt);
}
#if defined(USE_C_ALLOCA) && !defined(__GNUC__)
char *
xmalloc (nbytes)
int nbytes;
{
char *tmp = (char *) malloc (nbytes);
if (!tmp)
{
fprintf (stderr, "can't allocate %d bytes (out of virtual memory)\n", nbytes);
exit (FATAL_EXIT_CODE);
}
return tmp;
}
#endif /* USE_C_ALLOCA && !__GNUC__ */
int
main(argc, argv)
int argc;