From: johnson@chaos.dac.neu.edu (Chris Johnson)
Subject: More porting problems, function arguments.
Date: 11 Apr 1994 11:21:43 GMT [thread overview]
Message-ID: <2obbs7$ppv@chaos.dac.neu.edu> (raw)
in K&R implementations it was possible to have a variable number of
function arguments, in other words different numbers of arguments for
different function calls to the same function. A good example of this
is printf. The printf function can have as man aguments as you want
determined by the first argument formatting string.
I'm trying to port old C, K&R filled with BSDisms, to OSF 1. There
is one call in this code used many places that relies on te fact that
older compilers didn't mind argument number mismatches between function
definition and call. That is the definition had 10 arguments but the
call supplies only 6.
I'm at a point now where the running code dies with a BPT Trap at
this mismathed call.
Should this mismatch work in OSF 1' s C?
Is there a way to do this mismatch?
This function is used (or misused) all over the place. I need to
come up with a plan of attack on how to deal with this.
Thanks.
============================================================================
Chris Johnson Internet: johnson@chaos.dac.neu.edu
Assistant Director, Systems BITNET: johnson@nuhub
Division of Academic Computing Voice: 617.373.3300
Northeastern University, 39RI FAX: 617.373.8600
360 Huntington, Ave.
Boston, MA., U.S.A. 02115
============================================================================
next reply other threads:[~1994-04-11 11:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-04-11 11:21 Chris Johnson [this message]
1994-04-11 22:12 ` More porting problems, function arguments Eric Osborne
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