File: atypes.hxx

package info (click to toggle)
myspell 1:3.0+pre3.1-24.2
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 1,228 kB
  • ctags: 436
  • sloc: cpp: 5,985; sh: 1,250; ansic: 1,176; makefile: 222; perl: 81
file content (45 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _ATYPES_HXX_
#define _ATYPES_HXX_

#define SETSIZE         256
#define MAXAFFIXES      256
#define MAXWORDLEN      100
#define XPRODUCT        (1 << 0)

#define MAXLNLEN        1024

#define TESTAFF( a , b , c ) memchr((void *)(a), (int)(b), (size_t)(c) )

struct affentry
{
   char * strip;
   char * appnd;
   short  stripl;
   short  appndl;
   short  numconds;
   short  xpflg;
   char   achar;
   char   conds[SETSIZE];
};

struct replentry {
  char * pattern;
  char * replacement;
};

struct mapentry {
  char * set;
  int len;
};

struct guessword {
  char * word;
  bool allow;
};

#endif