Date: Tue, 4 Mar 1997 13:18:12 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: guido@gvr.win.tue.nl (Guido van Rooij) Cc: FreeBSD-hackers@freebsd.org Subject: Re: gcc question Message-ID: <199703042018.NAA10266@phaeton.artisoft.com> In-Reply-To: <199703041411.PAA02442@gvr.win.tue.nl> from "Guido van Rooij" at Mar 4, 97 03:11:34 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> I've got a question about interfacing between `normal' c and -traditional. > > I have an API that is compiled with no -traditional flag that > expects the folowing parameters: > char *, char, char * > > I want to call this program from within something that has to be compiled > with -traditional. When I'd call this api function the secod argument > will be treated differently by the -traditional program and tha API > function (for which I do not have the source). My question: how can > I still interface between the two, without having to write a wrapper > (becasue I think that is ugly). Compile the ANSI C code without a prototype in scope, and it will use "traditional" stack type promotion calling conventions. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703042018.NAA10266>