aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_util.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 /parse_util.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 'parse_util.h')
-rw-r--r--parse_util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse_util.h b/parse_util.h
index a3ffc193..e533fb89 100644
--- a/parse_util.h
+++ b/parse_util.h
@@ -40,7 +40,7 @@ int parse_util_locate_cmdsubst( const wchar_t *in,
\param b the end of the searched string
*/
void parse_util_cmdsubst_extent( const wchar_t *buff,
- int cursor_pos,
+ size_t cursor_pos,
const wchar_t **a,
const wchar_t **b );
@@ -84,7 +84,7 @@ void parse_util_job_extent( const wchar_t *buff,
\param prev_end the end of the token before the current token
*/
void parse_util_token_extent( const wchar_t *buff,
- int cursor_pos,
+ size_t cursor_pos,
const wchar_t **tok_begin,
const wchar_t **tok_end,
const wchar_t **prev_begin,
@@ -104,13 +104,13 @@ int parse_util_get_line_from_offset( const wcstring &str, int pos );
/**
Get the offset of the first character on the specified line
*/
-int parse_util_get_offset_from_line( const wcstring &str, int line );
+size_t parse_util_get_offset_from_line( const wcstring &str, int line );
/**
Return the total offset of the buffer for the cursor position nearest to the specified poition
*/
-int parse_util_get_offset( const wcstring &str, int line, int line_offset );
+size_t parse_util_get_offset( const wcstring &str, int line, long line_offset );
/**
Set the argv environment variable to the specified null-terminated