Update of /cvsroot/cscope/cscope/src
In directory sc8-pr-cvs1:/tmp/cvs-serv26423
Modified Files:
global.h
Log Message:
Fix tolower/toupper macro overrides used on BSD platforms.
Index: global.h
===================================================================
RCS file: /cvsroot/cscope/cscope/src/global.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** global.h 12 Jun 2003 17:11:38 -0000 1.24
--- global.h 15 Sep 2003 11:02:36 -0000 1.25
***************
*** 85,93 ****
#endif /* RETSIGTYPE */
#if BSD
# undef tolower /* BSD toupper and tolower don't test the character */
# undef toupper
! # define tolower(c) (islower(c) ? (c) : (c) - 'A' + 'a')
! # define toupper(c) (isupper(c) ? (c) : (c) - 'a' + 'A')
# if !sun
# if !__FreeBSD__
--- 85,94 ----
#endif /* RETSIGTYPE */
+ /* FIXME: this testing for platforms is foolish. Stop it! */
#if BSD
# undef tolower /* BSD toupper and tolower don't test the character */
# undef toupper
! # define tolower(c) (isupper(c) : (c) - 'A' + 'a' : (c))
! # define toupper(c) (islower(c) : (c) - 'a' + 'A' : (c))
# if !sun
# if !__FreeBSD__
|