aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-21 22:23:48 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-21 22:23:48 -0800
commit6fc9e6f21ed8e6ebc2c6254426d1dc33f6bce636 (patch)
tree9bc04fd96159a2c86cd1b90d0b7fc80568ea8424 /tokenizer.h
parent7117c4a5ee4ebcdaa8ff692b9cc18fb87e6d8038 (diff)
Make tok_first return a wcstring instead of a wchar_t*
Diffstat (limited to 'tokenizer.h')
-rw-r--r--tokenizer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokenizer.h b/tokenizer.h
index 0ff7f10e..23a4361f 100644
--- a/tokenizer.h
+++ b/tokenizer.h
@@ -156,9 +156,9 @@ const wchar_t *tok_string(tokenizer_t *tok);
convenience function, used to retrieve the first token of a
string. This can be useful for error messages, etc.
- The string should be freed. After use.
+ On failure, returns the empty string.
*/
-wchar_t *tok_first(const wchar_t *str);
+wcstring tok_first(const wchar_t *str);
/**
Indicates whether a character can be part of a string, or is a string separator.