180 void cxJsonDestroy(CxJson *json); |
180 void cxJsonDestroy(CxJson *json); |
181 |
181 |
182 __attribute__((__nonnull__)) |
182 __attribute__((__nonnull__)) |
183 int cxJsonFilln(CxJson *json, const char *buf, size_t len); |
183 int cxJsonFilln(CxJson *json, const char *buf, size_t len); |
184 |
184 |
185 #define cxJsonFill(prop, str) _Generic((str), \ |
185 #define cxJsonFill(json, str) _Generic((str), \ |
186 cxstring: cx_json_fill_cxstr, \ |
186 cxstring: cx_json_fill_cxstr, \ |
187 cxmutstr: cx_json_fill_mutstr, \ |
187 cxmutstr: cx_json_fill_mutstr, \ |
188 char*: cx_json_fill_str, \ |
188 char*: cx_json_fill_str, \ |
189 const char*: cx_json_fill_str) \ |
189 const char*: cx_json_fill_str) \ |
190 (prop, str) |
190 (json, str) |
191 |
191 |
192 __attribute__((__nonnull__)) |
192 __attribute__((__nonnull__)) |
193 static inline int cx_json_fill_cxstr( |
193 static inline int cx_json_fill_cxstr( |
194 CxJson *json, |
194 CxJson *json, |
195 cxstring str |
195 cxstring str |