-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlstutils.h
95 lines (62 loc) · 2.02 KB
/
lstutils.h
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* M. Nielsen. June 2002. [email protected] */
/*=
List Utilities
=*/
extern void set_list_verbose( int type );
typedef struct namelist {
struct namelist *next;
WORD name;
} NAMELIST;
extern NAMELIST *namelist_alloc();
NAMELIST *namelist_append( NAMELIST *namelist, NAMELIST *n,
NAMELIST **last );
extern void namelist_free(NAMELIST * namelist);
extern NAMELIST *namelist_read(char *filename);
extern NAMELIST *namelist_pread( char *command );
extern NAMELIST **namelist_table( int n );
extern NAMELIST *namelist_find( NAMELIST *namelist, char *name );
typedef struct linelist {
struct linelist *next;
LINE line;
int nw;
char **wvec;
} LINELIST;
extern LINELIST *linelist_alloc();
extern LINELIST *linelist_read(char *filename);
extern LINELIST *linelist_append( LINELIST *linelist, LINELIST *n, LINELIST **last );
extern void linelist_free(LINELIST * linelist);
extern LINELIST **linelist_table( int n );
extern LINELIST *linelist_pread( char *filename );
extern LINELIST *linelist_find( LINELIST *list, char *pat );
typedef struct predlist {
struct predlist *next;
float *cl;
int ncl;
float tap;
float aff;
WORD id;
WORD pep;
WORD epep;
int isepi;
WORD supertype;
} PREDLIST;
extern PREDLIST *predlist_alloc();
extern PREDLIST *predlist_read( FILENAME );
extern PREDLIST *predlistshort_read( FILENAME );
extern PREDLIST **predlist_table( int n );
typedef struct longlinelist {
struct longlinelist *next;
char *line;
} LONGLINELIST;
extern LONGLINELIST *longlinelist_alloc();
extern LONGLINELIST *longlinelist_read(char *filename);
extern void longlinelist_free( LONGLINELIST * linelist);
extern void linelist_split( LINELIST *linelist );
extern LONGLINELIST **longlinelist_table( int n );
typedef struct pairlist {
struct pairlist *next;
WORD name1;
WORD name2;
} PAIRLIST;
extern PAIRLIST *pairlist_alloc();
extern PAIRLIST *pairlist_read( char *filename );