enhance to generate encode routine to be more robust to encode NULL
This commit is contained in:
parent
3425f75440
commit
07e2126e25
4 changed files with 17 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue