Aegis  4.25.D505
common/ac/ctype.h
Go to the documentation of this file.
00001 //
00002 //      aegis - project change supervisor
00003 //      Copyright (C) 1998, 2005, 2006, 2008 Peter Miller
00004 //
00005 //      This program is free software; you can redistribute it and/or modify
00006 //      it under the terms of the GNU General Public License as published by
00007 //      the Free Software Foundation; either version 3 of the License, or
00008 //      (at your option) any later version.
00009 //
00010 //      This program is distributed in the hope that it will be useful,
00011 //      but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 //      GNU General Public License for more details.
00014 //
00015 //      You should have received a copy of the GNU General Public License
00016 //      along with this program. If not, see
00017 //      <http://www.gnu.org/licenses/>.
00018 //
00019 
00020 #ifndef COMMON_AC_CTYPE_H
00021 #define COMMON_AC_CTYPE_H
00022 
00023 #include <common/config.h>
00024 
00025 #include <ctype.h>
00026 
00027 
00028 //
00029 // HAVE_ISWPRINT is only set if (a) there is a have_iswprint function,
00030 // and (b) it works for ascii.  It is assumed that if iswprint is absent
00031 // or brain-dead, then so are the rest.
00032 //
00033 // This code copes with the case where (a) it exists, (b) it is broken,
00034 // and (c) it is defined in <ctype.h>, of all places!
00035 //
00036 #ifndef HAVE_ISWPRINT
00037 
00038 #ifdef iswprint
00039 #undef iswprint
00040 #endif
00041 
00042 #ifdef iswspace
00043 #undef iswspace
00044 #endif
00045 
00046 #ifdef iswpunct
00047 #undef iswpunct
00048 #endif
00049 
00050 #ifdef iswupper
00051 #undef iswupper
00052 #endif
00053 
00054 #ifdef iswlower
00055 #undef iswlower
00056 #endif
00057 
00058 #ifdef iswdigit
00059 #undef iswdigit
00060 #endif
00061 
00062 #ifdef iswalnum
00063 #undef iswalnum
00064 #endif
00065 
00066 #ifdef towupper
00067 #undef towupper
00068 #endif
00069 
00070 #ifdef towlower
00071 #undef towlower
00072 #endif
00073 
00074 #endif // !HAVE_ISWPRINT
00075 
00076 #endif // COMMON_AC_CTYPE_H