aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-04 17:44:14 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-04 17:44:14 -0700
commit682353f9cc1d2e1eb305cbb343ffec9523d846ba (patch)
tree82ef0a5abd869f2533f4f4dca43fdc64a0867a8f /parser.h
parent25c6671a8744a2c12c71f60ad3070ef7637781a8 (diff)
Fix to restore an optimization from parse_util_get_line_from_offset in a more thread-safe way
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 8ff8b306..b74a239c 100644
--- a/parser.h
+++ b/parser.h
@@ -392,6 +392,9 @@ class parser_t {
/** Returns the current line number */
int get_lineno() const;
+
+ /** Returns the line number for the character at the given index */
+ int line_number_of_character_at_offset(size_t idx) const;
/** Returns the current position in the latest string of the tokenizer. */
int get_pos() const;