|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T c
Length: 2560 (0xa00) Types: TextFile Names: »cchess.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Cchess/cchess.h«
/* C O R R E S P O N D E N C E C H E S S Version 1.00 * * Play chess with another player, with notification of moves by mail. * * (C) Apr 1986 - Jan Dithmar Wolter. * * This source code may be freely distributed and modified, but not * sold or used for profit without the permission of the author. */ #include <stdio.h> #include <setjmp.h> #include <signal.h> #include <pwd.h> #include <ctype.h> #include <sys/types.h> #include <sys/dir.h> #include "def.h" /* External declarations of all globals */ extern boolean newgame,moveok,kibitz,solo,hidden,eachgame; extern boolean commodore,incheck,inmate,repeated,stripped,interupt,bigboard; extern boolean istame,must_take; extern int myillmoves, illmoves, tamemoves, mvssize; extern short cx,cy; extern short msgarea; extern short wfr,wfc,wtr,wtc,bfr,bfc,btr,btc; extern schar promote; extern schar ib[R_SIZE][C_SIZE],b[R_SIZE][C_SIZE],bc[R_SIZE][C_SIZE]; extern schar order,mycolor,toplay,taken; extern boolean wcck, wccq, bcck, bccq; extern int movecnt,playcnt; extern int hisuid,myuid; extern int consmade,consmoves; extern char status; extern char *version, *copyright,file_version[]; extern char *resltname[], *captname[HI_CAPTURE+1],*typename[],*langname[]; extern char **piecename,*chessname[HI_NAMES+1][PIECES+1],pc[2*PIECES+2]; extern char hisid[20],myid[20]; extern char cbuffer[CB_LEN+1],*mbuffer,*sbuffer; extern char mb1[MB_LEN+1],mb2[MB_LEN+1]; extern char blankstr[BLANK_LEN+1]; extern char option[OPTIONS],maxopt[OPTIONS]; extern char defopt[HI_GAME+1][OPTIONS]; extern int errcode; extern char bs_char; extern char fname[50]; extern long lastday; extern FILE *rfp; extern FILE *wfp; extern jmp_buf jmpenv; extern boolean issmart,erases,cleardown,scrolled; extern int LINES, COLS; #ifndef LSIGNAL extern jmp_buf susp_env; extern boolean susp1_flg, susp2_flg; #endif LSIGNAL #ifdef DEBUG extern boolean debugon; #endif /* Declarations of routines */ extern struct passwd *getpwnam(), *getpwuid(), *getpwent(); extern char enter(), enterd(), xenter(), xenterd(), *getenv(), *fgetl(); extern boolean check(), legal(), cart(), diag(), canmove(), place(),forces(); extern boolean isrepeat(), compare(),checkbd(), enterdyn(), enteryn(); extern boolean editbd(); extern char *index(), *strcpy(), *strcat(), *malloc(), *gpwuid(); extern char *pcol(), *pcapcol(), *pman(), *pcolman(), *yorn(), *cday(); extern char *sprintf(), *strncpy(); extern schar compkib(); extern long day(), atol(); extern int mprintf(); extern FILE *upopen(); extern int fseek(); extern struct direct *readdir();