diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-25 09:02:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-25 09:02:43 +0100 |
commit | 2d7eeb7fc0fedc73e9fdb9ef46ee1df98d0f729e (patch) | |
tree | 22a280c4c04a6745a5e5b05d3857d21eb196d493 | |
parent | c1e2b5d01d5d01a1da1dbde5a69f2567ebd08e9a (diff) | |
download | eo_tokenizer-2d7eeb7fc0fedc73e9fdb9ef46ee1df98d0f729e.zip eo_tokenizer-2d7eeb7fc0fedc73e9fdb9ef46ee1df98d0f729e.tar.gz |
minor fixes
-rw-r--r-- | eo_tokenizer.h | 2 | ||||
-rw-r--r-- | eo_tokenizer.rl | 4 | ||||
-rw-r--r-- | main.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/eo_tokenizer.h b/eo_tokenizer.h index 3186999..5332ad6 100644 --- a/eo_tokenizer.h +++ b/eo_tokenizer.h @@ -127,7 +127,7 @@ typedef struct _eo_tokenizer } Eo_Tokenizer; -Eo_Tokenizer* eo_tokenizer_get(); +Eo_Tokenizer* eo_tokenizer_get(void); Eina_Bool eo_tokenizer_walk(Eo_Tokenizer *toknz, const char *source); diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl index a01ed32..355c524 100644 --- a/eo_tokenizer.rl +++ b/eo_tokenizer.rl @@ -52,7 +52,7 @@ _eo_tokenizer_token_get(Eo_Tokenizer *toknz, char *p) action save_fpc { toknz->saved.tok = fpc; - DBG("save[%d] %d", toknz->cs, fpc); + DBG("save[%d] %p", toknz->cs, fpc); } action show_comment { @@ -197,7 +197,7 @@ eo_tokenizer_walk(Eo_Tokenizer *toknz, const char *source) } Eo_Tokenizer* -eo_tokenizer_get() +eo_tokenizer_get(void) { Eo_Tokenizer *toknz = calloc(1, sizeof(Eo_Tokenizer)); if (!toknz) return NULL; @@ -31,7 +31,7 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - toknz = eo_tokenizer_get(fpath); + toknz = eo_tokenizer_get(); if (!toknz) { ERR("can't create eo_tokenizer"); |