Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 1997 21:32:43 +0100 (MET)
From:      Guido van Rooij <guido@gvr.win.tue.nl>
To:        terry@lambert.org (Terry Lambert)
Cc:        FreeBSD-hackers@freebsd.org
Subject:   Re: gcc question
Message-ID:  <199703042032.VAA03138@gvr.win.tue.nl>
In-Reply-To: <199703042018.NAA10266@phaeton.artisoft.com> from Terry Lambert at "Mar 4, 97 01:18:12 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> > 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.
> 

As I specifically told in my mail, I do not have the ansi c api source.

-Guido



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703042032.VAA03138>