/* nty.h CJP Version 2.1 16/10/07 */ #define WORDSTORE 10000000 #define MAXWORDS 100000 #define MAXRELS 100000 #define MAXWORDLEN 1000 typedef struct { /*1.1 The typedef of a struct NTY suitable for identifying and holding the full context of a list of words closed under rotation. */ ALW n; ALW r; ALW *ntys; ALW *rels; int spaceused; int *currentpos; int *wordstore; int *prevnth; int *nexnth; int *relcan; // relcan[i] is handle of relator corresponding to nth i. int *ntyrel; // ntyrel[i] is the handle of THE notch type for relh i. int ngens; int *inv; } NTY; void ntycons(NTY * nt); void ntystart(NTY * nt, int ngens, int * inv); void ntydelete(NTY * nt, int relh); int ntyinsert(NTY * nt, int * rel, int len); int ntyrelnt(NTY * nt, int relh); int ntynexntr(NTY * nt, int nth); int ntyntrel(NTY * nt, int nth); int * ntyntptr(NTY * nt, int nth); int ntyntlen(NTY * nt, int nth); int ntyrot(NTY * nt, int nth, int rot); int ntynexnts(NTY * nt, int nth, int len); int ntyprents(NTY * nt, int nth, int len); int ntynexrel(NTY * nt, int relh); /* end of nty.h */