This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
What is the correct prototype of md_atof?
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: binutils at sources dot redhat dot com
- Date: Wed, 19 Nov 2003 18:25:25 -0500 (EST)
- Subject: What is the correct prototype of md_atof?
Hi,
gas/tc.h has
char *md_atof PARAMS ((int what_statement_type, char *literalP, int *sizeP));
but so many gas/config/tc-*.c has
char *
md_atof (type, litP, sizeP)
int type; <- Notice it's int!!
char *litP;
int *sizeP;
I noticed this problem while converting tc-h8300.c into ISO-C. To me
"char" seems to be correct here. What do others think?
Kazu Hirata