Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!ukma!sean From: sean@ms.uky.edu (Sean Casey) Newsgroups: gnu.gcc Subject: Re: Prototyping promotion problem. Message-ID: <14336@s.ms.uky.edu> Date: 26 Feb 90 22:43:10 GMT References: <14331@s.ms.uky.edu> Organization: The Leaning Tower of Patterson Office @ The Univ. of KY Lines: 24 I write: |Could someone explain what the heck I am supposed to do about the |following? It seems to me that if your prototype matches the |declaration, everything should be hunky dory. One thing you need to know is that prototypes.h is automatically generated. In all the source files, ff _STDC_ or _GNUC_ is defined, prototypes.h is included. Otherwise, functypes.h (which consists of prototypes.h with everything inside the parentheses deleted) is included. That way, my code works on pcc and uses prototypes on GCC. I still don't see why the compiler needs to cough on it when the two match up exactly. It's very frustrating. I just want to make sure the types match. Maybe I can turn off the promotion? Maybe I can tell GCC "I don't care what promotes to what." From the advice I've gotten so far, I guess I'm going to have to edit prototypes.h by hand (or by perl) and change all "flat" character references to int, or put in ifdefs for every procedure header. Yech. Sean -- *** Sean Casey sean@ms.uky.edu, sean@ukma.bitnet, ukma!sean