diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-01-27 16:09:55 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-01-27 16:09:55 -0300 |
| commit | c4e7cdb541d89142056927ebdfd8f97017d38f45 (patch) | |
| tree | 1e356b5b4eed75d86050bab3f12026d5a70697b6 /lapi.c | |
| parent | 7d7ae8781e64e2b3b212d5c7b7c1b98b694df5ef (diff) | |
| download | lua-c4e7cdb541d89142056927ebdfd8f97017d38f45.tar.gz lua-c4e7cdb541d89142056927ebdfd8f97017d38f45.tar.bz2 lua-c4e7cdb541d89142056927ebdfd8f97017d38f45.zip | |
Renaming two new functions
'lua_numbertostrbuff' -> 'lua_numbertocstring'
'lua_pushextlstring' -> 'lua_pushexternalstring'
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -366,7 +366,7 @@ LUA_API int lua_compare (lua_State *L, int index1, int index2, int op) { | |||
| 366 | } | 366 | } |
| 367 | 367 | ||
| 368 | 368 | ||
| 369 | LUA_API unsigned (lua_numbertostrbuff) (lua_State *L, int idx, char *buff) { | 369 | LUA_API unsigned (lua_numbertocstring) (lua_State *L, int idx, char *buff) { |
| 370 | const TValue *o = index2value(L, idx); | 370 | const TValue *o = index2value(L, idx); |
| 371 | if (ttisnumber(o)) { | 371 | if (ttisnumber(o)) { |
| 372 | unsigned len = luaO_tostringbuff(o, buff); | 372 | unsigned len = luaO_tostringbuff(o, buff); |
| @@ -546,7 +546,7 @@ LUA_API const char *lua_pushlstring (lua_State *L, const char *s, size_t len) { | |||
| 546 | } | 546 | } |
| 547 | 547 | ||
| 548 | 548 | ||
| 549 | LUA_API const char *lua_pushextlstring (lua_State *L, | 549 | LUA_API const char *lua_pushexternalstring (lua_State *L, |
| 550 | const char *s, size_t len, lua_Alloc falloc, void *ud) { | 550 | const char *s, size_t len, lua_Alloc falloc, void *ud) { |
| 551 | TString *ts; | 551 | TString *ts; |
| 552 | lua_lock(L); | 552 | lua_lock(L); |
