diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-04 17:44:14 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-04 17:44:14 -0700 |
commit | 682353f9cc1d2e1eb305cbb343ffec9523d846ba (patch) | |
tree | 82ef0a5abd869f2533f4f4dca43fdc64a0867a8f /parser.h | |
parent | 25c6671a8744a2c12c71f60ad3070ef7637781a8 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |