From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ef4b8bc112693c34 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-12-19 20:37:53 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uunet!deshaw.com!christos From: christos@deshaw.com (Christos Zoulas) Subject: Re: va_list on OSF1/DEC C compiler Message-ID: Keywords: VA_LIST CC Compiler Sender: usenet@deshaw.com Nntp-Posting-Host: cs1 Organization: D. E. Shaw & Co. References: <2enq89$bqp@overload.lbl.gov> Date: Mon, 20 Dec 1993 03:29:37 GMT In article <2enq89$bqp@overload.lbl.gov> jin@gracie.lbl.gov (Guojun Jin[ITG]) writes: >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 > { > ... > } > [stuff deleted] >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, This is not a bug! The bug is in your code. The only guaranteed working form of varargs is when va_list is the one and only argument. christos