1 | /* -*- c-basic-offset: 2 -*- */ |
2 | /* |
3 | Copyright(C) 2010 Tetsuro IKEDA |
4 | Copyright(C) 2011 Kentoku SHIBA |
5 | Copyright(C) 2011-2012 Kouhei Sutou <kou@clear-code.com> |
6 | |
7 | This library is free software; you can redistribute it and/or |
8 | modify it under the terms of the GNU Lesser General Public |
9 | License as published by the Free Software Foundation; either |
10 | version 2.1 of the License, or (at your option) any later version. |
11 | |
12 | This library is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 | Lesser General Public License for more details. |
16 | |
17 | You should have received a copy of the GNU Lesser General Public |
18 | License along with this library; if not, write to the Free Software |
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 | */ |
21 | |
22 | #ifndef MRN_CONSTANTS_HPP_ |
23 | #define MRN_CONSTANTS_HPP_ |
24 | |
25 | #include <limits.h> |
26 | |
27 | #include <groonga.h> |
28 | |
29 | #define MRN_BUFFER_SIZE 1024 |
30 | #define MRN_MAX_KEY_SIZE GRN_TABLE_MAX_KEY_SIZE |
31 | #if defined(MAX_PATH) |
32 | # define MRN_MAX_PATH_SIZE (MAX_PATH + 1) |
33 | #elif defined(PATH_MAX) |
34 | # define MRN_MAX_PATH_SIZE (PATH_MAX) |
35 | #elif defined(MAXPATHLEN) |
36 | # define MRN_MAX_PATH_SIZE (MAXPATHLEN) |
37 | #else |
38 | # define MRN_MAX_PATH_SIZE (256) |
39 | #endif |
40 | #define MRN_DB_FILE_SUFFIX ".mrn" |
41 | #define MRN_LOG_FILE_PATH "groonga.log" |
42 | #define MRN_COLUMN_NAME_ID "_id" |
43 | #define MRN_COLUMN_NAME_KEY "_key" |
44 | #define MRN_COLUMN_NAME_SCORE "_score" |
45 | #ifndef MRN_DEFAULT_TOKENIZER |
46 | # define MRN_DEFAULT_TOKENIZER "TokenBigram" |
47 | #endif |
48 | |
49 | #endif /* MRN_CONSTANTS_HPP_ */ |
50 | |