Fix for bug 4695:

Modify ProtoField_tostring() to ProtoField__tostring() 
and clean up description.

svn path=/trunk/; revision=32517
This commit is contained in:
Jaap Keuter 2010-04-19 18:48:12 +00:00
parent 17b57d46d3
commit b1ddbed608
1 changed files with 3 additions and 3 deletions

View File

@ -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 }
};