DyLP  1.10.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dylib_keytab.h
Go to the documentation of this file.
1 #ifndef _DYLIB_KEYTAB_H
2 #define _DYLIB_KEYTAB_H
3 
4 /*
5  This file is part of the support library for the Dylp LP distribution.
6 
7  Copyright (C) 2005 -- 2007 Lou Hafer
8 
9  School of Computing Science
10  Simon Fraser University
11  Burnaby, B.C., V5A 1S6, Canada
12  lou@cs.sfu.ca
13 
14  This code is licensed under the terms of the Eclipse Public License (EPL).
15 */
16 
17 /*
18  Data structure for keyword tables searched by find and ambig
19 
20  @(#)keytab.h 1.2 08/31/99
21  svn/cvs: $Id: dylib_keytab.h 407 2010-12-31 20:48:48Z lou $
22 */
23 
24 /*
25  Field Contents
26  ----- --------
27  keyword Character string for the keyword.
28  min Minimum number of characters which must be matched before
29  cimstrcmp will report a match.
30  token Value returned when the keyword is matched.
31 */
32 
33 typedef struct keytab_entry_internal { const char *keyword ;
34  int min ;
35  int token ; } keytab_entry ;
36 
37 
38 /*
39  binsrch.c
40 */
41 
42 extern int find(char *word, keytab_entry keytab[], int numkeys),
43  ambig(char *word, keytab_entry keytab[], int numkeys) ;
44 
45 #endif /* _DYLIB_KEYTAB_H */
Definition: dylib_keytab.h:33
int find(char *word, keytab_entry keytab[], int numkeys)
int token
Definition: dylib_keytab.h:35
struct keytab_entry_internal keytab_entry
const char * keyword
Definition: dylib_keytab.h:33
int ambig(char *word, keytab_entry keytab[], int numkeys)
int min
Definition: dylib_keytab.h:34