enhance to generate encode routine to be more robust to encode NULL

This commit is contained in:
Rongsong Shen 2025-04-27 17:23:50 +08:00
parent 3425f75440
commit 07e2126e25
4 changed files with 17 additions and 1 deletions

View file

@ -16,6 +16,10 @@ typedef struct {
uint32_t year;
} publish_t;
typedef struct {
int null_;
} nulldata_t;
typedef struct {
char *title;
int n_authors;
@ -23,6 +27,7 @@ typedef struct {
int n_chapters;
chapter_t *chapters_;
publish_t *publish;
nulldata_t *nulldata;
int n_magic1;
uint32_t *magic_1;
int acquire_method;