Changeset 219
- Timestamp:
- 02/07/07 23:45:55 (1 year ago)
- Files:
-
- 06/libkombilo/process.py (modified) (1 diff)
- 06/libkombilo/search.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/libkombilo/process.py
r217 r219 24 24 # pop.rootNodeTags = 'PW,PB,RE,DT' 25 25 pop.sgfInDB = False 26 gl = GameList('t1.db', 'id', '', pop )26 gl = GameList('t1.db', 'id', '', pop, 1000) 27 27 except DBError: 28 28 print 'Database error' 06/libkombilo/search.cpp
r218 r219 29 29 #include <cstring> 30 30 31 #if defined(_MSC_VER)32 using std::vector;33 using std::string;34 using std::pair;35 36 #include <algorithm>37 #include "sqlite3.h"38 39 using namespace std;40 41 #define min __min42 #define max __max43 #else44 45 31 using std::min; 46 32 using std::max; … … 50 36 using std::make_pair; 51 37 using std::stack; 38 39 #if defined(_MSC_VER) 40 #include <algorithm> 41 #else 52 42 using std::sort; 53 43 #endif 44 54 45 PatternError::PatternError() {} 55 46 … … 3414 3405 if (rc) throw DBError(); 3415 3406 sprintf(cache_str, "pragma cache_size = %d", cache*7000); 3416 rc = sqlite3_exec(algo_db 1, cache_str, 0, 0, 0);3407 rc = sqlite3_exec(algo_db2, cache_str, 0, 0, 0); 3417 3408 if (rc) throw DBError(); 3418 3409 … … 3430 3421 if (rc) throw DBError(); 3431 3422 sprintf(cache_str, "pragma cache_size = %d", cache*1000); 3432 rc = sqlite3_exec( algo_db1, cache_str, 0, 0, 0);3423 rc = sqlite3_exec(db, cache_str, 0, 0, 0); 3433 3424 if (rc) throw DBError(); 3434 3425
