diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-09-30 13:57:36 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-09-30 13:57:36 -0700 |
commit | cbe615224da57e96cfe609eb92f115e0d45f0f28 (patch) | |
tree | 76a75b5e03f8433733b4bf96ac567d10c9e053ed /tokenizer.h | |
parent | 6c70ed79ae523ea730ba29ff2e84da41a6b5e230 (diff) |
Make tok_last_type return an enum token_type instead of int
Diffstat (limited to 'tokenizer.h')
-rw-r--r-- | tokenizer.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tokenizer.h b/tokenizer.h index 4357757d..42516a1b 100644 --- a/tokenizer.h +++ b/tokenizer.h @@ -77,7 +77,7 @@ struct tokenizer_t wcstring last_token; /** Type of last token*/ - int last_type; + enum token_type last_type; /** Offset of last token*/ size_t last_pos; @@ -123,7 +123,7 @@ void tok_next(tokenizer_t *tok); /** Returns the type of the last token. Must be one of the values in the token_type enum. */ -int tok_last_type(tokenizer_t *tok); +enum token_type tok_last_type(tokenizer_t *tok); /** Returns the last token string. The string should not be freed by the caller. @@ -150,7 +150,6 @@ int tok_get_pos(tokenizer_t *tok); */ const wchar_t *tok_string(tokenizer_t *tok); - /** Returns only the first token from the specified string. This is a convenience function, used to retrieve the first token of a |