Fix to restore an optimization from parse_util_get_line_from_offset in a more thread-safe way

This commit is contained in:
ridiculousfish
2012-08-04 17:44:14 -07:00
parent 25c6671a87
commit 682353f9cc
5 changed files with 68 additions and 21 deletions

View File

@@ -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;