Porting MPW C code to A/UX, Can some one give me a hand?
Kent Sandvik
ksand at apple.com
Fri Jun 7 11:27:15 AEST 1991
In article <1991Jun6.071753.4907 at newshost.anu.edu.au>, djp862 at anu.oz.au ("David J Peterson") writes:
>
>
> I'm trying to port some code written in MPW C to A/UX and am having
> some trouble with the variable argument declarations in MPW C.
>
> In MPW the function are prototyped as:
>
> function( int, ... ) /* one int, and then none to ? _ints_ */
>
> The functions are expecting a list of integers (not a character
> string) to be passed as the variable argument list. MPW C has no
> problem compiling this, but A/UX cc (and gcc) just chokes with "number
> of arguments doesn't match prototype" on the function definition line
> (not the prototype).
>
> Does anyone know how to kick A/UX into accepting this? (the
> -traditional flag in gcc doesn't do it).
This is an ANSI C:ish thing, so I guess any gcc flags that turn on
the ANSI behaviour should parse this context. I guess that both
the ... and the Apple special command-; to generate ... should work,
but I'm not sure about that either so check for that.
Kent
More information about the Comp.unix.aux
mailing list