Loading...
Searching...
No Matches
dylib_keytab.h
Go to the documentation of this file.
#ifndef _DYLIB_KEYTAB_H
#define _DYLIB_KEYTAB_H
/*
This file is part of the support library for the Dylp LP distribution.
Copyright (C) 2005 -- 2007 Lou Hafer
School of Computing Science
Simon Fraser University
Burnaby, B.C., V5A 1S6, Canada
lou@cs.sfu.ca
This code is licensed under the terms of the Eclipse Public License (EPL).
*/
/*
Data structure for keyword tables searched by find and ambig
@(#)keytab.h 1.2 08/31/99
svn/cvs: $Id: dylib_keytab.h 407 2010-12-31 20:48:48Z lou $
*/
/*
Field Contents
----- --------
keyword Character string for the keyword.
min Minimum number of characters which must be matched before
cimstrcmp will report a match.
token Value returned when the keyword is matched.
*/
typedef struct keytab_entry_internal { const char *keyword ;
int min ;
int token ; } keytab_entry ;
/*
binsrch.c
*/
extern int find(char *word, keytab_entry keytab[], int numkeys),
ambig(char *word, keytab_entry keytab[], int numkeys) ;
#endif /* _DYLIB_KEYTAB_H */
keytab_entry
struct keytab_entry_internal keytab_entry
find
int find(char *word, keytab_entry keytab[], int numkeys)
ambig
int ambig(char *word, keytab_entry keytab[], int numkeys)
keytab_entry_internal
Definition dylib_keytab.h:33
keytab_entry_internal::keyword
const char * keyword
Definition dylib_keytab.h:33
keytab_entry_internal::min
int min
Definition dylib_keytab.h:34
keytab_entry_internal::token
int token
Definition dylib_keytab.h:35