summaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-15 11:27:40 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-15 11:27:40 -0300
commit89602bf7476c6ecf04cc0e0125b9664dc15ebb08 (patch)
tree1daf1062ad89a23286dca8278b323f54fddcff17 /liolib.c
parent56d45378796b881b638671655164a16bb8ad8a57 (diff)
downloadlua-89602bf7476c6ecf04cc0e0125b9664dc15ebb08.tar.gz
lua-89602bf7476c6ecf04cc0e0125b9664dc15ebb08.tar.bz2
lua-89602bf7476c6ecf04cc0e0125b9664dc15ebb08.zip
'lua_strtonum' -> 'lua_stringtonum'
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/liolib.c b/liolib.c
index a1408550..cb172af8 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.130 2014/10/01 16:05:06 roberto Exp roberto $ 2** $Id: liolib.c,v 2.131 2014/10/03 12:54:57 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -425,7 +425,7 @@ static int readdigits (RN *rn, int hex) {
425 425
426/* 426/*
427** Read a number: first reads a valid prefix of a numeral into a buffer. 427** Read a number: first reads a valid prefix of a numeral into a buffer.
428** Then it calls 'lua_strtonum' to check whether the format is correct 428** Then it calls 'lua_stringtonum' to check whether the format is correct
429** and to convert it to a Lua number 429** and to convert it to a Lua number
430*/ 430*/
431static int read_number (lua_State *L, FILE *f) { 431static int read_number (lua_State *L, FILE *f) {
@@ -452,7 +452,7 @@ static int read_number (lua_State *L, FILE *f) {
452 ungetc(rn.c, rn.f); /* unread look-ahead char */ 452 ungetc(rn.c, rn.f); /* unread look-ahead char */
453 l_unlockfile(rn.f); 453 l_unlockfile(rn.f);
454 rn.buff[rn.n] = '\0'; /* finish string */ 454 rn.buff[rn.n] = '\0'; /* finish string */
455 if (lua_strtonum(L, rn.buff)) /* is this a valid number? */ 455 if (lua_stringtonum(L, rn.buff)) /* is this a valid number? */
456 return 1; /* ok */ 456 return 1; /* ok */
457 else { /* invalid format */ 457 else { /* invalid format */
458 lua_pushnil(L); /* "result" to be removed */ 458 lua_pushnil(L); /* "result" to be removed */