Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Aug 2003 23:09:21 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-alpha@freebsd.org
Subject:   varargs.h broken?
Message-ID:  <bibgj1$28su$1@kemoauc.mips.inka.de>

next in thread | raw e-mail | index | archive | help
Is <varargs.h> known to be broken on -CURRENT/alpha?

I'm currently looking at a piece of code in a port that uses varargs
and that should be fine

    18  # include <varargs.h>

    27  /* VARARGS */
    28  void
    29  debug_printf(va_alist)
    30          va_dcl
    31  {
    32          va_list         args;
    33          char            *fmt;
    34  
    35          va_start(args);

but compilation errors out:

debug.c: In function `debug_printf':
debug.c:30: error: syntax error before '...' token
debug.c:35: error: syntax error before "__builtin_varargs_start"

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bibgj1$28su$1>