00001 #ifndef _DYLIB_KEYTAB_H 00002 #define _DYLIB_KEYTAB_H 00003 00004 /* 00005 This file is part of the support library for the OsiDylp LP distribution. 00006 00007 Copyright (C) 2005 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 program is free software; you can redistribute it and/or modify it 00015 under the terms of the GNU General Public License as published by the Free 00016 Software Foundation; either version 2 of the License, or (at your option) 00017 any later version. 00018 00019 This program is distributed in the hope that it will be useful, but WITHOUT 00020 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00021 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00022 more details. 00023 00024 You should have received a copy of the GNU General Public License along 00025 with this program; if not, write to the Free Software Foundation, Inc., 00026 51 Franklin St., Fifth Floor, Boston, MA 02110-1301 USA 00027 */ 00028 00029 /* 00030 Data structure for keyword tables searched by find and ambig 00031 00032 @(#)keytab.h 1.2 08/31/99 00033 svn/cvs: $Id: dylib_keytab.h 71 2006-06-09 04:21:15Z andreasw $ 00034 */ 00035 00036 /* 00037 Field Contents 00038 ----- -------- 00039 keyword Character string for the keyword. 00040 min Minimum number of characters which must be matched before 00041 cimstrcmp will report a match. 00042 token Value returned when the keyword is matched. 00043 */ 00044 00045 typedef struct keytab_entry_internal { const char *keyword ; 00046 int min ; 00047 int token ; } keytab_entry ; 00048 00049 00050 /* 00051 binsrch.c 00052 */ 00053 00054 extern int find(char *word, keytab_entry keytab[], int numkeys), 00055 ambig(char *word, keytab_entry keytab[], int numkeys) ; 00056 00057 #endif /* _DYLIB_KEYTAB_H */