mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03:04 +00:00
portability: use va_start and va_end in the same function.
* src/complain.c (error_message): Move va_end from here...
(ERROR_MESSAGE): ... to here.
(cherry picked from commit 786578e394)
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2009-10-11 Joel E. Denny <jdenny@clemson.edu>
|
||||||
|
|
||||||
|
portability: use va_start and va_end in the same function.
|
||||||
|
* src/complain.c (error_message): Move va_end from here...
|
||||||
|
(ERROR_MESSAGE): ... to here.
|
||||||
|
|
||||||
2009-10-04 Joel E. Denny <jdenny@clemson.edu>
|
2009-10-04 Joel E. Denny <jdenny@clemson.edu>
|
||||||
|
|
||||||
tests: skip tests of file names that platform does not support.
|
tests: skip tests of file names that platform does not support.
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ error_message (location *loc,
|
|||||||
fprintf (stderr, "%s: ", prefix);
|
fprintf (stderr, "%s: ", prefix);
|
||||||
|
|
||||||
vfprintf (stderr, message, args);
|
vfprintf (stderr, message, args);
|
||||||
va_end (args);
|
|
||||||
putc ('\n', stderr);
|
putc ('\n', stderr);
|
||||||
fflush (stderr);
|
fflush (stderr);
|
||||||
}
|
}
|
||||||
@@ -67,6 +66,7 @@ error_message (location *loc,
|
|||||||
va_list args; \
|
va_list args; \
|
||||||
va_start (args, Message); \
|
va_start (args, Message); \
|
||||||
error_message (Loc, Prefix, Message, args); \
|
error_message (Loc, Prefix, Message, args); \
|
||||||
|
va_end (args); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user