diff options
Diffstat (limited to 'epan/wslua/make-init-lua.pl')
-rwxr-xr-x | epan/wslua/make-init-lua.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/wslua/make-init-lua.pl b/epan/wslua/make-init-lua.pl index 2febfecdb1..0c1f54c34a 100755 --- a/epan/wslua/make-init-lua.pl +++ b/epan/wslua/make-init-lua.pl @@ -78,7 +78,8 @@ while(<WTAP_H>) { $wtap_encaps_table .= "\t[\"$1\"] = $2,\n"; } - if ( /^#define WTAP_FILE_TYPE_SUBTYPE_([A-Z0-9_]+)\s+(\d+)/ ) { + # this has to catch both file types and timestamp precision defines (yuck) + if ( /^#define WTAP_FILE_(?:TYPE_SUBTYPE_)?([A-Z0-9_]+)\s+(\d+)/ ) { $wtap_filetypes_table .= "\t[\"$1\"] = $2,\n"; } } |