bfd_read and bfd_write
Andrew Cagney
ac131313@cygnus.com
Wed Sep 5 17:26:00 GMT 2001
> On Wed, Sep 05, 2001 at 12:45:10PM -0400, Andrew Cagney wrote:
>
>> rather than change the function signature, why not introduce a new
>> interface and then deprecate the old one?
>
>
> Because then you'll never get rid of the old interface.
why not introduce the new _external_ interface, go around eliminating
all known uses of the old. once done (new release made?) zap the old
interface. a common pratice is to add code to the old interface to
issue a warning the first time it is called.
alan's basic problem of needing to co-ordinate everything so it can all
happen at once just goes away.
it also covers the k&r problem - you cant rely on a k&r compiler to
report parameter mismatches.
andrew
More information about the Binutils
mailing list