Fix warnings
This commit is contained in:
parent
939e094421
commit
b45a762d2e
@ -1,39 +1,37 @@
|
|||||||
// This may look like C code, but it is really -*- C++ -*-
|
/* ------------------------------------------------------------------
|
||||||
|
* The Goldware Library
|
||||||
// ------------------------------------------------------------------
|
* Copyright (C) 1999 Alexander S. Aganichev
|
||||||
// The Goldware Library
|
* ------------------------------------------------------------------
|
||||||
// Copyright (C) 1999 Alexander S. Aganichev
|
* This library is free software; you can redistribute it and/or
|
||||||
// ------------------------------------------------------------------
|
* modify it under the terms of the GNU Library General Public
|
||||||
// This library is free software; you can redistribute it and/or
|
* License as published by the Free Software Foundation; either
|
||||||
// modify it under the terms of the GNU Library General Public
|
* version 2 of the License, or (at your option) any later version.
|
||||||
// License as published by the Free Software Foundation; either
|
*
|
||||||
// version 2 of the License, or (at your option) any later version.
|
* This library is distributed in the hope that it will be useful,
|
||||||
//
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// This library is distributed in the hope that it will be useful,
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* Library General Public License for more details.
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
*
|
||||||
// Library General Public License for more details.
|
* You should have received a copy of the GNU Library General Public
|
||||||
//
|
* License along with this program; if not, write to the Free
|
||||||
// You should have received a copy of the GNU Library General Public
|
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
// License along with this program; if not, write to the Free
|
* MA 02111-1307, USA
|
||||||
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
* ------------------------------------------------------------------
|
||||||
// MA 02111-1307, USA
|
* $Id$
|
||||||
// ------------------------------------------------------------------
|
* ------------------------------------------------------------------
|
||||||
// $Id$
|
* Portable NLS functions for ctype.
|
||||||
// ------------------------------------------------------------------
|
* --------------------------------------------------------------- */
|
||||||
// Portable NLS functions for ctype.
|
|
||||||
// ------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __gctype_h
|
#ifndef __gctype_h
|
||||||
#define __gctype_h
|
#define __gctype_h
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
/* --------------------------------------------------------------- */
|
||||||
|
|
||||||
#include <gcmpall.h>
|
#include <gcmpall.h>
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
/* --------------------------------------------------------------- */
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#define __USELOCALES__
|
#define __USELOCALES__
|
||||||
@ -60,29 +58,34 @@ extern char tl[256], tu[256];
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
/* --------------------------------------------------------------- */
|
||||||
|
|
||||||
// NLS chars detected by converting to lower or upper case and in case they don't match they treated as characters
|
/* NLS chars detected by converting to lower or upper case and in case
|
||||||
|
* they don't match they treated as characters
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
extern __inline__ int isxalnum(char c) { return isascii(c) ? isalnum(c) : (c != tolower(c)) || (c != toupper(c)); }
|
extern __inline__ int isxalnum(char c) {
|
||||||
|
return isascii(c) ? isalnum(c) : (c != tolower(c)) || (c != toupper(c));
|
||||||
|
}
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __BEOS__
|
#ifdef __BEOS__
|
||||||
//sz: there are some problems under BeOS with that function - symbols
|
/* sz: there are some problems under BeOS with that function - symbols
|
||||||
// from second half of ASCII table are assumed as control ones ...
|
* from second half of ASCII table are assumed as control ones ...
|
||||||
// This is a real disaster for cyrillic users ...
|
* This is a real disaster for cyrillic users ...
|
||||||
// It's also not possible to use setlocale() to change it's behaviour. =-(
|
* It's also not possible to use setlocale() to change it's behaviour. =-(
|
||||||
|
*/
|
||||||
#undef iscntrl
|
#undef iscntrl
|
||||||
# define iscntrl(c) ((c < 0x7f) ? __isctype((c), _IScntrl) : 0)
|
# define iscntrl(c) ((c < 0x7f) ? __isctype((c), _IScntrl) : 0)
|
||||||
#endif //__BEOS__
|
#endif //__BEOS__
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
/* --------------------------------------------------------------- */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
/* --------------------------------------------------------------- */
|
||||||
|
Reference in New Issue
Block a user