tool_formparse: unroll the NULL_CHECK and CONST_FREE macros

To make the code read more obvious

Assisted-by: Jay Satiro

Closes #9710
This commit is contained in:
Daniel Stenberg 2022-10-12 15:48:52 +02:00
parent d91f01f231
commit 8c452b4003
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 72 additions and 78 deletions

View file

@ -43,11 +43,11 @@ struct tool_mime {
struct tool_mime *parent; /* Parent item. */
struct tool_mime *prev; /* Previous sibling (reverse order link). */
/* Common fields. */
const char *data; /* Actual data or data filename. */
const char *name; /* Part name. */
const char *filename; /* Part's filename. */
const char *type; /* Part's mime type. */
const char *encoder; /* Part's requested encoding. */
char *data; /* Actual data or data filename. */
char *name; /* Part name. */
char *filename; /* Part's filename. */
char *type; /* Part's mime type. */
char *encoder; /* Part's requested encoding. */
struct curl_slist *headers; /* User-defined headers. */
/* TOOLMIME_PARTS fields. */
struct tool_mime *subparts; /* Part's subparts. */