aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-12-03 15:20:50 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-12-03 15:20:50 -0200
commitac3afc7cd464b3595b51f20690fcc3594286889b (patch)
tree139c0165925db273addacd53d8f3ba0597c52bb8 /lua.c
parent350cc4bcb67e652fafbc9ef591bb79333703abee (diff)
downloadlua-ac3afc7cd464b3595b51f20690fcc3594286889b.tar.gz
lua-ac3afc7cd464b3595b51f20690fcc3594286889b.tar.bz2
lua-ac3afc7cd464b3595b51f20690fcc3594286889b.zip
'printf' replaced by 'luai_writestring'
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index 7d1d300d..efb4ee2a 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.193 2010/10/18 16:06:33 roberto Exp roberto $ 2** $Id: lua.c,v 1.194 2010/10/25 19:01:37 roberto Exp roberto $
3** Lua stand-alone interpreter 3** Lua stand-alone interpreter
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -185,7 +185,7 @@ static int docall (lua_State *L, int narg, int nres) {
185 185
186 186
187static void print_version (void) { 187static void print_version (void) {
188 printf("%s\n", LUA_COPYRIGHT); 188 luai_writestring(LUA_COPYRIGHT "\n", sizeof(LUA_COPYRIGHT) + 1);
189} 189}
190 190
191 191