Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
1e0ab97
Doxygenify the header file.
xitology May 26, 2006
72b49b0
Implementing Reader: first tries.
xitology May 27, 2006
8ae37c3
Working on the decoding code.
xitology May 29, 2006
29358a3
Complete UTF-8 and UTF-16 decoders.
xitology May 30, 2006
7adcbc3
Complete buffering and encoding code.
xitology Jun 1, 2006
ec7c4d2
Add token constructors and destructors.
xitology Jun 2, 2006
460af32
Add scanner definitions.
xitology Jun 6, 2006
5e2975a
Implementing Scanner: macros and high-level functions.
xitology Jun 7, 2006
aadb786
Scanner: implement everything except token scanners.
xitology Jun 8, 2006
badfb19
Implement scanners for directives, anchors, and tags.
xitology Jun 11, 2006
339b45d
Implement the block scalar scanner.
xitology Jun 16, 2006
b0d6dcf
The scanner is completed (not tested though).
xitology Jun 18, 2006
3b8e342
Fix numerous bugs in the Scanner.
xitology Jun 19, 2006
201292c
Add event constructors and destructors.
xitology Jul 3, 2006
9c9b6fb
Move yaml/yaml.h to yaml.h and merge version.c to api.c.
xitology Jul 3, 2006
b6a5573
Start working on the parser.
xitology Jul 4, 2006
3113e53
Implement half of the parsers.
xitology Jul 5, 2006
bfaf9d8
Complete the Parser (it requires refactoring though) and fix some bugs.
xitology Jul 7, 2006
ccaeae1
Refactor internal and external API.
xitology Jul 21, 2006
df1c954
Fix some leaks, segfaults and warnings.
xitology Jul 21, 2006
cece0a9
Add Emitter definitions and implement the Writer.
xitology Jul 23, 2006
04cf09a
Add yaml_emitter_emit_* set of functions.
xitology Jul 25, 2006
4abcb1f
Implement Emitter state machine.
xitology Jul 26, 2006
b704365
Implement everything except tag and scalar writers.
xitology Jul 28, 2006
1fb241f
Scalar writers are completed.
xitology Jul 29, 2006
0ff07a7
Fix Emitter bugs and leaks.
xitology Jul 30, 2006
7a5632f
Add the run-emitter test.
xitology Jul 30, 2006
0e237f4
Add two examples and prepare the build system for distribution.
xitology Jul 31, 2006
03f21e7
Prepare the initial release.
xitology Aug 1, 2006
2ef0340
Older versions of gcc do not know about -Wno-pointer-sign.
xitology Aug 15, 2006
a5dab4d
Force a new line at the end of the input stream even if there are no …
xitology Dec 11, 2006
50a3f26
Add `const` qualifier for `yaml_parser_set_input_string` parameter `i…
xitology Dec 11, 2006
a0cac6b
Add functions for constructing, parsing and emitting YAML documents.
xitology Jan 7, 2007
2100a60
Add win32 fixes and project files for VC6.
xitology Jan 7, 2007
75c0872
Add VC6 projects for the test executables.
xitology Jan 8, 2007
e9e1d74
Fix a bug in the emitter introduced while fixing warnings for VC6.
xitology Jan 8, 2007
775bb87
Undefine the NDEBUG directive for the test programs.
xitology Jan 8, 2007
c8a4436
Eliminate some warnings and add more doxygen definitions.
xitology Jan 8, 2007
89b31b3
Fix the example_deconstructor project.
xitology Jan 8, 2007
daa0f34
Add project files for Visual Studio 2003.
xitology Jan 8, 2007
0b9af98
Fixed a problem when the DOCUMENT-END event is not emitted until the …
xitology Apr 17, 2007
c4166d6
Created a stable branch from revision [250].
xitology Jul 31, 2008
f8e12c4
Bumped the version number in the stable branch.
xitology Jul 31, 2008
4068193
Fixed grammar in error messages (from YAML::XS::LibYAML).
xitology Jul 31, 2008
81b1b02
Added project files for Visual Studio 2008.
xitology Sep 30, 2008
9af1fdd
Updated Visual Studio projects to use MSVCRT.dll.
xitology Oct 2, 2008
637305c
Rewritten whitespace detection in the scalar analyzer and block scala…
xitology Dec 27, 2008
526e9cf
Fixed emitting folded scalars with trailing breaks; Forced emitting o…
xitology Dec 27, 2008
a3bb183
Bumped the version number.
xitology Dec 27, 2008
afb2fc2
Fixed the DLL name in the win32 projects.
xitology Dec 27, 2008
9b85c78
Updated the LibYAML announcement.
xitology Dec 27, 2008
2a28d03
Added autoconf rules to distribute win32 project files.
xitology Dec 27, 2008
1d57fc3
Always use lower case in error messages.
xitology Dec 28, 2008
b865c6f
'make distclean' should not remove html docs, 'make maintainer-clean'…
xitology Dec 30, 2008
42e30b9
Set YAML_AGE to 0 as the current interface is not really compatible w…
xitology Jan 5, 2009
e0eaa17
Fixed non-ANSI initializations (fixes #115).
xitology Feb 23, 2009
9a426aa
Do not update the raw buffer when not necessary (fixes #123).
xitology Aug 29, 2009
516c164
Preparing the 0.1.3 release.
xitology Aug 29, 2009
c569183
Added a short note on changes in this release.
xitology Aug 29, 2009
78855b7
Fixed a bug which prevented an empty mapping from being used as a sim…
xitology Oct 11, 2010
03670fe
Fixed pointer arithmetic overflow when calculating the position of a …
xitology Oct 11, 2010
0512e0a
Use _WIN32 instead of WIN32 as the latter is not defined by Visual C.
xitology May 29, 2011
da14e68
Added support for pkg-config.
xitology May 29, 2011
1cffa48
Bumped the version number and updated the announcement.
xitology May 29, 2011
ed22849
Add `make test` target to Makefile
ingydotnet Dec 1, 2013
a45cce3
Use travis-ci
ingydotnet Dec 1, 2013
012ce85
Boo! typo in travis file
ingydotnet Dec 1, 2013
c5d4970
yaml_parser_scan_tag_uri: fix int overflow leading to buffer overflow
fweimer-rh Feb 4, 2014
7075155
yaml_stack_extend: guard against integer overflow
fweimer-rh Feb 4, 2014
a472774
yaml_parser-{un,}roll-indent: fix int overflow in column argument
jeckersb Feb 4, 2014
eebdd8b
Sync to head of https://bitbucket.org/xi/libyaml
ingydotnet Nov 28, 2014
e6aa721
Fix for https://bitbucket.org/xi/libyaml/issue/10/
ingydotnet Nov 28, 2014
d42f5c0
Use pointer to const for strings that aren't/shouldn't be modified
criptych Feb 17, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: c

compiler:
- clang
- gcc

script: ./bootstrap && ./configure && make && make test
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Minimal CMake project for building a static library under Windows.

cmake_minimum_required (VERSION 2.8)
project (yaml C)

set (YAML_VERSION_MAJOR 0)
set (YAML_VERSION_MINOR 1)
set (YAML_VERSION_PATCH 6)
set (YAML_VERSION_STRING "${YAML_VERSION_MAJOR}.${YAML_VERSION_MINOR}.${YAML_VERSION_PATCH}")

file (GLOB SRC src/*.c)

include_directories (include win32)
add_definitions (-DHAVE_CONFIG_H -DYAML_DECLARE_STATIC)
add_library (yaml STATIC ${SRC})

9 changes: 6 additions & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
## Run `./bootstrap` to generate the "Makefile.in" files in this directory and
## the "$SUBDIR" subdirectories.
## the "$SUBDIRS" subdirectories.

SUBDIRS = include src . tests
SUBDIRS = include src . tests win32

EXTRA_DIST = doc/doxygen.cfg
EXTRA_DIST = README LICENSE CMakeLists.txt doc/doxygen.cfg

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = yaml-0.1.pc

maintainer-clean-local:
-rm -f aclocal.m4 config.h.in configure config/*
Expand Down
19 changes: 12 additions & 7 deletions README
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
libyaml - A C library for parsing and emitting YAML.

The project is in an early stage of development and not usable for end users.
LibYAML - A C library for parsing and emitting YAML.

To build and install the library, run:
$ ./configure
$ make
# make install

If you checked the source code from the Subversion repository, run
$ ./bootstrap
$ ./configure
$ make
$ make check
# make install

For more information, check the libyaml homepage:
For more information, check the LibYAML homepage:
'http://pyyaml.org/wiki/LibYAML'.

Post your questions and opinions to the YAML-Core mailing list:
'http://lists.sourceforge.net/lists/listinfo/yaml-core'.

Submit bug reports and feature requests to the libyaml bug tracker:
Submit bug reports and feature requests to the LibYAML bug tracker:
'http://pyyaml.org/newticket?component=libyaml'.

libyaml is written by Kirill Simonov <xi@resolvent.net>. It is released
LibYAML is written by Kirill Simonov <xi@resolvent.net>. It is released
under the MIT license. See the file LICENSE for more details.

This project is developed for Python Software Foundation as a part of
Google Summer of Code under the mentorship of Clark Evans.
28 changes: 28 additions & 0 deletions announcement.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From: Kirill Simonov <xi@resolvent.net>
To: yaml-core@lists.sourceforge.net
Subject: LibYAML-0.1.4: A minor bugfix release

This is a minor bugfix release of LibYAML, a YAML parser and emitter
written in C:

* Fixed a bug that prevented an empty mapping being used as a simple key
(thank to spitzak(at)rhythm(dot)com).
* Fixed pointer overflow when calculating the position of a potential
simple key (thank to ppelletier(at)oblong(dot)com).
* Fixed yaml.dll not exporting any symbols
(thank to pxn11432(at)nifty(dot)com).
* Added pkg-config support (thank to rainwoodman(at)gmail(dot)com).

LibYAML homepage: http://pyyaml.org/wiki/LibYAML
TAR.GZ package: http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
SVN repository: http://svn.pyyaml.org/libyaml/branches/stable
Bug tracker: http://pyyaml.org/newticket?component=libyaml

The library is functionally complete, but the documentation is scarce
and the API may change. For more information, you may check the project
homepage, the doxygen-generated documentation in the `doc` directory of
the source distribution, and examples in the `tests` directory.

LibYAML is written by Kirill Simonov <xi@resolvent.net> and released
under the MIT license; see the file LICENSE for more details.

10 changes: 5 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Define the package version numbers and the bug reporting link.
m4_define([YAML_MAJOR], 0)
m4_define([YAML_MINOR], 0)
m4_define([YAML_PATCH], 1)
m4_define([YAML_MINOR], 1)
m4_define([YAML_PATCH], 6)
m4_define([YAML_BUGS], [http://pyyaml.org/newticket?component=libyaml])

# Define the libtool version numbers; check the Autobook, Section 11.4.
Expand All @@ -18,8 +18,8 @@ m4_define([YAML_BUGS], [http://pyyaml.org/newticket?component=libyaml])
# else:
# YAML_AGE = 0
m4_define([YAML_RELEASE], 0)
m4_define([YAML_CURRENT], 0)
m4_define([YAML_REVISION], 0)
m4_define([YAML_CURRENT], 2)
m4_define([YAML_REVISION], 4)
m4_define([YAML_AGE], 0)

# Initialize autoconf & automake.
Expand Down Expand Up @@ -67,7 +67,7 @@ AC_C_CONST
AC_TYPE_SIZE_T

# Define Makefiles.
AC_CONFIG_FILES([include/Makefile src/Makefile Makefile tests/Makefile])
AC_CONFIG_FILES([yaml-0.1.pc include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile])

# Generate the "configure" script.
AC_OUTPUT
14 changes: 7 additions & 7 deletions doc/doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English
USE_WINDOWS_ENCODING = NO
BRIEF_MEMBER_DESC = YES
REPEAT_BRIEF = NO
REPEAT_BRIEF = YES
ABBREVIATE_BRIEF =
ALWAYS_DETAILED_SEC = NO
INLINE_INHERITED_MEMB = NO
FULL_PATH_NAMES = YES
STRIP_FROM_PATH =
STRIP_FROM_INC_PATH =
SHORT_NAMES = NO
JAVADOC_AUTOBRIEF = NO
JAVADOC_AUTOBRIEF = YES
MULTILINE_CPP_IS_BRIEF = NO
DETAILS_AT_TOP = NO
INHERIT_DOCS = YES
Expand Down Expand Up @@ -46,7 +46,7 @@ CASE_SENSE_NAMES = YES
HIDE_SCOPE_NAMES = NO
SHOW_INCLUDE_FILES = YES
INLINE_INFO = YES
SORT_MEMBER_DOCS = YES
SORT_MEMBER_DOCS = NO
SORT_BRIEF_DOCS = NO
SORT_BY_SCOPE_NAME = NO
GENERATE_TODOLIST = YES
Expand Down Expand Up @@ -117,7 +117,7 @@ GENERATE_CHI = NO
BINARY_TOC = NO
TOC_EXPAND = NO
DISABLE_INDEX = NO
ENUM_VALUES_PER_LINE = 4
ENUM_VALUES_PER_LINE = 1
GENERATE_TREEVIEW = NO
TREEVIEW_WIDTH = 250
#---------------------------------------------------------------------------
Expand Down Expand Up @@ -174,12 +174,12 @@ PERLMOD_MAKEVAR_PREFIX =
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = NO
EXPAND_ONLY_PREDEF = NO
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = YES
SEARCH_INCLUDES = YES
INCLUDE_PATH =
INCLUDE_FILE_PATTERNS =
PREDEFINED =
PREDEFINED = "YAML_DECLARE(type)=type"
EXPAND_AS_DEFINED =
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions include/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INCLUDES = yaml/yaml.h yaml/yaml_version.h yaml/yaml_error.h
INCLUDES = yaml.h
DOXYGEN_CFG = $(top_srcdir)/doc/doxygen.cfg

nobase_include_HEADERS = $(INCLUDES)
Expand All @@ -10,7 +10,7 @@ html: $(INCLUDES) $(DOXYGEN_CFG)

endif

distclean-local:
maintainer-clean-local:
-rm -rf $(top_builddir)/doc/html

dist-hook: html
Expand Down
Loading