|
Planeshift
|
#include <stdio.h>Go to the source code of this file.
Classes | |
| struct | Index |
| struct | SearchResults |
| struct | si |
| struct | ss |
Macros | |
| #define | ADJ 3 |
| #define | ADJSAT SATELLITE |
| #define | ADV 4 |
| #define | ALL_POS 0 /* passed to in_wn() to check all POS */ |
| #define | ALLSENSES 0 /* pass to findtheinfo() if want all senses */ |
| #define | ANTPTR 1 /* ! */ |
| #define | ATTRIBUTE 18 /* = */ |
| #define | ATTRIBUTIVE NPADJ |
| #define | bit(n) ((unsigned int)((unsigned int)1<<((unsigned int)n))) |
| #define | CAUSETO 14 /* > */ |
| #define | CLASS 22 /* - */ |
| #define | CLASS_CATEGORY (CLASS_START) /* -c */ |
| #define | CLASS_END CLASS_REGIONAL |
| #define | CLASS_REGIONAL (CLASS_START + 2) /* -r */ |
| #define | CLASS_START (CLASSIF_END + 1) |
| #define | CLASS_USAGE (CLASS_START + 1) /* -u */ |
| #define | CLASSIF_CATEGORY (CLASSIF_START) /* ;c */ |
| #define | CLASSIF_END CLASSIF_REGIONAL |
| #define | CLASSIF_REGIONAL (CLASSIF_START + 2) /* ;r */ |
| #define | CLASSIF_START (MAXSEARCH + 1) |
| #define | CLASSIF_USAGE (CLASSIF_START + 1) /* ;u */ |
| #define | CLASSIFICATION 21 /* ; */ |
| #define | CNTLISTFILE "%s/cntlist.rev" |
| #define | COORDS (LASTTYPE + 4) |
| #define | DATAFILE "%s/data.%s" |
| #define | DBLICENSE_SIZE (sizeof(dblicense)) |
| #define | DEFAULTPATH "data/dict" |
| #define | DERIVATION 20 /* + */ |
| #define | DICTDIR "/dict" |
| #define | ENTAILPTR 4 /* * */ |
| #define | FRAMES (LASTTYPE + 3) |
| #define | FREQ (LASTTYPE + 2) |
| #define | HASMEMBERPTR 9 /* %m */ |
| #define | HASPARTPTR 11 /* %p */ |
| #define | HASSTUFFPTR 10 /* %s */ |
| #define | HHOLONYM (LASTTYPE + 7) |
| #define | HMERONYM (LASTTYPE + 6) |
| #define | HOLONYM 13 /* # (not valid in lexicographer file) */ |
| #define | HYPERPTR 2 /* @ */ |
| #define | HYPOPTR 3 /* ~ */ |
| #define | IMMED_POSTNOMINAL IPADJ |
| #define | INDEXFILE "%s/index.%s" |
| #define | INSTANCE (CLASS_END + 1) /* @i */ |
| #define | INSTANCES (CLASS_END + 2) /* ~i */ |
| #define | IPADJ 3 /* (ip) */ |
| #define | ISMEMBERPTR 6 /* #m */ |
| #define | ISPARTPTR 8 /* #p */ |
| #define | ISSTUFFPTR 7 /* #s */ |
| #define | KEYIDXFILE "%s/index.key" |
| #define | LASTTYPE CLASS |
| #define | LINEBUF (15*1024) /* 15K buffer to read index & data files */ |
| #define | MAX_FORMS 5 /* max # of different 'forms' word can have */ |
| #define | MAXDEPTH 20 /* maximum tree depth - used to find cycles */ |
| #define | MAXFNUM 44 /* maximum number of lexicographer files */ |
| #define | MAXID 15 /* maximum id number in lexicographer file */ |
| #define | MAXPTR INSTANCES |
| #define | MAXSEARCH OVERVIEW |
| #define | MAXSENSE 75 /* maximum number of senses in database */ |
| #define | MERONYM 12 /* % (not valid in lexicographer file) */ |
| #define | NOUN 1 |
| #define | NPADJ 2 /* (a) */ |
| #define | NUMFRAMES 35 /* number of verb frames */ |
| #define | NUMPARTS 4 /* number of parts of speech */ |
| #define | OVERVIEW (LASTTYPE + 9) |
| #define | PADJ 1 /* (p) */ |
| #define | PERTPTR 17 /* \ */ |
| #define | PPLPTR 15 /* < */ |
| #define | PREDICATIVE PADJ |
| #define | RELATIVES (LASTTYPE + 5) |
| #define | REVKEYIDXFILE "%s/index.key.rev" |
| #define | SATELLITE 5 /* not really a part of speech */ |
| #define | SEARCHBUF ((long)(200*(long)1024)) |
| #define | SEEALSOPTR 16 /* ^ */ |
| #define | SENSEIDXFILE "%s/index.sense" |
| #define | SIMPTR 5 /* & */ |
| #define | SMLINEBUF (3*1024) /* small buffer for output lines */ |
| #define | SYNS (LASTTYPE + 1) |
| #define | UNKNOWN_MARKER 0 |
| #define | VERB 2 |
| #define | VERBGROUP 19 /* $ */ |
| #define | VRBIDXFILE "%s/sentidx.vrb" |
| #define | VRBSENTFILE "%s/sents.vrb" |
| #define | WNGREP (LASTTYPE + 8) |
| #define | WORDBUF (256) /* buffer for one word or collocation */ |
Typedefs | |
| typedef Index * | IndexPtr |
| typedef SearchResults * | SearchResultsPtr |
| typedef struct si | SnsIndex |
| typedef SnsIndex * | SnsIndexPtr |
| typedef struct ss | Synset |
| typedef Synset * | SynsetPtr |
Variables | |
| int | abortsearch |
| char * | adjclass [] |
| FILE * | cntlistfp |
| FILE * | datafps [NUMPARTS+1] |
| int | dflag |
| int(* | display_message )(char *) |
| int | fileinfoflag |
| int | fnflag |
| char * | frametext [] |
| int | frflag |
| char ** | helptext [NUMPARTS+1] |
| FILE * | indexfps [NUMPARTS+1] |
| void(* | interface_doevents_func )(void) |
| FILE * | keyindexfp |
| char * | lexfiles [] |
| int | offsetflag |
| int | OpenDB |
| char | partchars [] |
| char * | partnames [] |
| char * | ptrtyp [] |
| FILE * | revkeyindexfp |
| int | saflag |
| FILE * | sensefp |
| FILE * | vidxfilefp |
| FILE * | vsentfilefp |
| char * | wnrelease |
| SearchResults | wnresults |
| int | wnsnsflag |
| #define ALLSENSES 0 /* pass to findtheinfo() if want all senses */ |
| #define CLASS_CATEGORY (CLASS_START) /* -c */ |
| #define CLASS_END CLASS_REGIONAL |
| #define CLASS_REGIONAL (CLASS_START + 2) /* -r */ |
| #define CLASS_START (CLASSIF_END + 1) |
| #define CLASS_USAGE (CLASS_START + 1) /* -u */ |
| #define CLASSIF_CATEGORY (CLASSIF_START) /* ;c */ |
| #define CLASSIF_END CLASSIF_REGIONAL |
| #define CLASSIF_REGIONAL (CLASSIF_START + 2) /* ;r */ |
| #define CLASSIF_USAGE (CLASSIF_START + 1) /* ;u */ |
| #define LINEBUF (15*1024) /* 15K buffer to read index & data files */ |
| #define MAX_FORMS 5 /* max # of different 'forms' word can have */ |
| #define MAXDEPTH 20 /* maximum tree depth - used to find cycles */ |
| typedef SearchResults* SearchResultsPtr |
| typedef SnsIndex* SnsIndexPtr |
| char* bin_search | ( | char * | , |
| FILE * | |||
| ) |
| int cntwords | ( | char * | , |
| char | |||
| ) |
| void copyfile | ( | FILE * | , |
| FILE * | |||
| ) |
| int default_display_message | ( | char * | ) |
| void free_index | ( | IndexPtr | ) |
| void free_syns | ( | SynsetPtr | ) |
| void free_synset | ( | SynsetPtr | ) |
| void FreeSenseIndex | ( | SnsIndexPtr | ) |
| long GetDataOffset | ( | char * | ) |
| char* GetOffsetForKey | ( | unsigned | int | ) |
| int GetPolyCount | ( | char * | ) |
| int getpos | ( | char * | ) |
| int GetPOS | ( | char * | ) |
| int getptrtype | ( | char * | ) |
| SnsIndexPtr GetSenseIndex | ( | char * | ) |
| int getsstype | ( | char * | ) |
| SynsetPtr GetSynsetForSense | ( | char * | ) |
| int GetWNSense | ( | char * | , |
| char * | |||
| ) |
| char* GetWNStr | ( | char * | , |
| int | |||
| ) |
| char* GetWORD | ( | char * | ) |
| char* insert_line | ( | char * | , |
| char * | , | ||
| FILE * | |||
| ) |
| int morphinit | ( | ) |
| char* morphstr | ( | char * | , |
| int | |||
| ) |
| char* morphword | ( | char * | , |
| int | |||
| ) |
| int re_morphinit | ( | ) |
| int re_wninit | ( | ) |
| char* read_index | ( | long | , |
| FILE * | |||
| ) |
| char* replace_line | ( | char * | , |
| char * | , | ||
| FILE * | |||
| ) |
| char* SetSearchdir | ( | ) |
| int strstr_getnext | ( | void | ) |
| void strstr_init | ( | char * | , |
| char * | |||
| ) |
| char* strsubst | ( | char * | , |
| char | , | ||
| char | |||
| ) |
| char* strtolower | ( | char * | ) |
| int StrToPos | ( | char * | ) |
| char* ToLowerCase | ( | char * | ) |
| int wnclose | ( | ) |
| int wninit | ( | ) |
| int abortsearch |
| char* adjclass[] |
| FILE * cntlistfp |
| FILE* datafps[NUMPARTS+1] |
| int dflag |
| int(* display_message) (char *) |
| int fileinfoflag |
| int fnflag |
| char* frametext[] |
| int frflag |
| char** helptext[NUMPARTS+1] |
| FILE * indexfps[NUMPARTS+1] |
| void(* interface_doevents_func) (void) |
| FILE * keyindexfp |
| char* lexfiles[] |
| int offsetflag |
| int OpenDB |
| char partchars[] |
| char* partnames[] |
| char* ptrtyp[] |
| FILE * revkeyindexfp |
| int saflag |
| FILE * sensefp |
| FILE * vidxfilefp |
| FILE * vsentfilefp |
| char* wnrelease |
| SearchResults wnresults |
| int wnsnsflag |