diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-25 22:55:30 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-25 22:55:30 +0100 |
commit | 7661d2dc74715fac839a5ba3b920851747f8cac1 (patch) | |
tree | 97ab4e7590a8a7e236d04ce2c48743472b62132f | |
parent | 30ac2776f48525c53655988d7478915fb9019748 (diff) | |
download | eo_tokenizer-7661d2dc74715fac839a5ba3b920851747f8cac1.zip eo_tokenizer-7661d2dc74715fac839a5ba3b920851747f8cac1.tar.gz |
fix some DBG and ERR messages
-rw-r--r-- | eo_tokenizer.rl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl index aaccfdf..e8b0250 100644 --- a/eo_tokenizer.rl +++ b/eo_tokenizer.rl @@ -61,12 +61,12 @@ _eo_tokenizer_class_get(Eo_Tokenizer *toknz, char *p) action save_line { toknz->saved.line = toknz->current_line; - DBG("save[%d] %d", toknz->cs, toknz->current_line); + DBG("save line[%d] %d", toknz->cs, toknz->current_line); } action save_fpc { toknz->saved.tok = fpc; - DBG("save[%d] %p", toknz->cs, fpc); + DBG("save token[%d] %p %c", toknz->cs, fpc, *fpc); } action show_comment { @@ -226,7 +226,7 @@ eo_tokenizer_walk(Eo_Tokenizer *toknz, const char *source) if ( toknz->cs == %%{ write error; }%% ) { - ERR("wrong terminatison"); + ERR("wrong termination"); break; } |