🔨 removed unget() function
This commit is contained in:
parent
8d393b5eff
commit
c32d2e5b3c
1 changed files with 2 additions and 8 deletions
10
src/json.hpp
10
src/json.hpp
|
@ -11664,7 +11664,8 @@ scan_number_any2:
|
||||||
|
|
||||||
scan_number_done:
|
scan_number_done:
|
||||||
// unget the character after the number
|
// unget the character after the number
|
||||||
unget();
|
--chars_read;
|
||||||
|
next_unget = true;
|
||||||
|
|
||||||
// terminate token
|
// terminate token
|
||||||
add('\0');
|
add('\0');
|
||||||
|
@ -11768,13 +11769,6 @@ scan_number_done:
|
||||||
: (current = ia->get_character());
|
: (current = ia->get_character());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// unget a character to the input
|
|
||||||
void unget() noexcept
|
|
||||||
{
|
|
||||||
--chars_read;
|
|
||||||
next_unget = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// add a character to yytext
|
/// add a character to yytext
|
||||||
void add(int c)
|
void add(int c)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue