Scid  4.7.0
Classes | Macros | Enumerations | Functions | Variables
tkscid.cpp File Reference
#include "crosstab.h"
#include "dstring.h"
#include "engine.h"
#include "game.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 <algorithm>
#include <cstring>
#include <numeric>
#include <set>
#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 (ClientData, Tcl_Interp *ti, int argc, const char **argv)
 CLIPBASE functions. More...
 
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_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)
 
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_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)
 
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)
 
UI_res_t sc_name_retrievename (UI_handle_t ti, const SpellChecker &sp, 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)
 
UI_res_t sc_name_ratings (UI_handle_t ti, scidBaseT &dbase, const SpellChecker &sp, int argc, const char **argv)
 
int sc_name_read (ClientData, Tcl_Interp *ti, 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)
 
UI_res_t sc_name (UI_extra_t cd, UI_handle_t 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 (Tcl_Interp *ti, const scidBaseT *dbase, HFilter filter, 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 * 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 (ClientData, Tcl_Interp *ti, int, const char **)
 
int sc_var_first (ClientData, Tcl_Interp *ti, int, const char **)
 
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

◆ PROBE_NONE

#define PROBE_NONE   0

Definition at line 106 of file tkscid.cpp.

◆ PROBE_OPTIMAL

#define PROBE_OPTIMAL   4

Definition at line 110 of file tkscid.cpp.

◆ PROBE_REPORT

#define PROBE_REPORT   3

Definition at line 109 of file tkscid.cpp.

◆ PROBE_RESULT

#define PROBE_RESULT   1

Definition at line 107 of file tkscid.cpp.

◆ PROBE_SUMMARY

#define PROBE_SUMMARY   2

Definition at line 108 of file tkscid.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TITLE_GM 
TITLE_IM 
TITLE_FM 
TITLE_WGM 
TITLE_WIM 
TITLE_WFM 
TITLE_W 
TITLE_NONE 

Definition at line 9215 of file tkscid.cpp.

◆ moveSortE

enum moveSortE
Enumerator
SORT_ALPHA 
SORT_ECO 
SORT_FREQUENCY 
SORT_SCORE 

Definition at line 7962 of file tkscid.cpp.

Function Documentation

◆ addPattern()

patternT* addPattern ( patternT pattHead,
patternT addPatt 
)

Definition at line 8755 of file tkscid.cpp.

◆ appendCharResult()

int appendCharResult ( Tcl_Interp *  ti,
char  ch 
)
inline

Definition at line 200 of file tkscid.cpp.

◆ appendUintElement()

uint appendUintElement ( Tcl_Interp *  ti,
uint  i 
)
inline

Definition at line 174 of file tkscid.cpp.

◆ appendUintResult()

int appendUintResult ( Tcl_Interp *  ti,
uint  i 
)
inline

Definition at line 161 of file tkscid.cpp.

◆ checkDuplicate()

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

Definition at line 761 of file tkscid.cpp.

◆ errMsgNotOpen()

const char* errMsgNotOpen ( Tcl_Interp *  ti)

Definition at line 270 of file tkscid.cpp.

◆ errMsgSearchInterrupted()

const char* errMsgSearchInterrupted ( Tcl_Interp *  ti)

Definition at line 276 of file tkscid.cpp.

◆ errorResult() [1/2]

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

Definition at line 227 of file tkscid.cpp.

◆ errorResult() [2/2]

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

Definition at line 233 of file tkscid.cpp.

◆ exportGame()

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

Definition at line 337 of file tkscid.cpp.

◆ flipPattern()

void flipPattern ( patternT patt)

Definition at line 8794 of file tkscid.cpp.

◆ freePatternList()

void freePatternList ( patternT patt)

Definition at line 8779 of file tkscid.cpp.

◆ InvalidCommand()

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

Definition at line 249 of file tkscid.cpp.

◆ main()

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

Definition at line 83 of file tkscid.cpp.

◆ parsePattern()

errorT parsePattern ( const char *  str,
patternT patt 
)

Definition at line 8808 of file tkscid.cpp.

◆ parseTitles()

bool* parseTitles ( const char *  str)

Definition at line 9233 of file tkscid.cpp.

◆ probe_tablebase()

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

Definition at line 2704 of file tkscid.cpp.

◆ sc_base_duplicates()

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

Definition at line 826 of file tkscid.cpp.

◆ sc_base_export()

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

Definition at line 369 of file tkscid.cpp.

◆ sc_base_inUse()

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

Definition at line 321 of file tkscid.cpp.

◆ sc_base_piecetrack()

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

Definition at line 546 of file tkscid.cpp.

◆ sc_base_tag()

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

Definition at line 1070 of file tkscid.cpp.

◆ sc_book()

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

BOOK functions.

Definition at line 9658 of file tkscid.cpp.

◆ sc_book_close()

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

Definition at line 9729 of file tkscid.cpp.

◆ sc_book_load()

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

Definition at line 9700 of file tkscid.cpp.

◆ sc_book_moves()

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

Definition at line 9744 of file tkscid.cpp.

◆ sc_book_movesupdate()

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

Definition at line 9791 of file tkscid.cpp.

◆ sc_book_positions()

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

Definition at line 9761 of file tkscid.cpp.

◆ sc_book_update()

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

Definition at line 9778 of file tkscid.cpp.

◆ sc_clipbase()

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

CLIPBASE functions.

Definition at line 1193 of file tkscid.cpp.

◆ sc_eco()

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

Definition at line 1248 of file tkscid.cpp.

◆ sc_eco_base()

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

Definition at line 1308 of file tkscid.cpp.

◆ sc_eco_game()

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

Definition at line 1416 of file tkscid.cpp.

◆ sc_eco_read()

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

Definition at line 1456 of file tkscid.cpp.

◆ sc_eco_summary()

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

Definition at line 1480 of file tkscid.cpp.

◆ sc_eco_translate()

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

Definition at line 1534 of file tkscid.cpp.

◆ sc_filter_first()

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

Definition at line 1939 of file tkscid.cpp.

◆ sc_filter_freq()

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

Definition at line 1823 of file tkscid.cpp.

◆ sc_filter_last()

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

Definition at line 1953 of file tkscid.cpp.

◆ sc_filter_next()

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

Definition at line 1967 of file tkscid.cpp.

◆ sc_filter_old()

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

FILTER functions.

Definition at line 1602 of file tkscid.cpp.

◆ sc_filter_prev()

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

Definition at line 1985 of file tkscid.cpp.

◆ sc_filter_stats()

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

Definition at line 2005 of file tkscid.cpp.

◆ sc_game()

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

GAME functions.

Definition at line 2091 of file tkscid.cpp.

◆ sc_game_crosstable()

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

Definition at line 2282 of file tkscid.cpp.

◆ sc_game_find()

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

Definition at line 2590 of file tkscid.cpp.

◆ sc_game_firstMoves()

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

Definition at line 2659 of file tkscid.cpp.

◆ sc_game_import()

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

Definition at line 2678 of file tkscid.cpp.

◆ sc_game_info()

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

Definition at line 3042 of file tkscid.cpp.

◆ sc_game_load()

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

Definition at line 3505 of file tkscid.cpp.

◆ sc_game_merge()

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

Definition at line 3553 of file tkscid.cpp.

◆ sc_game_moves()

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

Definition at line 3692 of file tkscid.cpp.

◆ sc_game_new()

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

Definition at line 3764 of file tkscid.cpp.

◆ sc_game_novelty()

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

Definition at line 3779 of file tkscid.cpp.

◆ sc_game_pgn()

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

Definition at line 3861 of file tkscid.cpp.

◆ sc_game_pop()

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

Definition at line 3992 of file tkscid.cpp.

◆ sc_game_push()

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

Definition at line 4012 of file tkscid.cpp.

◆ sc_game_save()

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

Definition at line 4040 of file tkscid.cpp.

◆ sc_game_startBoard()

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

Definition at line 4086 of file tkscid.cpp.

◆ sc_game_strip()

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

Definition at line 4118 of file tkscid.cpp.

◆ sc_game_summary()

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

Definition at line 4136 of file tkscid.cpp.

◆ sc_game_tags()

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

Definition at line 4280 of file tkscid.cpp.

◆ sc_game_tags_get()

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

Definition at line 4310 of file tkscid.cpp.

◆ sc_game_tags_reload()

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

Definition at line 4548 of file tkscid.cpp.

◆ sc_game_tags_set()

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

Definition at line 4458 of file tkscid.cpp.

◆ sc_game_tags_share()

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

Definition at line 4572 of file tkscid.cpp.

◆ sc_info()

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

Definition at line 4813 of file tkscid.cpp.

◆ sc_info_limit()

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

Definition at line 4914 of file tkscid.cpp.

◆ sc_info_suffix()

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

Definition at line 4952 of file tkscid.cpp.

◆ sc_info_tb()

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

Definition at line 4980 of file tkscid.cpp.

◆ sc_move()

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

Definition at line 5033 of file tkscid.cpp.

◆ sc_move_add()

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

Definition at line 5098 of file tkscid.cpp.

◆ sc_move_addSan()

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

Definition at line 5140 of file tkscid.cpp.

◆ sc_move_addUCI()

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

Definition at line 5156 of file tkscid.cpp.

◆ sc_move_back()

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

Definition at line 5205 of file tkscid.cpp.

◆ sc_move_forward()

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

Definition at line 5227 of file tkscid.cpp.

◆ sc_move_pgn()

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

Definition at line 5252 of file tkscid.cpp.

◆ sc_name()

UI_res_t sc_name ( UI_extra_t  cd,
UI_handle_t  ti,
int  argc,
const char **  argv 
)

Definition at line 7426 of file tkscid.cpp.

◆ sc_name_correct()

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

Definition at line 6021 of file tkscid.cpp.

◆ sc_name_edit()

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

Definition at line 6135 of file tkscid.cpp.

◆ sc_name_info()

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

Definition at line 6327 of file tkscid.cpp.

◆ sc_name_match()

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

Definition at line 6910 of file tkscid.cpp.

◆ sc_name_plist()

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

Definition at line 7007 of file tkscid.cpp.

◆ sc_name_ratings()

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

Definition at line 7128 of file tkscid.cpp.

◆ sc_name_read()

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

Definition at line 7227 of file tkscid.cpp.

◆ sc_name_retrievename()

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

Definition at line 6285 of file tkscid.cpp.

◆ sc_name_spellcheck()

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

Definition at line 7256 of file tkscid.cpp.

◆ sc_pos()

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

Definition at line 5269 of file tkscid.cpp.

◆ sc_pos_addNag()

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

Definition at line 5423 of file tkscid.cpp.

◆ sc_pos_analyze()

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

Definition at line 5453 of file tkscid.cpp.

◆ sc_pos_bestSquare()

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

Definition at line 5541 of file tkscid.cpp.

◆ sc_pos_getNags()

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

Definition at line 5630 of file tkscid.cpp.

◆ sc_pos_hash()

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

Definition at line 5650 of file tkscid.cpp.

◆ sc_pos_html()

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

Definition at line 5679 of file tkscid.cpp.

◆ sc_pos_isAt()

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

Definition at line 5714 of file tkscid.cpp.

◆ sc_pos_isLegal()

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

Definition at line 5770 of file tkscid.cpp.

◆ sc_pos_isPromo()

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

Definition at line 5749 of file tkscid.cpp.

◆ sc_pos_matchMoves()

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

Definition at line 5801 of file tkscid.cpp.

◆ sc_pos_moves()

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

Definition at line 5872 of file tkscid.cpp.

◆ sc_pos_probe()

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

Definition at line 5891 of file tkscid.cpp.

◆ sc_pos_probe_board()

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

Definition at line 5940 of file tkscid.cpp.

◆ sc_pos_setComment()

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

Definition at line 5989 of file tkscid.cpp.

◆ sc_report()

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

Definition at line 7516 of file tkscid.cpp.

◆ sc_report_create()

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

Definition at line 7745 of file tkscid.cpp.

◆ sc_report_select()

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

Definition at line 7832 of file tkscid.cpp.

◆ sc_search()

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

Definition at line 8488 of file tkscid.cpp.

◆ sc_search_board()

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

Definition at line 8531 of file tkscid.cpp.

◆ sc_search_header()

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

Definition at line 9257 of file tkscid.cpp.

◆ sc_search_material()

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

Definition at line 8878 of file tkscid.cpp.

◆ sc_tree()

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

Definition at line 7870 of file tkscid.cpp.

◆ sc_tree_cacheinfo()

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

Definition at line 8469 of file tkscid.cpp.

◆ sc_tree_cachesize()

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

Definition at line 8456 of file tkscid.cpp.

◆ sc_tree_move()

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

Definition at line 7919 of file tkscid.cpp.

◆ sc_tree_search()

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

Definition at line 8017 of file tkscid.cpp.

◆ sc_var()

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

Definition at line 9527 of file tkscid.cpp.

◆ sc_var_delete()

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

Definition at line 9592 of file tkscid.cpp.

◆ sc_var_enter()

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

Definition at line 9633 of file tkscid.cpp.

◆ sc_var_first()

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

Definition at line 9602 of file tkscid.cpp.

◆ sc_var_list()

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

Definition at line 9613 of file tkscid.cpp.

◆ scid_Exit()

void scid_Exit ( void *  )

Definition at line 66 of file tkscid.cpp.

◆ setIntResult()

int setIntResult ( Tcl_Interp *  ti,
int  i 
)
inline

Definition at line 135 of file tkscid.cpp.

◆ setResult()

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

Definition at line 124 of file tkscid.cpp.

◆ setUintResult()

int setUintResult ( Tcl_Interp *  ti,
uint  i 
)
inline

Definition at line 148 of file tkscid.cpp.

◆ setUintWidthResult()

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

Definition at line 187 of file tkscid.cpp.

◆ sortTreeMoves()

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

Definition at line 7970 of file tkscid.cpp.

◆ str_is_prefix()

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

Definition at line 294 of file tkscid.cpp.

◆ str_prefix_len()

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

Definition at line 308 of file tkscid.cpp.

◆ translate() [1/2]

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

Definition at line 214 of file tkscid.cpp.

◆ translate() [2/2]

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

Definition at line 222 of file tkscid.cpp.

◆ translateECO()

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

Definition at line 1558 of file tkscid.cpp.

Variable Documentation

◆ db

scidBaseT* db

Definition at line 26 of file dbasepool.cpp.

◆ MAX_BASES

const int MAX_BASES = 9

Definition at line 57 of file tkscid.cpp.

◆ NUM_TITLES

const uint NUM_TITLES = 8

Definition at line 9214 of file tkscid.cpp.

◆ titleStr

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

Definition at line 9220 of file tkscid.cpp.