diff options
author | Michael Mann <mmann78@netscape.net> | 2013-02-25 22:05:28 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-02-25 22:05:28 +0000 |
commit | 2c7844cc69aec2c3decbb1802598d17f1e03b1d3 (patch) | |
tree | 39d458825fde882b1337c3962e976adc7b8764cc /epan/wslua/wslua_gui.c | |
parent | 6dbd0b68e47b4b029be1299a0f5c7cdbb39cd8e4 (diff) |
Fix typos/errors and make Lua API more consistent.
From Hadriel Kaplan, bug 8393 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8393)
svn path=/trunk/; revision=47885
Diffstat (limited to 'epan/wslua/wslua_gui.c')
-rw-r--r-- | epan/wslua/wslua_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/wslua_gui.c b/epan/wslua/wslua_gui.c index a5c10c356f..73925859a4 100644 --- a/epan/wslua/wslua_gui.c +++ b/epan/wslua/wslua_gui.c @@ -369,6 +369,7 @@ static int ProgDlg__tostring(lua_State* L) { return 0; } +/* Gets registered as metamethod automatically by WSLUA_REGISTER_CLASS/META */ static int ProgDlg__gc(lua_State* L) { ProgDlg pd = checkProgDlg(L,1); @@ -396,7 +397,6 @@ WSLUA_METHODS ProgDlg_methods[] = { WSLUA_META ProgDlg_meta[] = { {"__tostring", ProgDlg__tostring}, - {"__gc", ProgDlg__gc}, {0, 0} }; @@ -578,6 +578,7 @@ WSLUA_METHOD TextWindow_get_text(lua_State* L) { /* Get the text of the window * WSLUA_RETURN(1); /* The TextWindow's text. */ } +/* Gets registered as metamethod automatically by WSLUA_REGISTER_CLASS/META */ static int TextWindow__gc(lua_State* L) { TextWindow tw = checkTextWindow(L,1); @@ -710,7 +711,6 @@ WSLUA_METHODS TextWindow_methods[] = { WSLUA_META TextWindow_meta[] = { {"__tostring", TextWindow_get_text}, - {"__gc", TextWindow__gc}, {0, 0} }; |