Scid  4.6.5
Classes | Macros | Enumerations | Functions | Variables
tkscid.cpp File Reference
#include "crosstab.h"
#include "dstring.h"
#include "engine.h"
#include "game.h"
#include "mfile.h"
#include "optable.h"
#include "pbook.h"
#include "pgnparse.h"
#include "polyglot.h"
#include "position.h"
#include "probe.h"
#include "scidbase.h"
#include "searchpos.h"
#include "spellchk.h"
#include "stored.h"
#include "timer.h"
#include "tree.h"
#include "dbasepool.h"
#include "ui.h"
#include <time.h>
#include <sys/stat.h>
#include <set>
#include <algorithm>
#include "tkscid.h"
Include dependency graph for tkscid.cpp:

Go to the source code of this file.

Classes

struct  gNumListT
 
struct  dupCriteriaT
 
struct  ecoTranslateT
 ECO Classification functions. More...
 
struct  PlayerActivity
 
class  PListSort
 

Macros

#define PROBE_NONE   0
 
#define PROBE_RESULT   1
 
#define PROBE_SUMMARY   2
 
#define PROBE_REPORT   3
 
#define PROBE_OPTIMAL   4
 

Enumerations

enum  moveSortE { SORT_ALPHA, SORT_ECO, SORT_FREQUENCY, SORT_SCORE }
 
enum  {
  TITLE_GM, TITLE_IM, TITLE_FM, TITLE_WGM,
  TITLE_WIM, TITLE_WFM, TITLE_W, TITLE_NONE
}
 

Functions

void scid_Exit (void *)
 
int main (int argc, char *argv[])
 
int setResult (Tcl_Interp *ti, const char *str)
 
int setIntResult (Tcl_Interp *ti, int i)
 
int setUintResult (Tcl_Interp *ti, uint i)
 
int appendUintResult (Tcl_Interp *ti, uint i)
 
uint appendUintElement (Tcl_Interp *ti, uint i)
 
int setUintWidthResult (Tcl_Interp *ti, uint i, uint width)
 
int appendCharResult (Tcl_Interp *ti, char ch)
 
const char * translate (Tcl_Interp *ti, const char *name, const char *defaultText)
 
const char * translate (Tcl_Interp *ti, const char *name)
 
int errorResult (Tcl_Interp *ti, errorT err, const char *errorMsg=0)
 
int errorResult (Tcl_Interp *ti, const char *errorMsg)
 
int InvalidCommand (Tcl_Interp *ti, const char *majorCmd, const char **minorCmds)
 
const char * errMsgNotOpen (Tcl_Interp *ti)
 
const char * errMsgSearchInterrupted (Tcl_Interp *ti)
 
int str_is_prefix (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int str_prefix_len (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_base_inUse (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
void exportGame (Game *g, FILE *exportFile, gameFormatT format, uint pgnStyle)
 
int sc_base_export (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_base_piecetrack (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
bool checkDuplicate (scidBaseT *base, const IndexEntry *ie1, const IndexEntry *ie2, dupCriteriaT *cr)
 
uint sc_base_duplicates (scidBaseT *dbase, UI_handle_t ti, int argc, const char **argv)
 
int sc_base_tag (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_clipbase_paste (scidBaseT *clipbase, Tcl_Interp *ti, int argc, const char **argv)
 CLIPBASE functions. More...
 
int sc_clipbase (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
void translateECO (Tcl_Interp *ti, const char *strFrom, DString *dstrTo)
 
int sc_eco (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_eco_base (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_eco_game (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_eco_read (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_eco_summary (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_eco_translate (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_filter_old (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 FILTER functions. More...
 
int sc_filter_freq (scidBaseT *dbase, const HFilter &filter, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_filter_first (ClientData, Tcl_Interp *ti, int, const char **)
 
int sc_filter_last (ClientData, Tcl_Interp *ti, int, const char **)
 
int sc_filter_next (ClientData, Tcl_Interp *ti, int, const char **)
 
int sc_filter_prev (ClientData, Tcl_Interp *ti, int, const char **)
 
int sc_filter_stats (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 GAME functions. More...
 
int sc_game_crosstable (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_find (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_firstMoves (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_import (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
bool probe_tablebase (Tcl_Interp *ti, int mode, DString *dstr)
 
int sc_game_info (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_load (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_merge (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_moves (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_new (ClientData, Tcl_Interp *, int, const char **)
 
int sc_game_novelty (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_pgn (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_pop (ClientData, Tcl_Interp *, int, const char **)
 
int sc_game_push (ClientData, Tcl_Interp *, int argc, const char **argv)
 
int sc_game_save (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_scores (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_startBoard (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_strip (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_summary (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_tags (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_tags_get (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_tags_set (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_game_tags_reload (ClientData, Tcl_Interp *, int, const char **)
 
int sc_game_tags_share (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_info (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 INFO functions. More...
 
int sc_info_fsize (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_info_limit (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_info_suffix (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_info_tb (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_move (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_move_add (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_move_addSan (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_move_addUCI (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_move_back (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_move_forward (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_move_pgn (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_addNag (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_analyze (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_bestSquare (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_getNags (ClientData, Tcl_Interp *ti, int, const char **)
 
int sc_pos_hash (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_html (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_isAt (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_isPromo (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_isLegal (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_matchMoves (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_moves (ClientData, Tcl_Interp *ti, int argc, const char **)
 
int sc_pos_pgnBoard (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_probe (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_probe_board (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_pos_setComment (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
UI_res_t sc_name_ratings (UI_handle_t ti, scidBaseT &dbase, const SpellChecker &sp, int argc, const char **argv)
 
UI_res_t sc_name_retrievename (UI_handle_t ti, const SpellChecker &sp, int argc, const char **argv)
 
UI_res_t sc_name_spellcheck (UI_handle_t ti, scidBaseT &dbase, const SpellChecker &sp, int argc, const char **argv)
 
int sc_name (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_name_correct (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_name_edit (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_name_info (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_name_match (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_name_plist (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_name_read (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_report (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_report_create (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_report_select (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_tree (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_tree_move (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
void sortTreeMoves (treeT *tree, int sortMethod, colorT toMove)
 
int sc_tree_search (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_tree_cachesize (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_tree_cacheinfo (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_search (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_search_board (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
patternTaddPattern (patternT *pattHead, patternT *addPatt)
 
void freePatternList (patternT *patt)
 
void flipPattern (patternT *patt)
 
errorT parsePattern (const char *str, patternT *patt)
 
int sc_search_material (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
bool matchGameHeader (const IndexEntry *ie, bool *mWhite, bool *mBlack, bool wToMove, bool bToMove, bool bAnnotaded)
 
bool * parseTitles (const char *str)
 
int sc_search_header (ClientData, Tcl_Interp *ti, scidBaseT *base, HFilter &filter, int argc, const char **argv)
 
int sc_var (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_var_delete_free (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_var_delete (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_var_first (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_var_list (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_var_enter (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_book (ClientData cd, Tcl_Interp *ti, int argc, const char **argv)
 BOOK functions. More...
 
int sc_book_load (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_book_close (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_book_moves (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_book_positions (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_book_update (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 
int sc_book_movesupdate (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 

Variables

scidBaseTdb
 
const int MAX_BASES = 9
 
const uint NUM_TITLES = 8
 
const char * titleStr [NUM_TITLES]
 

Macro Definition Documentation

#define PROBE_NONE   0

Definition at line 105 of file tkscid.cpp.

#define PROBE_OPTIMAL   4

Definition at line 109 of file tkscid.cpp.

#define PROBE_REPORT   3

Definition at line 108 of file tkscid.cpp.

#define PROBE_RESULT   1

Definition at line 106 of file tkscid.cpp.

#define PROBE_SUMMARY   2

Definition at line 107 of file tkscid.cpp.

Enumeration Type Documentation

anonymous enum
Enumerator
TITLE_GM 
TITLE_IM 
TITLE_FM 
TITLE_WGM 
TITLE_WIM 
TITLE_WFM 
TITLE_W 
TITLE_NONE 

Definition at line 9870 of file tkscid.cpp.

enum moveSortE
Enumerator
SORT_ALPHA 
SORT_ECO 
SORT_FREQUENCY 
SORT_SCORE 

Definition at line 8580 of file tkscid.cpp.

Function Documentation

patternT* addPattern ( patternT pattHead,
patternT addPatt 
)

Definition at line 9380 of file tkscid.cpp.

int appendCharResult ( Tcl_Interp *  ti,
char  ch 
)
inline

Definition at line 199 of file tkscid.cpp.

uint appendUintElement ( Tcl_Interp *  ti,
uint  i 
)
inline

Definition at line 173 of file tkscid.cpp.

int appendUintResult ( Tcl_Interp *  ti,
uint  i 
)
inline

Definition at line 160 of file tkscid.cpp.

bool checkDuplicate ( scidBaseT base,
const IndexEntry ie1,
const IndexEntry ie2,
dupCriteriaT cr 
)

Definition at line 760 of file tkscid.cpp.

const char* errMsgNotOpen ( Tcl_Interp *  ti)

Definition at line 269 of file tkscid.cpp.

const char* errMsgSearchInterrupted ( Tcl_Interp *  ti)

Definition at line 275 of file tkscid.cpp.

int errorResult ( Tcl_Interp *  ti,
errorT  err,
const char *  errorMsg = 0 
)
inline

Definition at line 226 of file tkscid.cpp.

int errorResult ( Tcl_Interp *  ti,
const char *  errorMsg 
)
inline

Definition at line 232 of file tkscid.cpp.

void exportGame ( Game g,
FILE *  exportFile,
gameFormatT  format,
uint  pgnStyle 
)

Definition at line 336 of file tkscid.cpp.

void flipPattern ( patternT patt)

Definition at line 9419 of file tkscid.cpp.

void freePatternList ( patternT patt)

Definition at line 9404 of file tkscid.cpp.

int InvalidCommand ( Tcl_Interp *  ti,
const char *  majorCmd,
const char **  minorCmds 
)

Definition at line 248 of file tkscid.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 81 of file tkscid.cpp.

bool matchGameHeader ( const IndexEntry ie,
bool *  mWhite,
bool *  mBlack,
bool  wToMove,
bool  bToMove,
bool  bAnnotaded 
)

Definition at line 9844 of file tkscid.cpp.

errorT parsePattern ( const char *  str,
patternT patt 
)

Definition at line 9433 of file tkscid.cpp.

bool* parseTitles ( const char *  str)

Definition at line 9888 of file tkscid.cpp.

bool probe_tablebase ( Tcl_Interp *  ti,
int  mode,
DString dstr 
)

Definition at line 2789 of file tkscid.cpp.

uint sc_base_duplicates ( scidBaseT dbase,
UI_handle_t  ti,
int  argc,
const char **  argv 
)

Definition at line 825 of file tkscid.cpp.

int sc_base_export ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 368 of file tkscid.cpp.

int sc_base_inUse ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 320 of file tkscid.cpp.

int sc_base_piecetrack ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 545 of file tkscid.cpp.

int sc_base_tag ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 1069 of file tkscid.cpp.

int sc_book ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

BOOK functions.

Definition at line 10351 of file tkscid.cpp.

int sc_book_close ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10422 of file tkscid.cpp.

int sc_book_load ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10393 of file tkscid.cpp.

int sc_book_moves ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10437 of file tkscid.cpp.

int sc_book_movesupdate ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10484 of file tkscid.cpp.

int sc_book_positions ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10454 of file tkscid.cpp.

int sc_book_update ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10471 of file tkscid.cpp.

int sc_clipbase ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 1200 of file tkscid.cpp.

int sc_clipbase_paste ( scidBaseT clipbase,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

CLIPBASE functions.

Definition at line 1235 of file tkscid.cpp.

int sc_eco ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 1280 of file tkscid.cpp.

int sc_eco_base ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 1340 of file tkscid.cpp.

int sc_eco_game ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 1463 of file tkscid.cpp.

int sc_eco_read ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 1510 of file tkscid.cpp.

int sc_eco_summary ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 1539 of file tkscid.cpp.

int sc_eco_translate ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 1595 of file tkscid.cpp.

int sc_filter_first ( ClientData  ,
Tcl_Interp *  ti,
int  ,
const char **   
)

Definition at line 1994 of file tkscid.cpp.

int sc_filter_freq ( scidBaseT dbase,
const HFilter filter,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 1878 of file tkscid.cpp.

int sc_filter_last ( ClientData  ,
Tcl_Interp *  ti,
int  ,
const char **   
)

Definition at line 2008 of file tkscid.cpp.

int sc_filter_next ( ClientData  ,
Tcl_Interp *  ti,
int  ,
const char **   
)

Definition at line 2022 of file tkscid.cpp.

int sc_filter_old ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

FILTER functions.

Definition at line 1663 of file tkscid.cpp.

int sc_filter_prev ( ClientData  ,
Tcl_Interp *  ti,
int  ,
const char **   
)

Definition at line 2040 of file tkscid.cpp.

int sc_filter_stats ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 2060 of file tkscid.cpp.

int sc_game ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

GAME functions.

Definition at line 2146 of file tkscid.cpp.

int sc_game_crosstable ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 2358 of file tkscid.cpp.

int sc_game_find ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 2666 of file tkscid.cpp.

int sc_game_firstMoves ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 2735 of file tkscid.cpp.

int sc_game_import ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 2755 of file tkscid.cpp.

int sc_game_info ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 3127 of file tkscid.cpp.

int sc_game_load ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 3600 of file tkscid.cpp.

int sc_game_merge ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 3648 of file tkscid.cpp.

int sc_game_moves ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 3787 of file tkscid.cpp.

int sc_game_new ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)

Definition at line 3872 of file tkscid.cpp.

int sc_game_novelty ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 3887 of file tkscid.cpp.

int sc_game_pgn ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 3970 of file tkscid.cpp.

int sc_game_pop ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)

Definition at line 4101 of file tkscid.cpp.

int sc_game_push ( ClientData  ,
Tcl_Interp *  ,
int  argc,
const char **  argv 
)

Definition at line 4119 of file tkscid.cpp.

int sc_game_save ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 4144 of file tkscid.cpp.

int sc_game_scores ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 4246 of file tkscid.cpp.

int sc_game_startBoard ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 4299 of file tkscid.cpp.

int sc_game_strip ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 4344 of file tkscid.cpp.

int sc_game_summary ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 4399 of file tkscid.cpp.

int sc_game_tags ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 4543 of file tkscid.cpp.

int sc_game_tags_get ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 4573 of file tkscid.cpp.

int sc_game_tags_reload ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)

Definition at line 4818 of file tkscid.cpp.

int sc_game_tags_set ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 4728 of file tkscid.cpp.

int sc_game_tags_share ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 4842 of file tkscid.cpp.

int sc_info ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

INFO functions.

Definition at line 5049 of file tkscid.cpp.

int sc_info_fsize ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5158 of file tkscid.cpp.

int sc_info_limit ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5258 of file tkscid.cpp.

int sc_info_suffix ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5304 of file tkscid.cpp.

int sc_info_tb ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5332 of file tkscid.cpp.

int sc_move ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5385 of file tkscid.cpp.

int sc_move_add ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5454 of file tkscid.cpp.

int sc_move_addSan ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5497 of file tkscid.cpp.

int sc_move_addUCI ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5529 of file tkscid.cpp.

int sc_move_back ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5578 of file tkscid.cpp.

int sc_move_forward ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5600 of file tkscid.cpp.

int sc_move_pgn ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5625 of file tkscid.cpp.

int sc_name ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6455 of file tkscid.cpp.

int sc_name_correct ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6527 of file tkscid.cpp.

int sc_name_edit ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6708 of file tkscid.cpp.

int sc_name_info ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6927 of file tkscid.cpp.

int sc_name_match ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 7577 of file tkscid.cpp.

int sc_name_plist ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 7677 of file tkscid.cpp.

UI_res_t sc_name_ratings ( UI_handle_t  ti,
scidBaseT dbase,
const SpellChecker sp,
int  argc,
const char **  argv 
)

Definition at line 7798 of file tkscid.cpp.

int sc_name_read ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 7913 of file tkscid.cpp.

UI_res_t sc_name_retrievename ( UI_handle_t  ti,
const SpellChecker sp,
int  argc,
const char **  argv 
)

Definition at line 6911 of file tkscid.cpp.

UI_res_t sc_name_spellcheck ( UI_handle_t  ti,
scidBaseT dbase,
const SpellChecker sp,
int  argc,
const char **  argv 
)

Definition at line 7943 of file tkscid.cpp.

int sc_pos ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5642 of file tkscid.cpp.

int sc_pos_addNag ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5803 of file tkscid.cpp.

int sc_pos_analyze ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5833 of file tkscid.cpp.

int sc_pos_bestSquare ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 5921 of file tkscid.cpp.

int sc_pos_getNags ( ClientData  ,
Tcl_Interp *  ti,
int  ,
const char **   
)

Definition at line 6015 of file tkscid.cpp.

int sc_pos_hash ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6035 of file tkscid.cpp.

int sc_pos_html ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6064 of file tkscid.cpp.

int sc_pos_isAt ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6099 of file tkscid.cpp.

int sc_pos_isLegal ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6155 of file tkscid.cpp.

int sc_pos_isPromo ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6134 of file tkscid.cpp.

int sc_pos_matchMoves ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6186 of file tkscid.cpp.

int sc_pos_moves ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **   
)

Definition at line 6257 of file tkscid.cpp.

int sc_pos_pgnBoard ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6279 of file tkscid.cpp.

int sc_pos_probe ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6323 of file tkscid.cpp.

int sc_pos_probe_board ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6372 of file tkscid.cpp.

int sc_pos_setComment ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 6421 of file tkscid.cpp.

int sc_report ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 8134 of file tkscid.cpp.

int sc_report_create ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 8363 of file tkscid.cpp.

int sc_report_select ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 8450 of file tkscid.cpp.

int sc_search ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 9109 of file tkscid.cpp.

int sc_search_board ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 9153 of file tkscid.cpp.

int sc_search_header ( ClientData  ,
Tcl_Interp *  ti,
scidBaseT base,
HFilter filter,
int  argc,
const char **  argv 
)

Definition at line 9912 of file tkscid.cpp.

int sc_search_material ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 9503 of file tkscid.cpp.

int sc_tree ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 8488 of file tkscid.cpp.

int sc_tree_cacheinfo ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 9090 of file tkscid.cpp.

int sc_tree_cachesize ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 9077 of file tkscid.cpp.

int sc_tree_move ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 8537 of file tkscid.cpp.

int sc_tree_search ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 8635 of file tkscid.cpp.

int sc_var ( ClientData  cd,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10178 of file tkscid.cpp.

int sc_var_delete ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10267 of file tkscid.cpp.

int sc_var_delete_free ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10247 of file tkscid.cpp.

int sc_var_enter ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10326 of file tkscid.cpp.

int sc_var_first ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10287 of file tkscid.cpp.

int sc_var_list ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 10306 of file tkscid.cpp.

void scid_Exit ( void *  )

Definition at line 67 of file tkscid.cpp.

int setIntResult ( Tcl_Interp *  ti,
int  i 
)
inline

Definition at line 134 of file tkscid.cpp.

int setResult ( Tcl_Interp *  ti,
const char *  str 
)
inline

Definition at line 123 of file tkscid.cpp.

int setUintResult ( Tcl_Interp *  ti,
uint  i 
)
inline

Definition at line 147 of file tkscid.cpp.

int setUintWidthResult ( Tcl_Interp *  ti,
uint  i,
uint  width 
)
inline

Definition at line 186 of file tkscid.cpp.

void sortTreeMoves ( treeT tree,
int  sortMethod,
colorT  toMove 
)

Definition at line 8588 of file tkscid.cpp.

int str_is_prefix ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 293 of file tkscid.cpp.

int str_prefix_len ( ClientData  ,
Tcl_Interp *  ti,
int  argc,
const char **  argv 
)

Definition at line 307 of file tkscid.cpp.

const char* translate ( Tcl_Interp *  ti,
const char *  name,
const char *  defaultText 
)
inline

Definition at line 213 of file tkscid.cpp.

const char* translate ( Tcl_Interp *  ti,
const char *  name 
)
inline

Definition at line 221 of file tkscid.cpp.

void translateECO ( Tcl_Interp *  ti,
const char *  strFrom,
DString dstrTo 
)

Definition at line 1619 of file tkscid.cpp.

Variable Documentation

scidBaseT* db

Definition at line 26 of file dbasepool.cpp.

const int MAX_BASES = 9

Definition at line 58 of file tkscid.cpp.

const uint NUM_TITLES = 8

Definition at line 9869 of file tkscid.cpp.

const char* titleStr[NUM_TITLES]
Initial value:
= {
"gm", "im", "fm", "wgm", "wim", "wfm", "w", "none"
}

Definition at line 9875 of file tkscid.cpp.