![]() ![]() #else /* not _STDC_ */ /* As in Harbison and Steele. #define SIGN_EXTEND_CHAR(c) (( signed char) (c)) (Per Bothner suggested the basic approach.) */ #undef SIGN_EXTEND_CHAR #if _STDC_ #endif /* We remove any previous definition of `SIGN_EXTEND_CHAR', since ours (we hope) works properly with all combinations of machines, compilers, `char' and `unsigned char' argument types. #define ISXDIGIT(c) ( isascii (c) & isxdigit (c)) #define ISUPPER(c) ( isascii (c) & isupper (c)) #define ISSPACE(c) ( isascii (c) & isspace (c)) #define ISPUNCT(c) ( isascii (c) & ispunct (c)) #define ISLOWER(c) ( isascii (c) & islower (c)) #define ISCNTRL(c) ( isascii (c) & iscntrl (c)) #define ISALPHA(c) ( isascii (c) & isalpha (c)) #define ISALNUM(c) ( isascii (c) & isalnum (c)) ![]() #define ISDIGIT(c) ( isascii (c) & isdigit (c)) #endif #define ISPRINT(c) ( isascii (c) & isprint (c)) #else #define ISGRAPH(c) ( isascii (c) & isprint (c) & ! isspace (c)) #define ISGRAPH(c) ( isascii (c) & isgraph (c)) #define ISBLANK(c) ( isascii (c) & isblank (c)) Static char re_syntax_table īzero (re_syntax_table, sizeof re_syntax_table) #else /* not SYNTAX_TABLE */ /* How many characters in the character set. */ /* This must be nonzero for the wordchar and notwordchar pattern commands in re_match_2. #endif #endif /* Define the syntax stuff for \, etc. #else #ifndef DONT_DEFINE_MALLOC char * malloc () #endif #ifndef bzero #define bzero(s, n) memset ((s), 0, (n)) #endif #ifndef bcopy #define bcopy(s, d, n) memcpy ((d), (s), (n)) */ #if defined( HAVE_STRING_H) || defined( STDC_HEADERS) */ #undef NULL #else /* not emacs */ /* We used to test for `BSTRING' here, but only GCC and Emacs define `BSTRING', as far as I know, and neither of them use this code. #endif /* The `emacs' switch turns on certain matching commands that make sense only in Emacs. #define DONT_DEFINE_MALLOC /* #define REGEX_MALLOC */ #define ORIG_MALLOC Nlm_MemNew #define ORIG_FREE Nlm_Free #define ORIG_REALLOC Nlm_Realloc #endif /* REGEX_NCBI */ /* We need this for `regex.h', and perhaps for the Emacs include files. #pragma alloca #endif #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #define STDC_HEADERS #ifdef REGEX_NCBI */ #if defined (_AIX) & ! defined (REGEX_MALLOC) */ /* AIX requires this to be the first thing in the file. You should have received a copy of the GNU General Public License along with this program if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. See the GNU General Public License for more details. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program is free software you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation either version 2, or (at your option) any later version. (Implements POSIX draft P10003.2/D11.2, except for internationalization features.) Copyright (C) 1993 Free Software Foundation, Inc. * Extended regular expression matching and search library, version 0.12. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |