Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!think.com!mintaka!spdcc!ima!dirtydog!karl From: karl@ima.isc.com (Karl Heuer) Newsgroups: comp.std.c Subject: Re: Reality check Message-ID: <1990Nov14.193930.19718@dirtydog.ima.isc.com> Date: 14 Nov 90 19:39:30 GMT References: <1990Nov05.233623.11491@dirtydog.ima.isc.com> <1171@dms.UUCP> <14199@smoke.BRL.MIL> <27820@usc> <108329@convex.convex.com> Sender: news@dirtydog.ima.isc.com (NEWS ADMIN) Reply-To: karl@ima.isc.com (Karl Heuer) Organization: Interactive Systems Lines: 17 In <108329@convex.convex.com> gargulak@mozart.convex.com (Tom Gargulak) writes: >karl@ima.isc.com (Karl Heuer) writes: >>[My ] even works on pre-ANSI compilers, so I can take code written >>with ANSI prototypes and and simply deprotoize it without having >>to worry about converting to . > >[What about ellipsis?] The ellipsis is part of the function prototype, and so is removed by the deprotoizer: int printf(char const *fmt, ...) { /* as stored in source file */ int printf(fmt) char *fmt; { /* after deproto and -Dconst="" */ which is acceptable to the Classic C compiler. says #define va_start(ap, parmN) (ap = (char *)&parmN + sizeof(parmN)) in the typical implementation. Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint