This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Patch for 64-bit change address in 32-bit environment
>>>>> Ian Lance Taylor writes:
Ian> From: Andreas Jaeger <aj@suse.de>
Ian> Date: 03 May 2000 12:53:24 +0200
Ian> - unsigned long val = strtoul (valstr, &end, 16);
Ian> + bfd_vma val = bfd_scan_vma (valstr, (CONST char **)&end, 16);
Ian> I think CONST is an aberration which should be avoided in new code.
Ian> There isn't any reason to use a special macro. We just #undef const
Ian> if the compiler doesn't support it. See ansidecl.h.
Thanks for the explanation. Alan checked already a slightly modified
code in. Instead of the cast he declared end as "const char *end" ;-).
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de