]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Import libxo-1.0.2
authorphil <phil@FreeBSD.org>
Wed, 3 Apr 2019 21:55:39 +0000 (21:55 +0000)
committerphil <phil@FreeBSD.org>
Wed, 3 Apr 2019 21:55:39 +0000 (21:55 +0000)
commit11f8ca01b7f31a68942c75298d8a228dfe799007
treee09ac674034391ae7156f745debdfda5c8983e0a
parentb37e550602875c8efbb0a0cc9791cf1778c53c8d
parentb9287c2831355de02613474f9a8a418712d6a89a
Import libxo-1.0.2

from 1.0.0:
    Add "continuation" flag, to allow multiple "xo" invocations in a single line of output (#58)
    Add --top-wrap to make top-level JSON wrappers
    Add --{open,close}-{list,instace} options
    Add xo_xml_leader(), to detect use of some bogus XML tags. It's still bad form, but it's a little safer now
    Avoid call to xo_write before xo_flush, since the latter calls the former
    Check return code from xo_flush_h properly (<0) (FreeBSD Bug 236935)
    For JSON output, avoid newline before a container's close brace (#62)
    Merge branch 'text_only' of https://github.com/zvr/libxo into zvr-text_only
    Use XO_USE_INT_RETURN_CODES, not USE_INT_RETURN_CODES
    add docs for --continuation
    add docs for --not-first
    call xo_state_set_flags before values and close containers; add XOIF_MADE_OUTPUT flag to track state; make proper empty JSON objects in xo_finish
    color_map code has to be #ifdef'd out, since the struct definition
    correct xo_flush_func_t (doesn't use xo_ssize_t)
    make depth change for --top-wrap only for JSON
    fix to handle --top-wrap in "xo" by being more consistent with handling trailing newlines
    fix to handle text-only version #64 (from zvr)
    fix xo_buf_has_room for round up to the next XO_BUFSIZ, not just add XO_BUFSIZ to the size (FreeBSD Bug 236937)
    update docs for new "xo" options
    update functions to use xo_ssize_t
    update test cases
from 1.0.1:
    Add EINTEGRITY to .pot files under test/gettext/ (fix from FreeBSD)
from 1.0.2:
    handle failure from xo_vnsprintf; don't add -1 to "rc"

PR: 236937, 236935
Submitted by: phil
Reported by: Alfonso S. Siciliano <alfix86@gmail.com>
MFC after: 2 weeks
80 files changed:
contrib/libxo/configure.ac
contrib/libxo/doc/api.rst
contrib/libxo/doc/libxo-manual.html
contrib/libxo/doc/xo.rst
contrib/libxo/libxo/Makefile.am
contrib/libxo/libxo/libxo.c
contrib/libxo/libxo/xo.h
contrib/libxo/libxo/xo_attr.3
contrib/libxo/libxo/xo_buf.h
contrib/libxo/libxo/xo_emit.3
contrib/libxo/libxo/xo_emit_f.3
contrib/libxo/libxo/xo_explicit.h
contrib/libxo/libxo/xo_finish.3
contrib/libxo/libxo/xo_flush.3
contrib/libxo/libxo/xo_open_container.3
contrib/libxo/libxo/xo_open_list.3
contrib/libxo/libxo/xo_open_marker.3
contrib/libxo/libxo/xo_set_writer.3
contrib/libxo/tests/core/saved/test_01.J.out
contrib/libxo/tests/core/saved/test_02.J.out
contrib/libxo/tests/core/saved/test_03.J.out
contrib/libxo/tests/core/saved/test_04.J.out
contrib/libxo/tests/core/saved/test_05.J.out
contrib/libxo/tests/core/saved/test_05.JP.out
contrib/libxo/tests/core/saved/test_06.J.out
contrib/libxo/tests/core/saved/test_07.J.out
contrib/libxo/tests/core/saved/test_08.J.out
contrib/libxo/tests/core/saved/test_09.J.out
contrib/libxo/tests/core/saved/test_10.J.out
contrib/libxo/tests/core/saved/test_11.J.out
contrib/libxo/tests/core/saved/test_12.E.err
contrib/libxo/tests/core/saved/test_12.E.out
contrib/libxo/tests/core/saved/test_12.H.err
contrib/libxo/tests/core/saved/test_12.H.out
contrib/libxo/tests/core/saved/test_12.HIPx.err
contrib/libxo/tests/core/saved/test_12.HIPx.out
contrib/libxo/tests/core/saved/test_12.HP.err
contrib/libxo/tests/core/saved/test_12.HP.out
contrib/libxo/tests/core/saved/test_12.J.err
contrib/libxo/tests/core/saved/test_12.J.out
contrib/libxo/tests/core/saved/test_12.JP.err
contrib/libxo/tests/core/saved/test_12.JP.out
contrib/libxo/tests/core/saved/test_12.T.err
contrib/libxo/tests/core/saved/test_12.T.out
contrib/libxo/tests/core/saved/test_12.X.err
contrib/libxo/tests/core/saved/test_12.X.out
contrib/libxo/tests/core/saved/test_12.XP.err
contrib/libxo/tests/core/saved/test_12.XP.out
contrib/libxo/tests/core/test_12.c
contrib/libxo/tests/gettext/po/pig_latin/strerror.po
contrib/libxo/tests/gettext/saved/gt_01.J.out
contrib/libxo/tests/xo/Makefile.am
contrib/libxo/tests/xo/saved/xo_01.H.out
contrib/libxo/tests/xo/saved/xo_01.HIPx.out
contrib/libxo/tests/xo/saved/xo_01.HP.out
contrib/libxo/tests/xo/saved/xo_01.J.out
contrib/libxo/tests/xo/saved/xo_01.JP.out
contrib/libxo/tests/xo/saved/xo_01.T.out
contrib/libxo/tests/xo/saved/xo_02.H.err
contrib/libxo/tests/xo/saved/xo_02.H.out
contrib/libxo/tests/xo/saved/xo_02.HIPx.err
contrib/libxo/tests/xo/saved/xo_02.HIPx.out
contrib/libxo/tests/xo/saved/xo_02.HP.err
contrib/libxo/tests/xo/saved/xo_02.HP.out
contrib/libxo/tests/xo/saved/xo_02.J.err
contrib/libxo/tests/xo/saved/xo_02.J.out
contrib/libxo/tests/xo/saved/xo_02.JP.err
contrib/libxo/tests/xo/saved/xo_02.JP.out
contrib/libxo/tests/xo/saved/xo_02.T.err
contrib/libxo/tests/xo/saved/xo_02.T.out
contrib/libxo/tests/xo/saved/xo_02.X.err
contrib/libxo/tests/xo/saved/xo_02.X.out
contrib/libxo/tests/xo/saved/xo_02.XP.err
contrib/libxo/tests/xo/saved/xo_02.XP.out
contrib/libxo/tests/xo/xo_01.sh
contrib/libxo/tests/xo/xo_02.sh
contrib/libxo/xo/xo.1
contrib/libxo/xo/xo.c
lib/libxo/xo_config.h
usr.bin/xohtml/xohtml.sh