commit 56b2009b8a6c2e720f4ac303ce57f0ec99dc87b8
parent d691e933bd50a2534ee0c1a3de38f4d8b34e69b4
Author: sin <sin@2f30.org>
Date: Fri, 9 May 2014 13:57:09 +0100
No need to typedef
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lexer.c b/lexer.c
@@ -5,7 +5,7 @@
#include <string.h>
#include "lexer.h"
-typedef enum {
+enum state {
State_Se,
State_Identifier,
State_Probable_Boolean,
@@ -21,7 +21,7 @@ typedef enum {
State_Dot,
State_Comment,
State_Unknown_Token,
-} state;
+};
int
delim(int c)
@@ -45,7 +45,7 @@ struct tok
gettok(struct lexerctx *ctx, const char *buf, size_t len)
{
struct tok tok;
- state state = State_Se;
+ enum state state = State_Se;
char *tmp;
if (ctx->ready == 0) {