/tmp/buildd/coinor-dylp-1.6.0/DyLP/src/DylpStdLib/dylib_keytab.h
Go to the documentation of this file.
00001 #ifndef _DYLIB_KEYTAB_H
00002 #define _DYLIB_KEYTAB_H
00003 
00004 /*
00005   This file is part of the support library for the Dylp LP distribution.
00006 
00007         Copyright (C) 2005 -- 2007 Lou Hafer
00008 
00009         School of Computing Science
00010         Simon Fraser University
00011         Burnaby, B.C., V5A 1S6, Canada
00012         lou@cs.sfu.ca
00013 
00014   This code is licensed under the terms of the Common Public License (CPL).
00015 */
00016 
00017 /*
00018   Data structure for keyword tables searched by find and ambig
00019   
00020   @(#)keytab.h  1.2     08/31/99
00021   svn/cvs: $Id: dylib_keytab.h 148 2007-06-09 03:15:30Z lou $
00022 */
00023 
00024 /*
00025   Field         Contents
00026   -----         --------
00027   keyword       Character string for the keyword.
00028   min           Minimum number of characters which must be matched before
00029                 cimstrcmp will report a match.
00030   token         Value returned when the keyword is matched.
00031 */
00032 
00033 typedef struct keytab_entry_internal { const char *keyword ;
00034                                        int min ;
00035                                        int token ; } keytab_entry ;
00036 
00037 
00038 /*
00039   binsrch.c
00040 */
00041 
00042 extern int find(char *word, keytab_entry keytab[], int numkeys),
00043            ambig(char *word, keytab_entry keytab[], int numkeys) ;
00044 
00045 #endif /* _DYLIB_KEYTAB_H */