This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: [rfa] bfd_elf_sign_extend_vma()
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [rfa] bfd_elf_sign_extend_vma()
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Fri, 23 Jun 2000 18:20:37 +1000 (EST)
- cc: BINUTILS Patches <binutils at sourceware dot cygnus dot com>
On Fri, 23 Jun 2000, Andrew Cagney wrote:
> Its fairly consistent with bfd_elf_get_addr_size() which returns the
> address size or -1 on error. If you've a better suggestion I'd be
> interested? I can't throw an error :-)
No, I don't have a better suggestion. I suppose you will just need to
write "if (bfd_elf_sign_extend_vma () == 1)". ie. don't write
"... == true" as that infers the function returns a boolean. Someone
is sure to later decide that "if (looks_like_bool_func () == true)" is bad
C style and rewrite it as "if (looks_like_bool_func ())"
Regards, Alan Modra
--
Linuxcare. Support for the Revolution.