Changeset 212 for libyaml/trunk/src/api.c
- Timestamp:
- 07/25/06 16:54:28 (7 years ago)
- File:
-
- 1 edited
-
libyaml/trunk/src/api.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libyaml/trunk/src/api.c
r211 r212 58 58 */ 59 59 60 YAML_DECLARE(char *) 61 yaml_strdup(const char *str) 62 { 63 return strdup(str); 60 YAML_DECLARE(yaml_char_t *) 61 yaml_strdup(const yaml_char_t *str) 62 { 63 if (!str) 64 return NULL; 65 66 return (yaml_char_t *)strdup((char *)str); 64 67 } 65 68 … … 390 393 } 391 394 STACK_DEL(emitter, emitter->indents); 395 yaml_event_delete(&emitter->event); 392 396 while (!STACK_EMPTY(empty, emitter->tag_directives)) { 393 397 yaml_tag_directive_t tag_directive = POP(emitter, emitter->tag_directives); … … 537 541 assert(emitter); /* Non-NULL emitter object expected. */ 538 542 539 emitter->best_width = (width > 0) ? width : 0;543 emitter->best_width = (width >= 0) ? width : -1; 540 544 } 541 545
Note: See TracChangeset
for help on using the changeset viewer.
