File: wnrtl.c

package info (click to toggle)
wordnet 1%3A3.0-36
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 25,360 kB
  • sloc: sh: 10,763; ansic: 5,881; yacc: 758; ruby: 634; lex: 417; python: 317; makefile: 137
file content (77 lines) | stat: -rw-r--r-- 2,187 bytes parent folder | download | duplicates (11)
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
/*

   wnrtl.c - global variables used by WordNet Run Time Library

*/

#include <stdio.h>
#include "wn.h"

static char *Id = "$Id: wnrtl.c,v 1.8 2005/01/27 17:33:54 wn Rel $";

/* Search code variables and flags */

SearchResults wnresults;	/* structure containing results of search */

int fnflag = 0;			/* if set, print lex filename after sense */
int dflag = 1;			/* if set, print definitional glosses */
int saflag = 1;			/* if set, print SEE ALSO pointers */
int fileinfoflag = 0;		/* if set, print lex file info on synsets */
int frflag = 0;			/* if set, print verb frames */
int abortsearch = 0;		/* if set, stop search algorithm */
int offsetflag = 0;		/* if set, print byte offset of each synset */
int wnsnsflag = 0;		/* if set, print WN sense # for each word */

/* File pointers for database files */

int OpenDB = 0;			/* if non-zero, database file are open */
FILE *datafps[NUMPARTS + 1] = { NULL, NULL, NULL, NULL, NULL } , 
     *indexfps[NUMPARTS + 1] = { NULL, NULL, NULL, NULL, NULL } ,
     *sensefp = NULL,
     *cntlistfp = NULL,
     *keyindexfp = NULL,
     *revkeyindexfp = NULL,
     *vsentfilefp = NULL, *vidxfilefp = NULL;

/* Method for interface to check for events while search is running */

void (*interface_doevents_func)(void) = NULL;
                        /* callback function for interruptable searches */
                        /* in single-threaded interfaces */

/* General error message handler - can be defined by interface.
   Default function provided in library returns -1 */

int default_display_message(char *);
int (*display_message)(char *) = default_display_message;

/*
   Revsion log: 

   $Log: wnrtl.c,v $
   Revision 1.8  2005/01/27 17:33:54  wn
   cleaned up includes

   Revision 1.7  2005/01/27 16:31:17  wn
   removed cousinfp for 1.6

   Revision 1.6  2002/03/22 20:29:58  wn
   added revkeyindexfp

   Revision 1.5  2001/10/11 18:03:02  wn
   initialize keyindexfp

   Revision 1.4  2001/03/27 18:48:15  wn
   added cntlistfp

   Revision 1.3  2001/03/13 17:45:48  wn
   *** empty log message ***

   Revision 1.2  2000/08/14 16:05:06  wn
   added tcflag

   Revision 1.1  1997/09/02 16:31:18  wn
   Initial revision


*/