#ifndef __TS_HEAD #define __TS_HEAD #define VERSION "0.1" #define MOVE_LEFT 2 #define MOVE_RIGHT 1 #define MOVE_DONT 0 struct INFO{ char quiet; char tsfile[256],infile[256],outfile[256]; int maxsteps,maxmemory; char output; char cl,cr; // left and right constraint int memory; char zero,one; int steps,state; }; #define MAX_STAV 2048 #define MAX_INSTR 2048 #ifndef stricmp #define stricmp strcasecmp #endif struct INSTR{ short s,p,m; }; /* main.cpp */ bool operator<(const INSTR &a,const INSTR &b); /* load.cpp */ int load_input(void); int load_ts(void); /* run.cpp */ int run(void); /* save.cpp */ int save_output(void); void print_output(void); #endif