File: PrefixBits.pl

package info (click to toggle)
hspell 1.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,444 kB
  • ctags: 343
  • sloc: ansic: 2,811; perl: 1,988; makefile: 264; sh: 109; awk: 15
file content (15 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Prefix specifiers currently generated:
 $PS_ALL=63;   # All legal prefixes are allowed for this word
 $PS_B=1;      # only certain prefixes ending in bet are allowed.
 $PS_L=2;      # only prefixes ending in bachla"m are allowed (note that if genprefixes.pl gives a certain prefix PS_L, it should also give it PS_B).
 $PS_VERB=4;
 $PS_NONDEF=8;    # accept prefixes w/o 
 $PS_IMPER=16;    # accept nothing/
 $PS_MISC=32;
# These have to be bitmasks that can be or'ed easily, so that if one word
# can get prefixes of two types, it will have one combined prefix specifier
# that describes the prefixes.
#
# These prefix specifiers are used by genprefixes.pl to create prefixes.c
# that is used by hspell.c