wireshark/epan/wslua
Martin Kaiser 6e1d30ce87 wslua: simplify __WSLUA_REGISTER_META and _CLASS
Get rid of ATTRS_BLOCK, which is either empty or sets a value for attr.
We can initialize attr in any case, either to NULL or to the attributes
provided by the caller. This makes the code a bit easier to read (at
least for me).

Change-Id: Ib26ea5ec099b365303de5aaf407470ad48b126f9
Reviewed-on: https://code.wireshark.org/review/32186
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-02-26 05:32:42 +00:00
..
.editorconfig
CMakeLists.txt CMake: Simplify CMAKE_INSTALL_DATADIR usage 2018-12-03 22:35:37 +00:00
console.lua Lua: remove various logging functions (debug, warn, etc.) 2018-09-07 04:02:45 +00:00
dtd_gen.lua epan: more SPDX convertions. 2018-02-09 14:41:31 +00:00
init_wslua.c wslua: Improve syntax error message 2019-01-28 13:22:22 +00:00
init_wslua.h epan: Remove unnecessary all protocols registration callback 2018-08-29 23:22:44 +00:00
lrexlib.c spdx: more licenses converted. 2018-03-09 04:50:23 +00:00
lrexlib.h spdx: more licenses converted. 2018-03-09 04:50:23 +00:00
lrexlib_algo.h spdx: more licenses converted. 2018-03-09 04:50:23 +00:00
lrexlib_glib.c spdx: more licenses converted. 2018-03-07 15:56:44 +00:00
lrexlib_glib_f.c spdx: more licenses converted. 2018-03-07 15:56:44 +00:00
lua_bitop.c Revert "Some older compilers don't allow diagnostic pragmas inside a function." 2018-09-12 16:29:30 +00:00
lua_bitop.h spdx: more licenses converted. 2018-03-09 04:50:23 +00:00
make-init-lua.pl wslua: Update wslua_register_menu() documentation 2019-01-29 05:47:05 +00:00
make-reg.pl spdx: more licenses converted. 2018-03-07 15:56:44 +00:00
make-taps.pl spdx: more licenses converted. 2018-03-07 15:56:44 +00:00
taps Rename packet-ssl* to packet-tls* 2018-09-25 13:24:17 +00:00
template-init.lua wslua: do not partially disable the Lua API when run as root 2019-02-07 10:30:06 +00:00
wslua.h wslua: simplify __WSLUA_REGISTER_META and _CLASS 2019-02-26 05:32:42 +00:00
wslua_address.c lua: add support for ethernet addresses to the Address class 2018-10-18 07:51:36 +00:00
wslua_byte_array.c epan: Guard g_base64_decode_inplace() against zero length string 2018-09-05 17:19:42 +00:00
wslua_capture_info.c wslua: register attributes along with their class 2019-01-21 11:51:01 +00:00
wslua_column.c wslua: use SPDX identifiers. 2018-02-09 12:31:21 +00:00
wslua_dir.c wslua: fix memleak in Dir.remove_all on error path 2018-05-10 06:16:19 +00:00
wslua_dissector.c wslua: Convert more comment markup to Asciidoctor. 2018-02-11 17:12:52 +00:00
wslua_dumper.c wiretap: fix memleaks with wtap_rec::opt_comment 2019-01-25 04:53:10 +00:00
wslua_field.c wslua_field: fix memory leaks in Field_new 2019-01-26 19:43:05 +00:00
wslua_file.c wslua: register attributes along with their class 2019-01-21 11:51:01 +00:00
wslua_file_common.c wslua: use SPDX identifiers. 2018-02-09 12:31:21 +00:00
wslua_file_common.h wslua: use SPDX identifiers. 2018-02-09 12:31:21 +00:00
wslua_file_handler.c wslua_file_handler: fix leak of opt_comment 2019-01-26 07:42:00 +00:00
wslua_frame_info.c wslua_file_handler: fix leak of opt_comment 2019-01-26 07:42:00 +00:00
wslua_gui.c wslua: Update wslua_register_menu() documentation 2019-01-29 05:47:05 +00:00
wslua_int64.c spdx: more licenses converted. 2018-03-09 04:50:23 +00:00
wslua_internals.c wslua: register attributes along with their class 2019-01-21 11:51:01 +00:00
wslua_listener.c wslua_listener: fix memleak in tap packet callback 2019-01-27 09:40:56 +00:00
wslua_nstime.c wslua_nstime: fix memleak for bad arguments to NSTime 2019-01-26 09:07:32 +00:00
wslua_pinfo.c wslua_pinfo: fix memleaks on setting addresses in Pinfo 2019-01-27 09:43:44 +00:00
wslua_pinfo_common.h wslua: use SPDX identifiers. 2018-02-09 12:31:21 +00:00
wslua_pref.c wslua: fix memleaks related to Proto and Pref 2019-01-27 09:43:05 +00:00
wslua_proto.c wslua: Don't defer deletion of subtree indexes 2019-01-29 14:30:37 +00:00
wslua_proto_expert.c wslua: use SPDX identifiers. 2018-02-09 12:31:21 +00:00
wslua_proto_field.c wslua: fix memleak of unregistered ProtoField field 2019-01-27 09:43:26 +00:00
wslua_struct.c spdx: more licenses converted. 2018-03-09 04:50:23 +00:00
wslua_tree.c wslua: register attributes along with their class 2019-01-21 11:51:01 +00:00
wslua_tvb.c Add, and use, "fetch signed value" for lengths < 40 bits. 2018-04-10 14:55:45 +00:00
wslua_util.c Revert "Add routines to load Lua programs that assume the path is UTF-8 on Windows." 2018-12-30 07:49:22 +00:00