Changeset 219
- Timestamp:
- 07/31/06 18:24:32 (7 years ago)
- Location:
- libyaml/trunk
- Files:
-
- 2 added
- 4 edited
-
include/yaml.h (modified) (2 diffs)
-
src/Makefile.am (modified) (1 diff)
-
src/api.c (modified) (3 diffs)
-
tests/Makefile.am (modified) (1 diff)
-
tests/example-deconstructor.c (added)
-
tests/example-reformatter.c (added)
Legend:
- Unmodified
- Added
- Removed
-
libyaml/trunk/include/yaml.h
r214 r219 418 418 * 419 419 * @param[in] event An empty event object. 420 * @param[in] encoding The stream encoding. 420 421 * 421 422 * @returns @c 1 if the function succeeded, @c 0 on error. … … 509 510 yaml_scalar_event_initialize(yaml_event_t *event, 510 511 yaml_char_t *anchor, yaml_char_t *tag, 511 yaml_char_t *value, size_t length,512 yaml_char_t *value, int length, 512 513 int plain_implicit, int quoted_implicit, 513 514 yaml_scalar_style_t style); -
libyaml/trunk/src/Makefile.am
r212 r219 1 1 AM_CPPFLAGS = -I$(top_srcdir)/include 2 2 lib_LTLIBRARIES = libyaml.la 3 libyaml_la_SOURCES = api.c reader.c scanner.c parser.c writer.c emitter.c3 libyaml_la_SOURCES = yaml_private.h api.c reader.c scanner.c parser.c writer.c emitter.c 4 4 libyaml_la_LDFLAGS = -release $(YAML_LT_RELEASE) -version-info $(YAML_LT_CURRENT):$(YAML_LT_REVISION):$(YAML_LT_AGE) -
libyaml/trunk/src/api.c
r216 r219 812 812 yaml_scalar_event_initialize(yaml_event_t *event, 813 813 yaml_char_t *anchor, yaml_char_t *tag, 814 yaml_char_t *value, size_t length,814 yaml_char_t *value, int length, 815 815 int plain_implicit, int quoted_implicit, 816 816 yaml_scalar_style_t style) … … 824 824 assert(value); /* Non-NULL anchor is expected. */ 825 825 826 827 826 if (anchor) { 828 827 if (!yaml_check_utf8(anchor, strlen((char *)anchor))) goto error; … … 835 834 tag_copy = yaml_strdup(tag); 836 835 if (!tag_copy) goto error; 836 } 837 838 if (length < 0) { 839 length = strlen((char *)value); 837 840 } 838 841 -
libyaml/trunk/tests/Makefile.am
r216 r219 1 1 AM_CPPFLAGS = -I$(top_srcdir)/include 2 AM_CFLAGS = -Wno-pointer-sign 2 3 LDADD = $(top_builddir)/src/libyaml.la 3 4 TESTS = test-version test-reader 4 check_PROGRAMS = test-version test-reader run-scanner run-parser run-emitter 5 check_PROGRAMS = test-version test-reader 6 noinst_PROGRAMS = run-scanner run-parser run-emitter example-reformatter example-deconstructor
Note: See TracChangeset
for help on using the changeset viewer.
