sntncelex.h
资源名称:ictprop.rar [点击查看]
上传用户:tenhai
上传日期:2021-02-19
资源大小:492k
文件大小:1k
源码类别:
组合框控件
开发平台:
Visual C++
- #ifndef SNTNCELEX_H
- #define SNTNCELEX_H
- #define MAXWENTRY 30031
- #define MAXDEFS 10
- #define MAXSENTLEN 2000
- #define MAXCNODE 200
- typedef struct wentry_t{
- char *word;
- struct def_t *def;
- struct wentry_t *nxt;
- }wentry_t;
- typedef struct def_t{
- unsigned int cate;
- struct def_t *nxt;
- }def_t;
- extern wentry_t *dictionary[MAXWENTRY];
- extern wentry_t *dictsearch(char *word);
- extern wentry_t *dictinsert(char *word);
- extern int dictrelease(void);
- extern int adddef(wentry_t *wentry, unsigned int cate);
- extern FILE *pfs;
- extern unsigned int nextcate, currcate;
- extern unsigned int curchartnode, prechartnode, accchartnode;
- extern wentry_t *nextwentry, *currwentry;
- extern wentry_t *wentries[MAXCNODE-1];
- extern unsigned int (*nextdefs)[MAXDEFS], (*currdefs)[MAXDEFS];
- extern unsigned int deflettice[MAXCNODE-1][MAXDEFS];
- extern int filllattice();
- extern int lookahead();
- extern int scanin();
- extern int symbmode;
- extern int endofsntnce;
- extern int endposofsntnce;
- extern char sentbuf[MAXSENTLEN];
- #endif