|
| 1 | +--- a/src/core/CLucene/queryParser/QueryParser.cpp.sav 2011-03-17 01:21:07.000000000 +0100 |
| 2 | ++++ b/src/core/CLucene/queryParser/QueryParser.cpp 2012-03-09 18:20:58.000000000 +0100 |
| 3 | +@@ -79,7 +79,7 @@ |
| 4 | + _T("<RANGEEX_GOOP>") |
| 5 | + }; |
| 6 | + |
| 7 | +-const int32_t QueryParser::jj_la1_0[] = {0x180,0x180,0xe00,0xe00,0x1f69f80,0x48000,0x10000,0x1f69000,0x1348000,0x80000,0x80000,0x10000,0x18000000,0x2000000,0x18000000,0x10000,0x80000000,0x20000000,0x80000000,0x10000,0x80000,0x10000,0x1f68000}; |
| 8 | ++const int32_t QueryParser::jj_la1_0[] = {0x180,0x180,0xe00,0xe00,0x1f69f80,0x48000,0x10000,0x1f69000,0x1348000,0x80000,0x80000,0x10000,0x18000000,0x2000000,0x18000000,0x10000,int32_t(0x80000000),0x20000000,int32_t(0x80000000),0x10000,0x80000,0x10000,0x1f68000}; |
| 9 | + const int32_t QueryParser::jj_la1_1[] = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x0,0x0,0x0,0x0}; |
| 10 | + |
| 11 | + struct QueryParser::JJCalls { |
| 12 | +--- a/src/core/CLucene/queryParser/QueryParserTokenManager.cpp.sav 2011-03-17 01:21:07.000000000 +0100 |
| 13 | ++++ b/src/core/CLucene/queryParser/QueryParserTokenManager.cpp 2012-03-09 18:20:24.000000000 +0100 |
| 14 | +@@ -15,9 +15,9 @@ |
| 15 | + |
| 16 | + CL_NS_DEF(queryParser) |
| 17 | + |
| 18 | +-const int64_t QueryParserTokenManager::jjbitVec2[]={0x0L, 0x0L, _ILONGLONG(0xffffffffffffffff), _ILONGLONG(0xffffffffffffffff)}; |
| 19 | ++const int64_t QueryParserTokenManager::jjbitVec2[]={0x0L, 0x0L, int64_t(_ILONGLONG(0xffffffffffffffff)), int64_t(_ILONGLONG(0xffffffffffffffff))}; |
| 20 | + const int64_t QueryParserTokenManager::jjbitVec0[] = { |
| 21 | +- _ILONGLONG(0xfffffffffffffffe), _ILONGLONG(0xffffffffffffffff), _ILONGLONG(0xffffffffffffffff), _ILONGLONG(0xffffffffffffffff) |
| 22 | ++ int64_t(_ILONGLONG(0xfffffffffffffffe)), int64_t(_ILONGLONG(0xffffffffffffffff)), int64_t(_ILONGLONG(0xffffffffffffffff)), int64_t(_ILONGLONG(0xffffffffffffffff)) |
| 23 | + }; |
| 24 | + const int32_t QueryParserTokenManager::jjnextStates[]={ |
| 25 | + 15, 17, 18, 29, 32, 23, 33, 30, 20, 21, 32, 23, 33, 31, 34, 27, |
| 26 | +--- a/src/core/CLucene/queryParser/legacy/Lexer.cpp |
| 27 | ++++ b/src/core/CLucene/queryParser/legacy/Lexer.cpp |
| 28 | +@@ -117,7 +117,7 @@ |
| 29 | + if( _istspace(ch)!=0 ) { |
| 30 | + continue; |
| 31 | + } |
| 32 | +- TCHAR buf[2] = {ch,'\0'}; |
| 33 | ++ TCHAR buf[2] = {static_cast<TCHAR>(ch),'\0'}; |
| 34 | + switch(ch) { |
| 35 | + case '+': |
| 36 | + token->set(buf, QueryToken::PLUS); |
0 commit comments