This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug other/17898] Incorrect usage of isdigit, etc.


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-08 20:48 -------
./libobjc/gc.c:  while (isdigit (*++type))
is not wrong because we cannot get greater than 127 in type at all (this is an encoding which does not 
use non ascii characters).

And these cannot recieve characters greater than 127 either (unless something is wrong with your 
machine):
./boehm-gc/os_dep.c:    while (isspace(c)) c = stat_buf[buf_offset++];
./boehm-gc/os_dep.c:    while (!isspace(c)) c = stat_buf[buf_offset++];
./boehm-gc/os_dep.c:    while (isspace(c)) c = stat_buf[buf_offset++];
./boehm-gc/os_dep.c:    while (isdigit(c)) {

Also :
./boehm-gc/cord/de.c:    } else if (c < 0x100 && isdigit(c)){
is right.

Also it is 4.4 BSD extension to accept greater than the 0xFF.

And most of these come from up stream projects.
libltdl/ltdl.c belongs to libtool, report it to them.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17898


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