Skip to content

Commit

Permalink
encode: section_order harmonization
Browse files Browse the repository at this point in the history
use functions for each section, so that we can re-use 2004 code for 2000.
and write sections in arbitrary order.

2000 as in 2004
  • Loading branch information
rurban committed Jan 1, 2024
1 parent ac2c6ff commit 5402e5d
Show file tree
Hide file tree
Showing 5 changed files with 1,481 additions and 1,259 deletions.
3 changes: 2 additions & 1 deletion include/dwg.h
Original file line number Diff line number Diff line change
Expand Up @@ -9031,12 +9031,13 @@ typedef enum DWG_SECTION_TYPE /* since r2004+ */
SECTION_SYSTEM_MAP,
} Dwg_Section_Type;

/* r13 - r2000 */
typedef enum DWG_SECTION_TYPE_R13
{
SECTION_HEADER_R13 = 0,
SECTION_CLASSES_R13 = 1,
SECTION_HANDLES_R13 = 2,
SECTION_OBJFREESPACE_R13 = 3,
SECTION_OBJFREESPACE_R13 = 3, /* including the 2ndheader */
SECTION_TEMPLATE_R13 = 4,
SECTION_AUXHEADER_R2000 = 5,
SECTION_THUMBNAIL_R13 = 6,
Expand Down
Loading

0 comments on commit 5402e5d

Please sign in to comment.