Changeset 28

Show
Ignore:
Timestamp:
12/22/05 16:40:35 (3 years ago)
Author:
clayasaurus
Message:

changed lua funcs from alias to typedef

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lua/README.txt

    r23 r28  
    33Lua bindings for the D programming language 
    44 
    5 Check the derelict forums for the derelict lua bindings, coming 'anytime soon now' 
     5Check the Derelict forums for a Derelictized version of the lua bindings.  
  • trunk/lua/lauxlib.d

    r23 r28  
    1818  const char *name; 
    1919  lua_CFunction func; 
    20 }; 
     20} 
    2121//alias luaL_reg luaL_reg; 
    2222 
  • trunk/lua/lua.d

    r17 r28  
    4646 
    4747extern (C) { 
    48 struct lua_State
     48struct lua_State
    4949//alias lua_State lua_State; 
    5050 
    51  
    52 alias int (*lua_CFunction) (lua_State *L); 
    53  
    54  
    55  
    56  
    57  
    58 alias const char * (*lua_Chunkreader) (lua_State *L, void *ud, size_t *sz); 
    59  
    60 alias int (*lua_Chunkwriter) (lua_State *L, /*const*/ void* p, 
     51typedef int (*lua_CFunction) (lua_State *L); 
     52 
     53// the compiler tells me so (alias lua.lua.lua_Chunkreader cannot be const) 
     54typedef /*const*/ char * (*lua_Chunkreader) (lua_State *L, void *ud, size_t *sz); 
     55 
     56typedef int (*lua_Chunkwriter) (lua_State *L, /*const*/ void* p, 
    6157                                size_t sz, void* ud); 
    6258          
     
    409405const int LUA_MASKCOUNT =   (1 << LUA_HOOKCOUNT); 
    410406 
    411 alias void (*lua_Hook) (lua_State *L, lua_Debug *ar); 
     407typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); 
    412408 
    413409 
  • trunk/lua/lualib.d

    r17 r28  
    3131const char[] LUA_DBLIBNAME  =  "debug"; 
    3232 
    33 /*LUA_API*/ int luaopen_base (lua_State *L); 
     33/*LUA_API*/ int luaopen_base (lua_State * L); 
    3434 
    3535