core: reader_read_identifier_or_number: Prepare for M2-Planet.
* src/reader.c (reader_read_identifier_or_number): Prepare for M2-Planet.
This commit is contained in:
parent
82213b960e
commit
a1eade98c6
14
src/reader.c
14
src/reader.c
|
@ -76,13 +76,15 @@ reader_read_identifier_or_number (int c)
|
||||||
int i = 0;
|
int i = 0;
|
||||||
long n = 0;
|
long n = 0;
|
||||||
int negative_p = 0;
|
int negative_p = 0;
|
||||||
if (c == '+' && isdigit (peekchar ()) != 0)
|
if (c == '+')
|
||||||
c = readchar ();
|
if (isdigit (peekchar ()) != 0)
|
||||||
else if (c == '-' && (isdigit (peekchar ()) != 0))
|
|
||||||
{
|
|
||||||
negative_p = 1;
|
|
||||||
c = readchar ();
|
c = readchar ();
|
||||||
}
|
if (c == '-')
|
||||||
|
if (isdigit (peekchar ()) != 0)
|
||||||
|
{
|
||||||
|
negative_p = 1;
|
||||||
|
c = readchar ();
|
||||||
|
}
|
||||||
while (isdigit (c) != 0)
|
while (isdigit (c) != 0)
|
||||||
{
|
{
|
||||||
g_buf[i] = c;
|
g_buf[i] = c;
|
||||||
|
|
Loading…
Reference in a new issue