lua

A copy of the Lua development repository
Log | Files | Refs | README

commit ec0fc1a13bf6082659efeedbdf50b5cc1e69da3d
parent c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri, 18 Dec 2009 13:32:12 -0200

missing parentheses around 'lua_version' + moving typdef's before
the extra include

Diffstat:
Mlua.h | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/lua.h b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.253 2009/12/11 13:40:44 roberto Exp roberto $ +** $Id: lua.h,v 1.254 2009/12/17 16:20:01 roberto Exp roberto $ ** Lua - A Scripting Language ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) ** See Copyright Notice at the end of this file @@ -95,6 +95,14 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); #define LUA_RIDX_LAST LUA_RIDX_CPCALL +/* type of numbers in Lua */ +typedef LUA_NUMBER lua_Number; + + +/* type for integer functions */ +typedef LUA_INTEGER lua_Integer; + + /* ** generic extra include file @@ -104,14 +112,6 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); #endif -/* type of numbers in Lua */ -typedef LUA_NUMBER lua_Number; - - -/* type for integer functions */ -typedef LUA_INTEGER lua_Integer; - - /* ** state manipulation @@ -123,7 +123,7 @@ LUA_API lua_State *(lua_newthread) (lua_State *L); LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); -LUA_API const lua_Number *lua_version (lua_State *L); +LUA_API const lua_Number *(lua_version) (lua_State *L); /*