This is the mail archive of the gcc-patches@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]

libstdc++-v3 patch for HP-UX



The upper/lower/etc mask definitions in
libstdc++-v3/config/os/hpux/bits/ctype_base.h do not match the ones in
HP-UX's ctype.h header file.  Here is a patch to make them match.

Steve Ellcey
sje@cup.hp.com


2001-03-13  Steve Ellcey  <sje@cup.hp.com>

	* libstdc++-v3/config/os/hpux/bits/ctype_base.h: Make ctype masks
	match HP-UX ctype.h header file.


*** libstdc++-v3/config/os/hpux/bits/ctype_base.h.orig	Tue Mar 13 11:22:03 2001
--- libstdc++-v3/config/os/hpux/bits/ctype_base.h	Tue Mar 13 11:21:57 2001
***************
*** 41,55 ****
      // NB: Offsets into ctype<char>::_M_table force a particular size
      // on the mask type. Because of this, we don't use an enum.
      typedef unsigned int        mask;   
!     static const mask upper     = 1 << 0;
!     static const mask lower     = 1 << 1;
!     static const mask alpha     = 1 << 2;
!     static const mask digit     = 1 << 3;
!     static const mask xdigit    = 1 << 4;
!     static const mask space     = 1 << 5;
!     static const mask print     = 1 << 6;
!     static const mask graph     = 1 << 7;
!     static const mask cntrl     = 1 << 8;
!     static const mask punct     = 1 << 9;
!     static const mask alnum     = 1 << 10;
    };
--- 41,55 ----
      // NB: Offsets into ctype<char>::_M_table force a particular size
      // on the mask type. Because of this, we don't use an enum.
      typedef unsigned int        mask;   
!     static const mask upper     = 1 << 10;
!     static const mask lower     = 1 <<  6;
!     static const mask alpha     = 1 <<  0;
!     static const mask digit     = 1 <<  4;
!     static const mask xdigit    = 1 << 11;
!     static const mask space     = 1 <<  9;
!     static const mask print     = 1 <<  7;
!     static const mask graph     = 1 <<  5;
!     static const mask cntrl     = 1 <<  3;
!     static const mask punct     = 1 <<  8;
!     static const mask alnum     = 1 <<  1;
    };


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