This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

AIX ctype


	I had much more success with the locale files using the following
patch.  The patch replaces the macro _IS() with the definition from AIX
4.3 ctype.h header.  __OBJ_DATA is used elsewhere in the v3 ctype file for
AIX and it is defined via iconv.h.  _IS() is defined in ctype.h, but v3
never seems to use that header.  This is a practical solution, but I do
not understand enough of what v3 ctype expects to know if this is the
correct solution or if I simply am covering up a problem.

David


Index: ctype_inline.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/os/aix/bits/ctype_inline.h,v
retrieving revision 1.1
diff -c -p -r1.1 ctype_inline.h
*** ctype_inline.h	2000/10/07 18:39:05	1.1
--- ctype_inline.h	2000/10/17 15:24:57
***************
*** 37,43 ****
    bool
    ctype<char>::
    is(mask __m, char __c) const throw()
!   { return _IS(__c, __m); }
  
    const char*
    ctype<char>::
--- 37,44 ----
    bool
    ctype<char>::
    is(mask __m, char __c) const throw()
!   { return __OBJ_DATA(__lc_ctype)->mask[__c] & __m; }
  
    const char*
    ctype<char>::

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