From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ef4b8bc112693c34,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-12-15 12:29:21 PST Path: gmd.de!xlink.net!howland.reston.ans.net!agate!overload.lbl.gov!gracie.lbl.gov!jin From: jin@gracie.lbl.gov (Guojun Jin[ITG]) Newsgroups: comp.unix.osf.osf1 Subject: va_list on OSF1/DEC C compiler Followup-To: comp.unix.osf.osf1 Date: 15 Dec 1993 19:58:01 GMT Organization: Lawrence Berkeley Laboratory Distribution: world Expires: 2/1/94 Message-ID: <2enq89$bqp@overload.lbl.gov> NNTP-Posting-Host: gracie.lbl.gov Keywords: VA_LIST CC Compiler 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 |