Perl's Net::Skinny : update to current handle PACKED structs
This commit is contained in:
parent
b84b71defa
commit
1c4c84fc0f
|
@ -48,7 +48,7 @@ sub _find {
|
||||||
my ($name, $value) = ($1,hex($2));
|
my ($name, $value) = ($1,hex($2));
|
||||||
$sub{$name} = sub () { $value };
|
$sub{$name} = sub () { $value };
|
||||||
$const{$name} = $value;
|
$const{$name} = $value;
|
||||||
} elsif(/^\s*struct\s+([a-z_]+)\s*\{\s*$/) {
|
} elsif(/^\s*struct\s+PACKED\s+([a-z_]+)\s*\{\s*$/) {
|
||||||
my $struct_name = $1;
|
my $struct_name = $1;
|
||||||
$struct{$struct_name} = [];
|
$struct{$struct_name} = [];
|
||||||
while(<$fh>) {
|
while(<$fh>) {
|
||||||
|
|
Loading…
Reference in New Issue