mirror of
https://github.com/curl/curl.git
synced 2026-08-05 07:26:13 +03:00
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:
parent
d91f01f231
commit
8c452b4003
2 changed files with 72 additions and 78 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue