Changeset 208

Show
Ignore:
Timestamp:
12/12/06 21:56:43 (1 year ago)
Author:
ug
Message:

Small changes: SearchOptions, MS Visual C++ compatibility.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 06/libkombilo/search.cc

    r207 r208  
    498498    // printf("%d, %d, %d, %d, %d, %d, %d\n", f, newSizeX, newSizeY, newLeft, newRight, newTop, newBottom); 
    499499    char* newInitialPos = new char[pattern.sizeX*pattern.sizeY]; 
    500     for(int i=0; i<pattern.sizeX; i++) { 
     500    unsigned i=0; 
     501    for(i=0; i<pattern.sizeX; i++) { 
    501502      for(int j=0; j<pattern.sizeY; j++) { 
    502503        newInitialPos[Pattern::flipsX(f,i,j,pattern.sizeX-1,pattern.sizeY-1) + \ 
     
    506507 
    507508    vector<MoveNC> newContList; 
    508     for(unsigned int i=0; i<pattern.contList.size(); i++) { 
     509    for(i=0; i<pattern.contList.size(); i++) { 
    509510      newContList.push_back(MoveNC(Pattern::flipsX(f, pattern.contList[i].x, pattern.contList[i].y,  
    510511                                                      pattern.sizeX-1,pattern.sizeY-1), 
     
    17221723} 
    17231724 
    1724 #ifdef __BORLANDC__ 
     1725#if (defined(__BORLANDC__) || defined(_MSC_VER)) 
    17251726const hashtype Algo_hash::hashCodes[] = { 
    17261727  1448047776469843i64 ,  23745670021858756i64 ,  2503503679898819i64 ,   
     
    24302431  if (argc==3 && argv[0] && argv[1] && argv[2]) { 
    24312432    // printf("found %s, %lld", argv[2], atoi(argv[2])); 
    2432 #ifdef __BORLANDC__ 
     2433#if (defined(__BORLANDC__) || defined(_MSC_VER)) 
    24332434    ((vector<HashhitCS* >*)results)->push_back(new HashhitCS(atoi(argv[0]), atoi(argv[1]), _atoi64(argv[2])!=hashCode)); 
    24342435#else 
     
    31883189  nextMove = NEXTMOVE; 
    31893190  trustHashFull = false; 
     3191  searchInVariations = true; 
     3192  algos = (1<<30) - 1; // use all available algorithms 
    31903193} 
    31913194 
     
    44064409      } 
    44074410 
    4408       for(int a=20*algo_offset; a < 20*(algo_offset+1); a++)  
    4409         if (algo_ps[a]) algo_ps[a]->endOfNode_process(); 
     4411      { 
     4412        for(int a=20*algo_offset; a < 20*(algo_offset+1); a++)  
     4413          if (algo_ps[a]) algo_ps[a]->endOfNode_process(); 
     4414      } 
    44104415 
    44114416      if (processVariations && currentN->numChildren > 1) { // several variations start from this node; 
  • 06/libkombilo/search.h

    r204 r208  
    3333typedef char* char_p; 
    3434 
    35 #ifdef __BORLANDC__ 
     35#if (defined(__BORLANDC__) || defined(_MSC_VER)) 
    3636typedef __int64 hashtype; 
    3737const hashtype NOT_HASHABLE = 9223372036854775807i64;