build: ignore lvalue

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-02 16:52:50 +02:00
parent ad7e0ab9ec
commit 8e4873b3aa
2 changed files with 4 additions and 3 deletions

View File

@ -13,14 +13,15 @@ function string.comment_translate(s)
local lua_comment = ""; local lua_comment = "";
nparam = 0; nparam = 0;
for line in s:gmatch("[^\r\n]+") do for line in s:gmatch("[^\r\n]+") do
if not line:match("\\lvalue") then
line = line:gsub("/%*%*", "---") line = line:gsub("/%*%*", "---")
line = line:gsub("^.*%*", "--") line = line:gsub("^.*%*", "--")
line = line:gsub("\\lvalue", "")
line = line:gsub("\\(lparam)", string.replace_param) line = line:gsub("\\(lparam)", string.replace_param)
line = line:gsub("\\lreturn", "@return") line = line:gsub("\\lreturn", "@return")
line = line:gsub("\\lfield", "@field") line = line:gsub("\\lfield", "@field")
lua_comment = lua_comment .. line .. "\n" lua_comment = lua_comment .. line .. "\n"
end end
end
-- remove last \n -- remove last \n
lua_comment = lua_comment:sub(1, #lua_comment - 1) lua_comment = lua_comment:sub(1, #lua_comment - 1)
return lua_comment return lua_comment

View File

@ -350,7 +350,7 @@ luaA_keybinding_new(lua_State *L)
* \param L The Lua VM state. * \param L The Lua VM state.
* *
* \luastack * \luastack
* \lparam A keybinding. * \lvalue A keybinding.
*/ */
static int static int
luaA_keybinding_add(lua_State *L) luaA_keybinding_add(lua_State *L)
@ -364,7 +364,7 @@ luaA_keybinding_add(lua_State *L)
* \param L The Lua VM state. * \param L The Lua VM state.
* *
* \luastack * \luastack
* \lparam A keybinding. * \lvalue A keybinding.
*/ */
static int static int
luaA_keybinding_remove(lua_State *L) luaA_keybinding_remove(lua_State *L)