This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: Patch for isdigit/isalpha/etc. macro arguments


> From: Andreas Schwab <schwab@suse.de>
> Cc: mark.kettenis@xs4all.nl, sje@cup.hp.com,
> 	gdb-patches@sourceware.org
> Date: Sat, 07 Apr 2007 11:26:10 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> This will crash and burn if *s < 0.  You really need to cast to unsigned
> >> char if you want to get defined behaviour.
> >
> > Isn't that the job of the isalpha implementation?
> 
> No.  It needs to be able to recognize EOF.

I don't see the problem with doing both.


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