From 196a7c9d188304cd6b189b1bcf4e2c088fcf3434 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 23 Nov 2014 22:52:15 -0800 Subject: [PATCH] Add a helpful comment warning of a nonsense result from tok_last --- tokenizer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokenizer.h b/tokenizer.h index 525afb464..749337b48 100644 --- a/tokenizer.h +++ b/tokenizer.h @@ -122,7 +122,7 @@ void tok_next(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. + Returns the last token string. The string should not be freed by the caller. This returns nonsense results for some token types, like TOK_END. */ const wchar_t *tok_last(tokenizer_t *tok);