diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-12-03 15:20:50 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-12-03 15:20:50 -0200 |
commit | ac3afc7cd464b3595b51f20690fcc3594286889b (patch) | |
tree | 139c0165925db273addacd53d8f3ba0597c52bb8 /lua.c | |
parent | 350cc4bcb67e652fafbc9ef591bb79333703abee (diff) | |
download | lua-ac3afc7cd464b3595b51f20690fcc3594286889b.tar.gz lua-ac3afc7cd464b3595b51f20690fcc3594286889b.tar.bz2 lua-ac3afc7cd464b3595b51f20690fcc3594286889b.zip |
'printf' replaced by 'luai_writestring'
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
187 | static void print_version (void) { | 187 | static 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 | ||