more va_dcl problems
Todd Vierling
tv@pobox.com
Sun Nov 8 17:12:00 GMT 1998
On Sun, 8 Nov 1998, Red Hat Linux User wrote:
: Below is a test case that compiles fine on my SGI at work (using sgi
: compilers).
:
: #include <varargs.h>
:
: main()
: {
: va_dcl
: {
: }
: }
This doesn't look like legal K&R C to me. The proper use of K&R varargs is:
#include <varargs.h>
returntype functionname(var1, var2, va_alist)
var1type var1;
var2type var2;
va_dcl
{
function body
}
which _does_ work on egcs 1.1 branch.
--
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)
More information about the Gcc-bugs
mailing list