summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Allow dots and slashes in anchor namesperlpunk/anchor-charsTina Müller2020-03-292-2/+10
|
* include/yaml.h: fix comments (#155)Junde Yhi2020-03-281-5/+5
| | | | | | | | | * include/yaml.h: fix indentation of comments * include/yaml.h: fix documentation style comment * include/yaml.h: fix doc command returns * include/yaml.h: fix typo
* Change cmake target name from libOFF.a to libyaml.a (#157)Liao Tonglang2020-03-281-1/+1
| | | option can only be ON or OFF. Use set() instead of option() to set default name of target.
* Output document end marker after open ended scalars (#162)Tina Müller (tinita)2020-03-281-0/+12
|
* Always output document end before directive (YAML 1.2 compatibility)Tina Müller2020-03-261-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In YAML 1.1, the document end marker `...` is optional even if the next document starts with a directive: https://github.com/yaml/pyyaml/blob/master/tests/data/spec-07-09.canonical ``` %YAML 1.1 --- !!str "foo" %YAML 1.1 --- !!str "bar" %YAML 1.1 --- !!str "baz" ``` It is only required if the scalar is "open ended", for example for plain scalars. In YAML 1.2 the `...` marker is always required before a directive. My suggestion would be to make the output 1.2 compatible. It will still be 1.1 compatible, so that shouldn't be a problem. I believe this will also make it easier to fix #123 which was introduced with the last fixes regarding `open_ended`. I think I can make a fix for this soon after this issue is fixed. Fixing #123 without this would be a bit more complicated. If we do this, we also need to adjust PyYAML to behave the same. Related issues/commits: - https://github.com/yaml/libyaml/issues/60 - https://github.com/yaml/libyaml/pull/122 - 56400d9, 8ee83c0, 56f4b17
* Add CHANGES file (#159)Tina Müller (tinita)2020-03-262-1/+291
|
* Move appveyor.yml to .appveyor.ymlIngy döt Net2020-03-261-0/+0
|
* Makefile test-suite rule builds libyaml firstIngy döt Net2019-12-211-1/+1
|
* Fix spellingHonkingGoose2019-07-251-1/+1
|
* Squash a couple of warnings in example-deconstructor-altMichael Drake2019-06-061-3/+3
| | | | | | | | | | | example-deconstructor-alt.c: In function ‘main’: example-deconstructor-alt.c:649:51: warning: comparison between ‘yaml_sequence_style_t {aka enum yaml_sequence_style_e}’ and ‘enum yaml_mapping_style_e’ [-Wenum-compare] example-deconstructor-alt.c:650:36: warning: comparison between ‘yaml_sequence_style_t {aka enum yaml_sequence_style_e}’ and ‘enum yaml_mapping_style_e’ [-Wenum-compare]
* Use pointer to const for strings that aren't/shouldn't be modifiedcriptych2019-06-062-19/+19
|
* Fix typo in comment林博仁(Buo-ren Lin)2019-06-061-1/+1
| | | | | s/intendation/indentation/ Signed-off-by: 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
* Fixed typo.SHIBATA Hiroshi2019-06-062-2/+2
|
* Fix typo in READMETina Mueller2019-06-061-2/+2
|
* Add required packages to READMETina Mueller2019-06-061-0/+10
|
* Update configure.ac for 0.2.20.2.2Ingy döt Net2019-03-121-2/+2
|
* Changes for v0.2.2 releaseTina Müller2019-03-124-63/+24
|
* Merge pull request #136 from nitzmahone/win_fixes0.2.2-pre3Matt Davis2019-03-041-2/+3
|\ | | | | allow override of Windows static lib name
| * allow override of Windows static lib nameMatt Davis2019-03-011-2/+3
|/ | | * also changed name back to original default of yaml, as the change in #10 to `yaml_static` broke things that relied on that
* Remove stdbool0.2.2-pre2Tina Müller2019-02-281-5/+4
| | | | Might not be available everywhere
* Make declarations before other statementsTina Müller2019-02-281-3/+5
|
* appveyor.yml: fix Release buildMarty E. Plummer2018-07-191-2/+2
| | | | | | | | I suspect this this was a bit of an oversight when first setting up appveyor for Windows/msvc, but 'release' does not match any target cmake knows about; 'Release', however, does. Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
* build: do not install config.hMarty E. Plummer2018-07-193-3/+2
| | | | | | | | | | | | | | | | | | | | 'config.h' is meant to be a convenience header to be #included at build time, but not installed. Installing it can cause a host of problems for various other projects (for instance, attempting to build u-boot from source while another project's 'config.h' exists in the compiler search path will cause build failures similar to: https://github.com/pepe2k/u-boot_mod/issues/148 Further, I've changed '#include <config.h>' to '#include "config.h"', which should constrain the search path to the current build directories, so if another package with a bugged build has this file installed, it will not cause yaml to miscompile/fail. If you have a file `/usr/include/config.h` on your filesystem, query your package manager to find out what package owns it, and file a bug report against it with your distro maintainers. Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
* 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
* yaml_stack_extend: guard against integer overflowFlorian Weimer2018-07-181-1/+6
|
* fix C++ g++-6 errorsReini Urban2018-07-181-3/+3
| | | | yaml_emitter_write_indicator const char *indicator
* fix clang -Wlogical-op warningsReini Urban2018-07-182-3/+3
| | | | Commit amended by @perlpunk after suggestion from @tlsa
* fix C++-compat errorReini Urban2018-07-173-10/+15
| | | | | we cannot malloc to an anon struct in C++. typedef yaml_anchors_t
* Allow colons in plain scalars inside flow collections0.2.2-pre1Tina Müller2018-06-301-3/+14
| | | | | | | | | | | | | | This is a followup to #28 See http://yaml.org/spec/1.1/#nb-plain-char(c) and the following productions. This commit will allow `[http://example]`, but still fail for: - `[:foo]` - `[foo:]` See https://gist.github.com/perlpunk/de2c631a7b0e9002de351a680eadb573 for all the relevant cases where this change applies.
* Fix yaml_document_deleteReini Urban2018-06-301-5/+0
| | | | Remove unneeded context, which is not set in any macro.
* Fix comparison in tests/run-emitter.cTina Müller2018-06-301-1/+1
|
* Fix typo errorwhiteUnicorn2018-06-301-1/+1
| | | nessesary to necessary
* The closing single quote needs to be indented...Tina Müller2018-06-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if it's on its own line. ``` % cd libyaml % echo "+STR +DOC +SEQ =VAL '\\\n -SEQ -DOC -STR" | ./tests/run-emitter-test-suite - ' ' % # fix % make ... % echo "+STR +DOC +SEQ =VAL '\\\n -SEQ -DOC -STR" | ./tests/run-emitter-test-suite - ' ' ```
* Fix token name typos in commentsViktor Szakats2018-06-302-3/+3
|
* Don't emit document-end marker at the end of streamTina Müller2018-06-301-7/+0
| | | | | | | | (only when explicitly requested) @jrtc27++ for the patch. See #60
* Revert removing of open_ended after top level plain scalarTina Müller2018-06-291-0/+4
| | | | | | | | See also issue #60 Revert "This code is not needed and breaks tests" This reverts commit 56400d976a1999156b1abfd674c3122843980260.
* Changes for 0.2.1 release0.2.1Ingy döt Net2018-06-265-22/+126
|
* Fix two typos in header comments. (#120)Éric Thiébaut2018-06-251-2/+2
|
* Remove need for PTRDIFF_MAXRoger Peppe2018-01-112-25/+14
| | | | It's just as easy to calculate the maximum value directly.
* Major cleanup of .gitignoreMarty E. Plummer2018-01-091-56/+23
| | | | | | | | You don't need to specify full paths to files if you do it like this. Wildcard away most of the stuff you can, and for stuff you can't easily wildcard, be as generic as you can. Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
* Update libyaml homepage link in READMEWilliam Roberts2018-01-091-1/+1
| | | | | | Update the link to point where libyaml is now maintained. Per the old link, "LibYAML is now maintained at https://github.com/yaml/libyaml. This page is left for historical purposes."
* Add mingw-w64 builds to appveyor.ymlMarty E. Plummer2018-01-082-3/+11
| | | | | | | | | | Currently the cygwin autoconf builds only test builds of cygwin-native binaries, and not mingw-w64 pure windows binaries. The resultant cygyaml-0-2.dll has a runtime dep on the cygwin1.dll which is generally not appropriate for the purpose of distribution. Building with mingw-w64 produces libraries with no dependency on the cygwin runtime. Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
* Fixed most compiler warnings -Wall -WextraReini Urban2018-01-0813-121/+141
| | | | | | | | | | | 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.
* Compilation fix for SolarisAndy Grundman2018-01-081-1/+6
| | | | From https://github.com/ingydotnet/yaml-libyaml-pm/issues/24
* Docker test file changes (added alpine testing)Ingy döt Net2018-01-085-27/+54
| | | | | | | | | Also reworked all the dockerfiles to be cleaner and consistent: * Fixed some indentation * Removed vim dependencies * Collapsed RUN steps for less build layers * Renamed dockerfiles/ to shorter and more adaptable docker/
* add -no-undefined to src/Makefile.amMarty E. Plummer2018-01-061-1/+1
| | | | | | | | Without this change building a dll with the mingw-w64 toolchain is impossible. All tests from make test-all succeed on native linux (Gentoo amd64 glibc default/linux/amd64/17.1/desktop gcc-7.2.0) Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
* Fix problems in CI failures (travis and semaphore)Ingy döt Net2018-01-064-17/+30
| | | | | | | | | | | | | | | | | In the Makefile.am, switched out the fetch (which can have auth problems in certain envs) with a simple branch per @perlpunk++'s suggestion. With the new test branches, travis had a problem in that it only clones one branch and we need the other branch refs to be available. Fixed this by fetching the other branch refs. I also cleaned up the travis YAML file. The Ubuntu 14.04 docker image (used by semaphoreci) had an older git, without the worktree command, so I made it install the latest git from a ppa. Renamed tests/run-tests.sh to tests/run-all-tests.sh for tab completion conflict reasons.
* Move tests/run-test-suite to branch run-test-suiteIngy döt Net2017-12-2915-647/+13
| | | | | | | | | | | | | | | | with the intent that `make test-suite` will use it as a branch. This commit makes the libyaml and yaml-test-suite repos completely independent. The only thing in master is a Makefile rule for `make run-test-suite`. The run-test-suite branch takes care of everything else. This will keep the master branch history clean from any yaml-test-suite activity, while keeping everything up to date. Pinning will just work for whatever commit of master you run the tests from. The pinning work will all be done in the `run-test-suite` branch.
* Replace Mercurial with Git in READMETina Müller2017-12-261-1/+1
|