diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-29 14:12:30 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-29 14:12:30 -0200 |
| commit | 05afee0f50f64b64dbb4c0614ccf737ffdc06ab6 (patch) | |
| tree | 76ddccce1152f3bb51ef80b801f6df4bf47c1525 /lbaselib.c | |
| parent | 351a446ec55d0e4a7520791cc4b6ff6097739e18 (diff) | |
| download | lua-05afee0f50f64b64dbb4c0614ccf737ffdc06ab6.tar.gz lua-05afee0f50f64b64dbb4c0614ccf737ffdc06ab6.tar.bz2 lua-05afee0f50f64b64dbb4c0614ccf737ffdc06ab6.zip | |
definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror'
moved to 'lauxlib.h' (they do not need to be stable or configurable) +
prefixes changed from 'luai_' to 'lua_' (they are not part of the core)
Diffstat (limited to 'lbaselib.c')
| -rw-r--r-- | lbaselib.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbaselib.c,v 1.303 2014/10/17 19:17:55 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.304 2014/10/25 11:50:46 roberto Exp roberto $ |
| 3 | ** Basic library | 3 | ** Basic library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -33,11 +33,11 @@ static int luaB_print (lua_State *L) { | |||
| 33 | s = lua_tolstring(L, -1, &l); /* get result */ | 33 | s = lua_tolstring(L, -1, &l); /* get result */ |
| 34 | if (s == NULL) | 34 | if (s == NULL) |
| 35 | return luaL_error(L, "'tostring' must return a string to 'print'"); | 35 | return luaL_error(L, "'tostring' must return a string to 'print'"); |
| 36 | if (i>1) luai_writestring("\t", 1); | 36 | if (i>1) lua_writestring("\t", 1); |
| 37 | luai_writestring(s, l); | 37 | lua_writestring(s, l); |
| 38 | lua_pop(L, 1); /* pop result */ | 38 | lua_pop(L, 1); /* pop result */ |
| 39 | } | 39 | } |
| 40 | luai_writeline(); | 40 | lua_writeline(); |
| 41 | return 0; | 41 | return 0; |
| 42 | } | 42 | } |
| 43 | 43 | ||
