Lingua-Jspell
view release on metacpan or search on metacpan
src/jspell.h view on Meta::CPAN
struct ssep_sol { /* CHANGE NEW */
char root[MAXWLEN];
char root_class[MAXCLASS];
char pre_class[MAXCLASS];
char suf_class[MAXCLASS];
char suf2_class[MAXCLASS];
char flag[4];
};
EXTERN struct ssep_sol sep_sol[MAXPOSSIBLE]; /* CHANGE NEW */
struct poss {
struct success suc;
char word[INPUTWORDLEN + MAXAFFIXLEN];
};
EXTERN struct poss my_poss[MAXPOSSIBLE];
EXTERN int my_poss_count;
/* Table of possible corrections */
EXTERN int pcount; /* Count of possibilities generated */
EXTERN int maxposslen; /* Length of longest possibility */
EXTERN int easypossibilities; /* Number of "easy" corrections found */
/* ..(defined as those using legal affixes) */
/*
* The following array contains a list of characters that should be tried
* in "missingletter." Note that lowercase characters are omitted.
*/
EXTERN int Trynum; /* Size of "Try" array */
EXTERN ichar_t Try[SET_SIZE + MAXSTRINGCHARS];
/*
* Initialized variables. These are generated using macros so that they
* may be consistently declared in all programs. Numerous examples of
* usage are given below.
*/
#ifdef MAIN
#define INIT(decl, init) decl = init
#else
#define INIT(decl, init) extern decl
#endif
#ifdef MINIMENU
INIT (int minimenusize, 2); /* MUST be either 2 or zero */
#else /* MINIMENU */
INIT (int minimenusize, 0); /* MUST be either 2 or zero */
#endif /* MINIMENU */
INIT (int eflag, 0); /* NZ for expand mode */
INIT (int dumpflag, 0); /* NZ to do dump mode */
INIT (int fflag, 0); /* NZ if -f specified */
INIT (int vflag, 0); /* NZ to display characters as M-xxx */
INIT (int Jflag, 0); /* NZ no Gclass by defaut */
INIT (int xflag, DEFNOBACKUPFLAG); /* NZ to suppress backups */
INIT (int deftflag, DEFTEXFLAG); /* NZ for TeX mode by default */
INIT (int tflag, DEFTEXFLAG); /* NZ for TeX mode in current file */
INIT (int oflag, 0); /* NZ if -o specified */ /*CHANGE NEW */
INIT (int gflag, 0); /* display "good" options only */ /*CHANGE NEW */
INIT (int yflag, 0); /* suppress typing erros */ /*CHANGE NEW */
INIT (char signal_is_word, 1); /* tells if jspell should consider a punctuation sign as a word */
INIT (int prefstringchar, -1); /* Preferred string character type */
INIT (int terse, 0); /* NZ for "terse3" mode */
INIT (char tempfile[MAXPATHLEN], ""); /* Name of file we're spelling into */
INIT (int minword, MINWORD); /* Longest always-legal word */
INIT (int sortit, 1); /* Sort suggestions alphabetically */
INIT (int missingspaceflag, -1); /* Don't report missing spaces */
INIT (int tryhardflag, -1); /* Always call tryveryhard */
INIT (char *currentfile, NULL); /* Name of current input file */
INIT (int act_rec, -1);
INIT (char saw_mode, 0);
INIT (int showflags, 0); /* flag z */
/* Odd numbers for math mode in LaTeX; even for LR or paragraph mode */
INIT (int math_mode, 0);
/* P -- paragraph or LR mode
* b -- parsing a \begin statement
* e -- parsing an \end statement
* r -- parsing a \ref type of argument.
* m -- looking for a \begin{minipage} argument.
*/
INIT (char LaTeX_Mode, 'P');
INIT (int TeX_comment, 0);
/* to the replace all */
extern struct dent *last_found;
void jcorrect(char *ctok, ichar_t *itok, char **curchar);
int mk_upper(ichar_t *w, ichar_t *nword);
#endif /* __JSPELL_H__ */
( run in 1.177 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )