| 316 | } |
| 317 | |
| 318 | void show_attrs(FILE *fp, Attr attrs, int need_comma) |
| 319 | { |
| 320 | for (; attrs; attrs = attrs->next) { |
| 321 | if (need_comma) fputc(',', fp); |
| 322 | show(fp, attrs->key, 0); |
| 323 | fputs("=", fp); |
| 324 | show(fp, attrs->value, 1); |
| 325 | need_comma = 1; |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | /** Checks whether (JSMN_STRING) token equals a certain string value. */ |
| 330 | int string_eq(jsmntok_t *tok, const char *s) { |
no test coverage detected