diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2010-04-19 18:48:12 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2010-04-19 18:48:12 +0000 |
commit | b1ddbed60897424a535d02503e2928357ace8180 (patch) | |
tree | b512388ed1f1661f296f0474613cb41db6d720a4 /epan/wslua | |
parent | 17b57d46d37583b5bbce1a34e6d6418d5d43a72f (diff) |
Fix for bug 4695:
Modify ProtoField_tostring() to ProtoField__tostring()
and clean up description.
svn path=/trunk/; revision=32517
Diffstat (limited to 'epan/wslua')
-rw-r--r-- | epan/wslua/wslua_proto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c index 2e32f9e715..3b36a49d36 100644 --- a/epan/wslua/wslua_proto.c +++ b/epan/wslua/wslua_proto.c @@ -855,8 +855,8 @@ PROTOFIELD_OTHER(oid,FT_OID) PROTOFIELD_OTHER(bool,FT_BOOLEAN) -WSLUA_METAMETHOD ProtoField_tostring(lua_State* L) { - /* Returns a string w/ info about a protofiled (for debugging purposes) */ +WSLUA_METAMETHOD ProtoField__tostring(lua_State* L) { + /* Returns a string with info about a protofield (for debugging purposes) */ ProtoField f = checkProtoField(L,1); gchar* s = ep_strdup_printf("ProtoField(%i): %s %s %s %s %p %.8x %s",f->hfid,f->name,f->abbr,ftenum_to_string(f->type),base_to_string(f->base),(void *)f->vs,f->mask,f->blob); @@ -920,8 +920,8 @@ static const luaL_reg ProtoField_methods[] = { }; static const luaL_reg ProtoField_meta[] = { + {"__tostring", ProtoField__tostring }, {"__gc", ProtoField_gc }, - {"__tostring", ProtoField_tostring }, { NULL, NULL } }; |