aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-24 09:32:15 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-24 09:33:30 -0800
commit90e979d0d9a94601fc9a0c1e5ad785ede1e92381 (patch)
treea2e80a09c0e85f6d6d55362b5cc7dace1b9f427a /tokenizer.h
parent8232857d0785b5b2db8884d11680de5c2fe9b857 (diff)
Added some const correctness
Diffstat (limited to 'tokenizer.h')
-rw-r--r--tokenizer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tokenizer.h b/tokenizer.h
index 731f49bf..ff7c38e9 100644
--- a/tokenizer.h
+++ b/tokenizer.h
@@ -68,9 +68,9 @@ enum tokenizer_error
struct tokenizer
{
/** A pointer into the original string, showing where the next token begins */
- wchar_t *buff;
+ const wchar_t *buff;
/** A copy of the original string */
- wchar_t *orig_buff;
+ const wchar_t *orig_buff;
/** A pointer to the last token*/
wchar_t *last;
@@ -150,7 +150,7 @@ void tok_destroy( tokenizer *tok );
/**
Returns the original string to tokenizer
*/
-wchar_t *tok_string( tokenizer *tok );
+const wchar_t *tok_string( tokenizer *tok );
/**