summaryrefslogtreecommitdiff
path: root/src/parser.c
Commit message (Collapse)AuthorAgeFilesLines
* Support %YAML 1.2 directives (#172)Tina Müller (tinita)2020-04-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This will simply allow `%YAML 1.2` directives additionally to `%YAML 1.1`. There is no change in behaviour. See also #20 No changes are needed regarding tag directives. In YAML 1.2 tag directives are for the following document only. This is already implemented like that in libyaml. We would rather have to fix the code if we want to have the correct behaviour (global directives) in YAML 1.1. This would be a bit more complicated, as we would have to save the default version and the current version in the parser object. New passing parser tests: * 27NA: Spec Example 5.9. Directive Indicator * 6ZKB: Spec Example 9.6. Stream * 9DXL: Spec Example 9.6. Stream [1.3] * RTP8: Spec Example 9.2. Document Markers New failing error parser tests (before they were errors for the wrong reason): * EB22: Missing document-end marker before directive * RHX7: YAML directive without document end marker
* Fix unconditional yaml_free()Tina Müller2018-07-181-1/+2
| | | | Thanks to @tlsa for spotting this
* fix version_directive memory leakReini Urban2018-07-181-0/+1
| | | | detected by coverity
* Fixed most compiler warnings -Wall -WextraReini Urban2018-01-081-13/+9
| | | | | | | | | | | repro: CFLAGS="-Wall -Wextra -Wunused-parameter -Wc++-compat" ./configure && make which we use for perl, and libyaml is now included in cperl. Tested with gcc-5 and clang-3.7 There are still a tons of format warnings (%d on 64bit) in example-deconstructor.c which I skipped.
* Removed trailing-whitespacesSHIBATA Hiroshi2016-11-231-1/+1
|
* Fixed non-ANSI initializations (fixes #115).Kirill Simonov2009-02-231-4/+4
|
* Fixed grammar in error messages (from YAML::XS::LibYAML).Kirill Simonov2008-07-311-7/+7
|
* Fixed a problem when the DOCUMENT-END event is not emitted until the ↵Kirill Simonov2007-04-171-3/+12
| | | | beginning of the next document is available. Fixed #51. Thanks edward(at)sweetbytes.net for the bug report.
* Eliminate some warnings and add more doxygen definitions.Kirill Simonov2007-01-081-4/+8
|
* Fix Emitter bugs and leaks.Kirill Simonov2006-07-301-1/+1
|
* Implement Emitter state machine.Kirill Simonov2006-07-261-2/+8
|
* Add yaml_emitter_emit_* set of functions.Kirill Simonov2006-07-251-2/+2
|
* Add Emitter definitions and implement the Writer.Kirill Simonov2006-07-231-66/+0
|
* Fix some leaks, segfaults and warnings.Kirill Simonov2006-07-211-2/+7
|
* Refactor internal and external API.Kirill Simonov2006-07-211-630/+572
|
* Complete the Parser (it requires refactoring though) and fix some bugs.Kirill Simonov2006-07-071-12/+483
|
* Implement half of the parsers.Kirill Simonov2006-07-051-0/+766
|
* Start working on the parser.Kirill Simonov2006-07-041-0/+237