gperf creates optimum hash table for stroke keywords
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
/* stroke keywords
|
||||
* Copyright (C) 2006 Andreas Steffen
|
||||
* Hochschule fuer Technik Rapperswil, Switzerland
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*
|
||||
* RCSID $Id: keywords.h,v 1.8 2006/04/17 10:30:27 as Exp $
|
||||
*/
|
||||
|
||||
#ifndef _STROKE_KEYWORDS_H_
|
||||
#define _STROKE_KEYWORDS_H_
|
||||
|
||||
typedef enum {
|
||||
STROKE_ADD,
|
||||
STROKE_DEL,
|
||||
STROKE_DELETE,
|
||||
STROKE_ROUTE,
|
||||
STROKE_UP,
|
||||
STROKE_DOWN,
|
||||
STROKE_LOGTYPE,
|
||||
STROKE_LOGLEVEL,
|
||||
STROKE_STATUS,
|
||||
STROKE_STATUSALL,
|
||||
STROKE_LIST_CERTS,
|
||||
STROKE_LIST_CACERTS,
|
||||
STROKE_LIST_CRLS,
|
||||
STROKE_LIST_ALL
|
||||
} stroke_keyword_t;
|
||||
|
||||
#define STROKE_LIST_FIRST STROKE_LIST_CERTS
|
||||
|
||||
typedef struct stroke_token stroke_token_t;
|
||||
|
||||
extern const stroke_token_t* in_word_set(register const char *str, register unsigned int len);
|
||||
|
||||
#endif /* _STROKE_KEYWORDS_H_ */
|
||||
|
||||
Reference in New Issue
Block a user