This is the mail archive of the
mailing list for the binutils project.
Re: bfd_read and bfd_write
> 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.