starter: Move kw_entry_t definition

This commit is contained in:
Tobias Brunner
2014-06-19 14:00:49 +02:00
parent 8839796c3e
commit 640c75bb2e
2 changed files with 10 additions and 9 deletions
-7
View File
@@ -17,13 +17,6 @@
#include "keywords.h" #include "keywords.h"
typedef struct kw_entry kw_entry_t;
struct kw_entry {
char *name;
kw_token_t token;
};
typedef struct kw_list kw_list_t; typedef struct kw_list kw_list_t;
struct kw_list { struct kw_list {
+10 -2
View File
@@ -16,7 +16,10 @@
#ifndef _KEYWORDS_H_ #ifndef _KEYWORDS_H_
#define _KEYWORDS_H_ #define _KEYWORDS_H_
typedef enum { typedef enum kw_token_t kw_token_t;
typedef struct kw_entry_t kw_entry_t;
enum kw_token_t {
/* config setup keywords */ /* config setup keywords */
KW_CHARONDEBUG, KW_CHARONDEBUG,
KW_UNIQUEIDS, KW_UNIQUEIDS,
@@ -185,6 +188,11 @@ typedef enum {
KW_ALSO, KW_ALSO,
KW_AUTO, KW_AUTO,
} kw_token_t; };
struct kw_entry_t {
char *name;
kw_token_t token;
};
#endif /* _KEYWORDS_H_ */ #endif /* _KEYWORDS_H_ */