aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_field.c
AgeCommit message (Collapse)AuthorFilesLines
2008-11-11Signal error on field values that cannot be safely represented as strings ↵Balint Reczey1-5/+15
instead of crashing. This fixes bug 2845. svn path=/trunk/; revision=26749
2008-09-16Adds 64 bit integer handling to Lua interface.Balint Reczey1-6/+11
Fixes bug 2750. svn path=/trunk/; revision=26216
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-07-26From Balint ReczeyLuis Ontanon1-1/+2
Fix for https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2453 The patch fixes the problem by extending the original "outstanding stuff" approach. Now the pointer itself won't be NULLified, instead we track the pointers with their expiry state in structs in the outstanding_stuff list. The Lua objects refers to those structs instead of the actual pointers and checks the expiry state of the pointers before accessing them. The pointers are marked expired when the dissection of the frame is finished and the allocated struct is freed by Lua's garbage collector. If the garbage collector hits the struct when it holds a not expired pointer, it marks it as expired (that means we don't have any object in Lua referring to the pointer) and the struct will be freed at the end of the dissection of the frame. this is for the 1.0 branch svn path=/trunk/; revision=25845
2008-05-11g_string_sprintf --> g_string_printf and g_string_sprintfa --> ↵Bill Meier1-1/+1
g_string_append_printf svn path=/trunk/; revision=25276
2008-04-25From: Márton Németh:Jaap Keuter1-4/+4
The luaL_reg structure consists of two pointers: char* and a pointer to a function. The last entry should also reflect this: it should be { NULL, NULL } instead of { 0, 0 }. svn path=/trunk/; revision=25175
2008-04-12From Marton Nemeth (bug 2447):Stig Bjørlykke1-1/+1
In help the not all of the following chapters begins with uppercase: 10.4.1. saving capture files 10.4.2. obtaining dissection data 10.4.3. GUI support 10.4.4. post-dissection packet analysis 10.4.5. obtaining packet information 10.4.6. functions for writing dissectors 10.4.7. adding information to the dissection tree 10.4.8. functions for handling packet data 10.4.9. Utility Functions svn path=/trunk/; revision=24933
2007-07-21Fix documentation commentsLuis Ontanon1-3/+9
svn path=/trunk/; revision=22373
2007-03-08fix Bug 1370Luis Ontanon1-1/+7
LUA function all_field_infos() causes wire shark to terminate. svn path=/trunk/; revision=21004
2007-01-18Add separate union entries to fvalue.value for signed and unsignedMartin Mathieson1-1/+3
32-bit numbers. Separate signed and unsigned accessors have been added and used where appropriate. Definitely not for 0.99.5. svn path=/trunk/; revision=20472
2006-10-25Attempt to get compilation working under Windows.Gerald Combs1-4/+4
svn path=/trunk/; revision=19677
2006-10-24Improve the documentation generatorsLuis Ontanon1-18/+15
add some docs. svn path=/trunk/; revision=19671
2006-10-18Add module information for generated docsLuis Ontanon1-1/+3
svn path=/trunk/; revision=19595
2006-10-17Several changes:Luis Ontanon1-1/+1
- do not #include a c code file in wslua_register.c compile a separate boject - add the console and evaluate windows - add some useful vars to the lua environment - some cleanup - add the dtd generator code (currently disabled) svn path=/trunk/; revision=19579
2006-10-04- wslua_util.c: replace Lua's loadfile and dofile for versions that will ↵Luis Ontanon1-1/+4
try to open the file in perscofdir then dataconfdir if there's no such file in cwd - wslua_field.c: avoid FieldInfo:__tostring() crashing when the ftype has no val_to_string_repr - init.lua: inform the user that a packet has been disabled, intead of a cryptic "attemt to call nil" - Makefile.am: add register_wslua.c and declare_wslua.h to MAINTAINERCLEANFILES - wslua_gui.c: fix a typo svn path=/trunk/; revision=19425
2006-09-25Move the Lua interface into epan... (not a plugin anymore).Luis Ontanon1-0/+445
- Rename Tap into Listener - add a mechanism to pass protocols' tap data to the Listener svn path=/trunk/; revision=19319