Commit 1ef7d32b by Kaveh R. Ghazi Committed by Kaveh Ghazi

* gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.

From-SVN: r55119
parent 76147cce
2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
2002-06-30 Alan Modra <amodra@bigpond.net.au> 2002-06-30 Alan Modra <amodra@bigpond.net.au>
* unroll.c (loop_iterations): Handle EQ loops. * unroll.c (loop_iterations): Handle EQ loops.
......
...@@ -586,7 +586,6 @@ oprintf VPARAMS ((outf_p o, const char *format, ...)) ...@@ -586,7 +586,6 @@ oprintf VPARAMS ((outf_p o, const char *format, ...))
VA_FIXEDARG (ap, outf_p, o); VA_FIXEDARG (ap, outf_p, o);
VA_FIXEDARG (ap, const char *, format); VA_FIXEDARG (ap, const char *, format);
slength = xvasprintf (&s, format, ap); slength = xvasprintf (&s, format, ap);
VA_CLOSE (ap);
if (o->bufused + slength > o->buflength) if (o->bufused + slength > o->buflength)
{ {
...@@ -602,6 +601,7 @@ oprintf VPARAMS ((outf_p o, const char *format, ...)) ...@@ -602,6 +601,7 @@ oprintf VPARAMS ((outf_p o, const char *format, ...))
memcpy (o->buf + o->bufused, s, slength); memcpy (o->buf + o->bufused, s, slength);
o->bufused += slength; o->bufused += slength;
free (s); free (s);
VA_CLOSE (ap);
} }
/* Open the global header file and the language-specific header files. */ /* Open the global header file and the language-specific header files. */
......
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