Changeset 219


Ignore:
Timestamp:
07/31/06 18:24:32 (8 years ago)
Author:
xi
Message:

Add two examples and prepare the build system for distribution.

Location:
libyaml/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • libyaml/trunk/include/yaml.h

    r214 r219  
    418418 * 
    419419 * @param[in]   event       An empty event object. 
     420 * @param[in]   encoding    The stream encoding. 
    420421 * 
    421422 * @returns @c 1 if the function succeeded, @c 0 on error. 
     
    509510yaml_scalar_event_initialize(yaml_event_t *event, 
    510511        yaml_char_t *anchor, yaml_char_t *tag, 
    511         yaml_char_t *value, size_t length, 
     512        yaml_char_t *value, int length, 
    512513        int plain_implicit, int quoted_implicit, 
    513514        yaml_scalar_style_t style); 
  • libyaml/trunk/src/Makefile.am

    r212 r219  
    11AM_CPPFLAGS = -I$(top_srcdir)/include 
    22lib_LTLIBRARIES = libyaml.la 
    3 libyaml_la_SOURCES = api.c reader.c scanner.c parser.c writer.c emitter.c 
     3libyaml_la_SOURCES = yaml_private.h api.c reader.c scanner.c parser.c writer.c emitter.c 
    44libyaml_la_LDFLAGS = -release $(YAML_LT_RELEASE) -version-info $(YAML_LT_CURRENT):$(YAML_LT_REVISION):$(YAML_LT_AGE) 
  • libyaml/trunk/src/api.c

    r216 r219  
    812812yaml_scalar_event_initialize(yaml_event_t *event, 
    813813        yaml_char_t *anchor, yaml_char_t *tag, 
    814         yaml_char_t *value, size_t length, 
     814        yaml_char_t *value, int length, 
    815815        int plain_implicit, int quoted_implicit, 
    816816        yaml_scalar_style_t style) 
     
    824824    assert(value);      /* Non-NULL anchor is expected. */ 
    825825 
    826  
    827826    if (anchor) { 
    828827        if (!yaml_check_utf8(anchor, strlen((char *)anchor))) goto error; 
     
    835834        tag_copy = yaml_strdup(tag); 
    836835        if (!tag_copy) goto error; 
     836    } 
     837 
     838    if (length < 0) { 
     839        length = strlen((char *)value); 
    837840    } 
    838841 
  • libyaml/trunk/tests/Makefile.am

    r216 r219  
    11AM_CPPFLAGS = -I$(top_srcdir)/include 
     2AM_CFLAGS = -Wno-pointer-sign 
    23LDADD = $(top_builddir)/src/libyaml.la 
    34TESTS = test-version test-reader 
    4 check_PROGRAMS = test-version test-reader run-scanner run-parser run-emitter 
     5check_PROGRAMS = test-version test-reader 
     6noinst_PROGRAMS = run-scanner run-parser run-emitter example-reformatter example-deconstructor 
Note: See TracChangeset for help on using the changeset viewer.