aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-01 16:32:52 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-04 11:34:45 -0700
commit8185bee4b83ce94f098cd07a360a0d78ad781c78 (patch)
tree9d93c0c617de4c25e4acd49ff8383ce2a8d84e0c /tokenizer.h
parent2e1b3325c63cd6c43a10a08acfc54d1fb29a5c03 (diff)
Lots of work towards making fish build without warnings on Mountain Lion, mostly in terms of using size_t instead of int
Diffstat (limited to 'tokenizer.h')
-rw-r--r--tokenizer.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/tokenizer.h b/tokenizer.h
index ff7c38e9..7287ccd0 100644
--- a/tokenizer.h
+++ b/tokenizer.h
@@ -79,15 +79,13 @@ struct tokenizer
/** Length of last token*/
size_t last_len;
/** Offset of last token*/
- int last_pos;
+ size_t last_pos;
/** Whether there are more tokens*/
- int has_next;
+ bool has_next;
/** Whether incomplete tokens are accepted*/
- int accept_unfinished;
+ bool accept_unfinished;
/** Whether commants should be returned*/
- int show_comments;
- /** Flag set to true of the orig_buff points to an internal string that needs to be free()d when deallocating the tokenizer. */
- int free_orig;
+ bool show_comments;
/** Type of last quote, can be either ' or ".*/
wchar_t last_quote;
/** Last error */