This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: What is the correct prototype of md_atof?


Kazu Hirata <kazu@cs.umass.edu> writes:

> > If we convert to C90 and use a prototype style definition, then we can
> > safely switch to `char'.
> 
> The only reason why I said "char" is correct is that the first
> argument contains a character.  "int" wouldn't be wrong, but I am not
> comfortable with the mismatch between the definition and the
> prototype.  Should I change every md_atof to use char for the first
> argument?

Yes, provided every md_atof uses a prototype style definition.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]