Subject: Re: K&R vs. ANSI call conventions (was Re: a new KNF)
To: None <tv@pobox.com>
From: Noriyuki Soda <soda@sra.co.jp>
List: tech-toolchain
Date: 02/18/2000 01:02:53
> : But changing functions to ANSI style makes examination by "gcc -pendantic"
> : impossible. This is the problem, since number of library functions
> : continuously increase.
>
> I don't understand this statement. If we use ANSI function definitions, the
> code in /usr/lib/*.so WILL NOT CHANGE. Programs outside the libraries see
> only ANSI prototypes. What, then, breaks using gcc -pedantic?
Functions which use integral types smaller than int as argements,
or functions which use float as arguments cannot be called from
C source which doesn't correctly include header files which define
prototypes of the functions.
This is the problem, isn't it?
--
soda