Tanl Linguistic Pipeline |
00001 /* platform.h. Generated from platform.h.in by configure. */ 00002 /* 00003 ** IXE 00004 ** platform.h 00005 ** ---------------------------------------------------------------------- 00006 ** Copyright (c) 2000 Ideare SpA. All rights reserved. 00007 ** Copyright (c) 2000 Giuseppe Attardi (attardi@di.unipi.it) 00008 ** ---------------------------------------------------------------------- 00009 ** 00010 ** This file is part of IXE. 00011 ** 00012 ** IXE is free software; you can redistribute it and/or modify it 00013 ** under the terms of the GNU General Public License, version 3, 00014 ** as published by the Free Software Foundation. 00015 ** 00016 ** IXE is distributed in the hope that it will be useful, 00017 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 ** GNU General Public License for more details. 00020 ** 00021 ** You should have received a copy of the GNU General Public License 00022 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 00023 ** ---------------------------------------------------------------------- 00024 */ 00025 00026 #ifndef IXE_platform_H 00027 #define IXE_platform_H 00028 00029 #define PATH_SEPARATOR '/' 00030 00031 #define MIN (std::min) 00032 #define MAX (std::max) 00033 00034 // byte order 00035 /* #undef WORDS_BIGENDIAN */ 00036 00037 // alloca() 00038 #define HAVE_ALLOCA 1 00039 00040 // Unicode 00041 /* #undef LEXLEN */ 00042 00043 // assert() 00044 #define NDEBUG 1 00045 00046 // Defining these will build search(1) with the ability to run 00047 // in the background as a multi-threaded daemon process. 00048 #define SEARCH_DAEMON 1 00049 #define MULTI_THREADED 1 00050 00051 // Support for paragraph search 00052 #define PARAGRAPH_SEARCH 1 00053 00054 // Support for faceted search 00055 /* #undef FACETED_SEARCH */ 00056 00057 // Define if your compiler has std::unordered_map 00058 /* #undef HAVE_STD_UNORDERED_MAP */ 00059 00060 // Define if your compiler has std::unordered_set 00061 /* #undef HAVE_STD_UNORDERED_SET */ 00062 00063 // Define if your compiler has std::tr1::unordered_map 00064 #define HAVE_TR1_UNORDERED_MAP 00065 00066 // Define if your compiler has std::tr1::unordered_set 00067 #define HAVE_TR1_UNORDERED_SET 00068 00069 // Define if you have hash_map and hash_set includes in ext/ directory. 00070 #define HAVE_EXT_HASH_MAP_SET 1 00071 00072 /* 00073 * Large-file configuration. 00074 * Disable with configure --disable-largefile 00075 * (produces index with 32-bit offsets for postings) 00076 */ 00077 /* #undef _FILE_OFFSET_BITS */ 00078 /* #undef _LARGE_FILES */ 00079 00080 #ifdef __sun 00081 # define __PRAGMA_REDEFINE_EXTNAME 00082 #endif 00083 00084 /* 00085 * Provide proper definitions for off64_t 00086 */ 00087 /* #undef off64_t */ 00088 typedef int off32_t; 00089 00090 /* Determine if processor allows byte alignment */ 00091 #define BYTE_ALIGN 1 00092 00093 /* 00094 * Compute value of getpagesize() 00095 */ 00096 #define PAGE_SIZE 4096 00097 00098 /* Enable GNU extensions. */ 00099 #define _GNU_SOURCE 1 00100 00101 /* Use thread-safe versions of libc functions. */ 00102 #define _REENTRANT 1 00103 00104 #ifdef __DECCXX 00105 #define __USE_STD_IOSTREAM 00106 #endif 00107 00108 #define GMTIME(time, tm) { time_t __gmtime_tmp = *time; gmtime_r(&__gmtime_tmp, &tm); } 00109 #define time_now(time) gettimeofday(time, 0); 00110 00111 #endif /* IXE_platform_H */