From 8e4873b3aa62e3ac19dcbcca86f8941343279e78 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 2 Sep 2008 16:52:50 +0200 Subject: [PATCH] build: ignore lvalue Signed-off-by: Julien Danjou --- build-utils/fake-lua-src.lua | 3 ++- keybinding.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build-utils/fake-lua-src.lua b/build-utils/fake-lua-src.lua index ea900381..faaf6544 100755 --- a/build-utils/fake-lua-src.lua +++ b/build-utils/fake-lua-src.lua @@ -13,13 +13,14 @@ function string.comment_translate(s) local lua_comment = ""; nparam = 0; for line in s:gmatch("[^\r\n]+") do + if not line:match("\\lvalue") then line = line:gsub("/%*%*", "---") line = line:gsub("^.*%*", "--") - line = line:gsub("\\lvalue", "") line = line:gsub("\\(lparam)", string.replace_param) line = line:gsub("\\lreturn", "@return") line = line:gsub("\\lfield", "@field") lua_comment = lua_comment .. line .. "\n" + end end -- remove last \n lua_comment = lua_comment:sub(1, #lua_comment - 1) diff --git a/keybinding.c b/keybinding.c index 02673d68..005728a7 100644 --- a/keybinding.c +++ b/keybinding.c @@ -350,7 +350,7 @@ luaA_keybinding_new(lua_State *L) * \param L The Lua VM state. * * \luastack - * \lparam A keybinding. + * \lvalue A keybinding. */ static int luaA_keybinding_add(lua_State *L) @@ -364,7 +364,7 @@ luaA_keybinding_add(lua_State *L) * \param L The Lua VM state. * * \luastack - * \lparam A keybinding. + * \lvalue A keybinding. */ static int luaA_keybinding_remove(lua_State *L)