enhanced qse_awk_rtx_strtonum() to better determine the input record type.

This commit is contained in:
2009-06-12 20:59:59 +00:00
parent 9ee15f2e0a
commit d6899c0b58
4 changed files with 49 additions and 28 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: Awk.cpp 189 2009-06-07 06:23:53Z hyunghwan.chung $
* $Id: Awk.cpp 197 2009-06-12 02:59:59Z hyunghwan.chung $
*
Copyright 2006-2009 Chung, Hyung-Hwan.
@ -383,7 +383,8 @@ int Awk::Argument::init (const char_t* str, size_t len)
this->str.ptr = (char_t*)str;
this->str.len = len;
if (qse_awk_rtx_strtonum (this->run->run,
if (qse_awk_rtx_strtonum (
this->run->run, 0,
str, len, &this->inum, &this->rnum) == 0)
{
this->rnum = (real_t)this->inum;