This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Cleanup patches to build libgcj on x86/linux


On Aug  2, 2000, Tom Tromey <tromey@cygnus.com> wrote:

Bryce> "An extern "C" directive specifies the linkage convention
Bryce> (only) and does not affect the semantics of the function. In
Bryce> particular, a function declared extern "C" still obeys the C++
Bryce> type checking and argument conversion rules and not the weaker
Bryce> C rules."

> Doesn't that make it impossible to use g++ with system headers on
> legacy systems?  The SunOS headers never use prototypes.

IIRC, system headers are still recognized as such, and less strict
type-checking is applied to functions declared in them.  I'm not sure
if the same exception applies to functions declared as `extern "C"'.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]