aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_gui.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-01-27 14:36:46 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-01-27 14:36:46 +0000
commitb09f8fcff58dbffb276e80599d6acfea184c41c7 (patch)
tree9bf53c0ca4d9728e3a46b9afb97b2494cdae602e /epan/wslua/wslua_gui.c
parentb28ca9c930d6f2945794612f7629fcacaa69a496 (diff)
Corrected some defines. Use defines when appropriate.
Document last argument to DissectorTable.new(). svn path=/trunk/; revision=27309
Diffstat (limited to 'epan/wslua/wslua_gui.c')
-rw-r--r--epan/wslua/wslua_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/wslua/wslua_gui.c b/epan/wslua/wslua_gui.c
index 73480efea7..79b4bbeef7 100644
--- a/epan/wslua/wslua_gui.c
+++ b/epan/wslua/wslua_gui.c
@@ -447,7 +447,7 @@ WSLUA_METHOD TextWindow_set(lua_State* L) { /* Sets the text. */
#define WSLUA_ARG_TextWindow_set_TEXT 2 /* The text to be used. */
TextWindow tw = checkTextWindow(L,1);
- const gchar* text = luaL_checkstring(L,2);
+ const gchar* text = luaL_checkstring(L,WSLUA_ARG_TextWindow_set_TEXT);
if (!tw)
WSLUA_ERROR(TextWindow_set,"cannot be called for something not a TextWindow");
@@ -466,7 +466,7 @@ WSLUA_METHOD TextWindow_set(lua_State* L) { /* Sets the text. */
WSLUA_METHOD TextWindow_append(lua_State* L) { /* Appends text */
#define WSLUA_ARG_TextWindow_append_TEXT 2 /* The text to be appended */
TextWindow tw = checkTextWindow(L,1);
- const gchar* text = luaL_checkstring(L,2);
+ const gchar* text = luaL_checkstring(L,WSLUA_ARG_TextWindow_append_TEXT);
if (!tw)
WSLUA_ERROR(TextWindow_append,"cannot be called for something not a TextWindow");
@@ -485,7 +485,7 @@ WSLUA_METHOD TextWindow_append(lua_State* L) { /* Appends text */
WSLUA_METHOD TextWindow_prepend(lua_State* L) { /* Prepends text */
#define WSLUA_ARG_TextWindow_prepend_TEXT 2 /* The text to be appended */
TextWindow tw = checkTextWindow(L,1);
- const gchar* text = luaL_checkstring(L,2);
+ const gchar* text = luaL_checkstring(L,WSLUA_ARG_TextWindow_prepend_TEXT);
if (!tw)
WSLUA_ERROR(TextWindow_prepend,"cannot be called for something not a TextWindow");
@@ -552,7 +552,7 @@ WSLUA_METHOD TextWindow_set_editable(lua_State* L) { /* Make this window editabl
#define WSLUA_OPTARG_TextWindow_set_editable_EDITABLE 2 /* A boolean flag, defaults to true */
TextWindow tw = checkTextWindow(L,1);
- gboolean editable = wslua_optbool(L,2,TRUE);
+ gboolean editable = wslua_optbool(L,WSLUA_OPTARG_TextWindow_set_editable_EDITABLE,TRUE);
if (!tw)
WSLUA_ERROR(TextWindow_set_editable,"cannot be called for something not a TextWindow");