Skip to content

Commit

Permalink
dynapi: parse SUB_FIELD_VECTOR dxf codes
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Dec 8, 2024
1 parent 5dce8b0 commit 0d71418
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doc/dynapi.texi
Original file line number Diff line number Diff line change
Expand Up @@ -13799,7 +13799,7 @@ BL, DXF 95
@item num_indexes
BS, DXF 76
@item indexes
BL*
BL*, DXF 94

@end vtable
@end indentedblock
Expand All @@ -13817,7 +13817,7 @@ H, DXF 331
@item num_indexes
BS, DXF 74
@item indexes
BL*
BL*, DXF 94

@end vtable
@end indentedblock
Expand Down Expand Up @@ -14479,7 +14479,7 @@ BD, DXF 53
@item num_dashes
BS, DXF 79
@item dashes
BD*
BD*, DXF 49

@end vtable
@end indentedblock
Expand Down
6 changes: 3 additions & 3 deletions src/dynapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -11245,7 +11245,7 @@ static const Dwg_DYNAPI_field _dwg_BLOCKSTRETCHACTION_codes_fields[] = {
{ "num_indexes", "BS", sizeof (BITCODE_BS), OFF (struct _dwg_BLOCKSTRETCHACTION_codes, num_indexes),
0,0,0, 76 },
{ "indexes", "BL*", sizeof (BITCODE_BL*), OFF (struct _dwg_BLOCKSTRETCHACTION_codes, indexes),
1,1,0, 0 },
1,1,0, 94 },
{NULL, NULL, 0, 0, 0,0,0, 0},
};
/* from typedef struct _dwg_BLOCKSTRETCHACTION_handles: (sorted by offset) */
Expand All @@ -11257,7 +11257,7 @@ static const Dwg_DYNAPI_field _dwg_BLOCKSTRETCHACTION_handles_fields[] = {
{ "num_indexes", "BS", sizeof (BITCODE_BS), OFF (struct _dwg_BLOCKSTRETCHACTION_handles, num_indexes),
0,0,0, 74 },
{ "indexes", "BL*", sizeof (BITCODE_BL*), OFF (struct _dwg_BLOCKSTRETCHACTION_handles, indexes),
1,1,0, 0 },
1,1,0, 94 },
{NULL, NULL, 0, 0, 0,0,0, 0},
};
/* from typedef struct _dwg_BLOCKVISIBILITYPARAMETER_state: (sorted by offset) */
Expand Down Expand Up @@ -11751,7 +11751,7 @@ static const Dwg_DYNAPI_field _dwg_HATCH_DefLine_fields[] = {
{ "num_dashes", "BS", sizeof (BITCODE_BS), OFF (struct _dwg_HATCH_DefLine, num_dashes),
0,0,0, 79 },
{ "dashes", "BD*", sizeof (BITCODE_BD*), OFF (struct _dwg_HATCH_DefLine, dashes),
1,1,0, 0 },
1,1,0, 49 },
{NULL, NULL, 0, 0, 0,0,0, 0},
};
/* from typedef struct _dwg_HATCH_Path: (sorted by offset) */
Expand Down
4 changes: 4 additions & 0 deletions src/gen-dynapi.pl
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ sub dxf_in {
my $type = $1;
$f = $1;
$DXF{$n}->{$f} = $2 if $2;
} elsif (@old && /^\s+SUB_FIELD_VECTOR\s*\($v,\s*(\w+),\s*\w+,\s*\w+,\s*(\d+)\)/) {
my $type = $1;
$f = $1;
$DXF{$n}->{$f} = $2 if $2;
} elsif (@old && /^\s+SUB_FIELD_(.+?)\s*\($v,\s*(\w+),\s*(\d+)\)/) {
my $type = $1;
$f = $2;
Expand Down

0 comments on commit 0d71418

Please sign in to comment.