Mail Archives: djgpp-workers/1998/06/12/12:25:36
Vik Heyndrickx wrote:
>
> DJ Delorie wrote:
> >
> > > The `inb' and `outb' functions are missing their prototypes in <pc.h>.
> > > Here is a patch.
> >
> > Beware - some prototypes are left out of headers because various
> > systems have conflicting definitions of them. xmalloc, for example,
> > is defined different ways in different GNU packages, and none expect
> > the system headers to have them.
>
> If I'm correct, the compiler assumes the default when a prototype is
> omitted. Since the default is ``int'', isn't omitting a prototype
> equally as bad as providing some prototype?
Not quite. If you provide a prototype, then you cannot override
it with another (or I don't know how you undef a prototype). While
if you omit the prototype, you can define it later so long as the
function is not referenced before the prototype definition.
> --
> \ Vik /-_-_-_-_-_-_/
> \___/ Heyndrickx /
> \ /-_-_-_-_-_-_/ Knight in the Order of the Unsigned Types
--Charles
- Raw text -