From: jin@gracie.lbl.gov (Guojun Jin[ITG])
Subject: va_list on OSF1/DEC C compiler
Date: 15 Dec 1993 19:58:01 GMT [thread overview]
Message-ID: <2enq89$bqp@overload.lbl.gov> (raw)
I am frustrating to use va_list on OSF1/DEC ALPHA C compiler. The va_list
must be used alone without any argument on the protocol list. Other compilers
all use this format:
func_or_proc(a1, a2, ..., an, va_alist)
...
{
...
}
However, the OSF1/DEC ALPHA C compiler does not allow other arguments go on
protocol line with va_list:
func_or_proc_alpha(va_alist)
va_dcl
{
...
}
Of course, there is no complaining for first format, but it does not work
at all. I don't know it is because the OSF1/DEC ALPHA C lib uses a special
va_list structure in both varargs.h and stdarg.h:
#ifndef _VA_LIST
#define _VA_LIST
typedef struct {
char *a0; /* pointer to first homed integer arg */
int offset; /* byte offset of next param */
} va_list;
#endif /* _VA_LIST */
or there is a bug in its C compiler.
If we hope either OSF/DEC to fix it, to whom should we send request?
Thanks for any advises,
/---------------------------------------v-------------------------------\
| Jin Guojun, Imaging Technology | Internet: g_jin@lbl.gov |
| Lawrence Berkeley Laboratory | Usenet: ucbvax!g_jin@lbl.gov |
| | Bitnet: jin%george.lbl.gov@Csa3.LBL.Gov |
next reply other threads:[~1993-12-15 19:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-12-15 19:58 Guojun Jin[ITG] [this message]
1993-12-16 1:51 ` va_list on OSF1/DEC C compiler John T. Kohl
1993-12-20 3:29 ` Christos Zoulas
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox