aboutsummaryrefslogtreecommitdiff
path: root/contrib/libxo
Commit message (Collapse)AuthorAgeFilesLines
* Import libxo-1.4.0:Phil Shafer2020-01-2520-45/+294
| | | | | | | | | | | | | | | | | | | | - Two changes to encoder options: encoder options may use plus or colon, but only one encoder names can be specified as "@name" This results in the syntax: df --libxo @csv:no-header:leafs=name.available-blocks / - If xo_set_program is called before xo_parse_args, honor the requested value - add xo_errorn* function; repair newline-adding-on-xo_error bug - test programs now use fixed name, since linux libtool prefixs "lt-" - Fix "horse butt" comment in source code - update test cases PR: 242686 Notes: svn path=/head/; revision=357125
* Import libxo-1.3.1:Phil Shafer2019-11-073-2/+7
| | | | | | | | - handle argv[0] without '/' - add test case for argv[0] without '/' Notes: svn path=/head/; revision=354455
* Import libxo-1.3.0:Phil Shafer2019-11-0793-32096/+2633
| | | | | | | | | | - move from "oxtradoc" to RST/Sphinx documentation - new "csv" encoder, which allows path and leaf lists - address warnings from PVS-Stdio tool - add "xolint" detected errors to the documentation Notes: svn path=/head/; revision=354427
* Fix expected output after r347207Li-Wen Hsu2019-05-089-9/+9
| | | | | | | | | | | | | While phil is working on fixing in libxo general test parts, updating these files to stop the test failure warnings Approved by: phil MFC with: r347207 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20188 Notes: svn path=/head/; revision=347359
* Import libxo-1.0.4:Phil Shafer2019-05-0625-69/+100
| | | | | | | | | | | | | - Avoid NULL deref in xo_xml_leader_len (replacing local fix in rS345967) - update copyright dates - update test cases - fix uncommitted version change Submitted by: phil MFC after: 2 weeks Notes: svn path=/head/; revision=347207
* Emergency fix for NULL deref in xo_xml_leader_lenPhil Shafer2019-04-051-1/+1
| | | | Notes: svn path=/head/; revision=345967
* Import libxo-1.0.2Phil Shafer2019-04-0378-254/+1288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=345859
* Create new EINTEGRITY error with message "Integrity check failed".Kirk McKusick2019-01-172-0/+8
| | | | | | | | | | | | | | | | | | | | | | An integrity check such as a check-hash or a cross-correlation failed. The integrity error falls between EINVAL that identifies errors in parameters to a system call and EIO that identifies errors with the underlying storage media. EINTEGRITY is typically raised by intermediate kernel layers such as a filesystem or an in-kernel GEOM subsystem when they detect inconsistencies. Uses include allowing the mount(8) command to return a different exit value to automate the running of fsck(8) during a system boot. These changes make no use of the new error, they just add it. Later commits will be made for the use of the new error number and it will be added to additional manual pages as appropriate. Reviewed by: gnn, dim, brueffer, imp Discussed with: kib, cem, emaste, ed, jilles Differential Revision: https://reviews.freebsd.org/D18765 Notes: svn path=/head/; revision=343111
* Import libxo-0.9.0:Phil Shafer2018-05-2338-249/+6081
| | | | | | | | | | | | | | | | - Add xo_format_is_numeric() with improved logic to decide if format strings are numeric, so json output quotes them - Convert docs to sphinx/rst - update tests Includes fix for PR 221676: https://github.com/Juniper/libxo/commit/27d3021cc3cc8cfbe9ddee5930cd7a9afea8f68f#diff-5a0d468963477f7daedb8308c219dd80 PR: 221676 MFC after: 5 days Notes: svn path=/head/; revision=334068
* Update from libxo-0.8.1 to 0.8.4:Phil Shafer2017-08-0360-30/+557
| | | | | | | | | | | | | | | | | | | | | | | | | | | 0.8.4: - void anchor width optimization when we have a custom formatter (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221130) - make "{[:/18}" do the right thing (also allows "{[:/%s}", wide ? 40 : 10) - Can't skip anchor formatting in non-display styles - add test case for {[:/18} - add upload-xohtml-files to 'make upload' 0.8.3: - xohtml: Add "-w" option to pull support files from gh_pages - Add "upload-xohtml-files" target to publish support files in gh_pages/ - add HISTORY/AUTHORS section to man pages 0.8.2: - xohtml: Add div.units as standard CSS text - Don't treat values as format strings; they are not - add "-p" to "mkdir -p build" in setup.sh - add test case for {U:%%} (from df.c) - detect end-of-string in '%' and '' escaping - make xo_simple_field, for common simple cases - xohtml: nuke "n" in "echo" commands - rename "format" to "fmt" for consistency; same for "str" to "value" Submitted by: phil Notes: svn path=/head/; revision=322019
* Merge libxo-0.8.2:Phil Shafer2017-06-1616-117/+188
| | | | | | | | | | | | | | | | | | | | - xohtml: Add "-w" option to pull support files from gh_pages - Add "upload-xohtml-files" target to publish support files in gh_pages/ - add HISTORY/AUTHORS section to man pages - xohtml: Add div.units as standard CSS text - Don't treat values as format strings; they are not - add "-p" to "mkdir -p build" in setup.sh - add test case for {U:%%} (from df.c) - detect end-of-string in '%' and '' escaping - make xo_simple_field, for common simple cases - xohtml: nuke "n" in "echo" commands - rename "format" to "fmt" for consistency; same for "str" to "value" - update test cases Submitted by: phil Notes: svn path=/head/; revision=319999
* Import libxo-0.8.1 with official fix to today's build break.Phil Shafer2017-06-093-5/+18
| | | | | | | Submitted by: phil Notes: svn path=/head/; revision=319731
* remove xo_color_t dup typedefPhil Shafer2017-06-081-1/+0
| | | | Notes: svn path=/head/; revision=319709
* Import libxo-0.8.0:Phil Shafer2017-06-0841-2641/+3103
| | | | | | | | | | | | | | | | - addition of --libxo colors=xxxxx color map (so I never see "blue") - fix bugs from -fsanitize=address and =undefined - utf-8 changes (remove support fore 6 byte utf-8 values, which are "historical") - add comments - fix man pages - update test cases Submitted by: phil Reviewed by: sjg Approved by: sjg (mentor) Notes: svn path=/head/; revision=319694
* Import libxo-0.7.2; add xo_options.7.Phil Shafer2017-05-1625-526/+806
| | | | | | | | | Submitted by: phil Reviewed by: sjg Approved by: sjg (mentor) Notes: svn path=/head/; revision=318364
* Renumber copyright clause 4Warner Losh2017-02-283-3/+3
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Update libxo to 0.6.3Enji Cooper2016-07-032-2/+2
| | | | | | | | | | | | | | | | This fixes the 02 testcases on i386 (at least), and may fix the testcases in general on 32-bit platforms Differential Revision: https://reviews.freebsd.org/D7052 Approved by: phil (maintainer) Approved by: re (gjb) Reported by: asomers Reviewed by: phil Submitted by: phil Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=302321
* Submitted by: philPhil Shafer2016-05-2917-38/+195
| | | | | | | | Reviewed by: sjg (mentor) Approved by: sjg Notes: svn path=/head/; revision=300925
* Undo meaningless local changes to libxo so we're in sync with the github repo.Phil Shafer2016-05-282-2/+2
| | | | | | | | | Submitted by: phil Reviewed by: sjg (mentor) Approved by: sjg Notes: svn path=/head/; revision=300912
* Import to 0.6.1Phil Shafer2016-04-1545-800/+2473
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0.5.0: document "trim" modifier add xo_emit_field functions Add xo_set_file{,_h} functions Fix LIBXO_* variables; add -L and -I as needed add --disable-silent-rules and an explicit make; s/PACKAGE-NAME/PACKAGE_NAME/; add /download/ to 'url' fix silliness where xo_flush_h emitted closing tag (html); make the caller (xo_message) do it flush after transitions; fix flush call in xo_do_emit mkdir the version-specific packaging dir use "XO_" instead of LIBXO_ 0.6.0: Add --with-retain-size to set the size (in bits) of the retain hash buckets Add The Argument Modifier ({a:}) Add retain and no-retain to --libxo autoconf: Add test for monitor.h Document quote heuristic go deep with nroff backslashes Use "ULL" for 32 bit check add xo_retain_clear and xo_retain_clear_all docs: combine two 'handles' section; move command line argument section handle GETTEXT when msgfmt isn't where it's supposed to be (FreeBSD) make 'retain' a flag (XOEF_RETAIN) instead of a role; it's simpler, and doesn't feel as tacky. "{R:}" was painful to document, which means it's painful to use. new xo_emit_f functions nuke some unused UNUSEDs test code: path must be static update test cases 0.6.1: fix version number (missed a commit during new-release) Reviewed by: sjg Approved by: sjg (mentor) Notes: svn path=/head/; revision=298083
* import libxo-0.4.7Phil Shafer2016-04-1514-262/+96
| | | | | | | | | | | Fix bug w/ {e:} in html, where no default encoding format was built docs: "t" == "trim" (typo) (cf svn commit: r290445 - head/contrib/libxo/libxo) Reviewed by: sjg Approved by: sjg (mentor) Notes: svn path=/head/; revision=298067
* Merge libxo 0.4.6Phil Shafer2016-04-1214-9585/+27203
| | | | | | | | Reviewed by: sjg Approved by: sjg (mentor) Notes: svn path=/head/; revision=297894
* Bring down 0.4.5 vendor files and other catchups with the distribution tarball.David E. O'Brien2016-03-166-287/+416
| | | | | | | Reviewed by: phil Notes: svn path=/head/; revision=296968
* Move generated file from contrib to build directory.Phil Shafer2016-03-161-247/+0
| | | | | | | | Reviewed by: obrien Approved by: sjg Notes: svn path=/head/; revision=296967
* Root out files that don't really belong here and could in fact screwMaxim Sobolev2016-02-021-46/+0
| | | | | | | | | | | you over if you happen to use git for FreeBSD development, as it is the case with the unbound/.gitignore, which lits files that are actually required for the buildworld. MFC after: 1 day Notes: svn path=/head/; revision=295159
* The field modifier for trimming whitespaceHajimu UMEMOTO2015-11-061-2/+2
| | | | | | | is not `q' but `t'. Notes: svn path=/head/; revision=290445
* Fix build for architectures that define wchar_t as an unsigned int.Marcel Moolenaar2015-08-241-2/+2
| | | | | | | Reported by: bz@ Notes: svn path=/head/; revision=287114
* Upgrade libxo to 0.4.5.Marcel Moolenaar2015-08-24171-2337/+11993
| | | | | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo Notes: svn path=/head/; revision=287111
* Unbreak libxo's handling of characters not representable in current localeAlexander Kabaev2015-06-131-1/+2
| | | | | | | | | | | | | The xo_format_string_direct function loops forever never advancing the processed string pointer when it encounters a character that makes mbrtowc fail. Make it emit '?' character instead, as it seems this is what the code intent was, sans bugs. Differential Revision: https://reviews.freebsd.org/D2802 Reviewed by: marcel Notes: svn path=/head/; revision=284340
* Fix build breakage with GCC.Marcel Moolenaar2015-04-271-1/+1
| | | | | | | Pointed out by: bz@ Notes: svn path=/head/; revision=282117
* Upgrade libxo to 0.3.2.Marcel Moolenaar2015-04-2757-1265/+4293
| | | | | | | | | | | Obtained from: https://github.com/Juniper/libxo/tree/0.3.2 Requested by: Phil Shafer <phil@juniper.net> This import incorporates local change 279966. Local change 276260 has been merged-in. Notes: svn path=/head/; revision=282100
* Mark xo_err(3), xo_errx(3), and xo_errc(3) as __dead2.Edward Tomasz Napierala2015-03-131-3/+3
| | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2059 Reviewed by: marcel@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279966
* Upgrade libxo to 0.2.0.Marcel Moolenaar2015-01-1982-714/+4080
| | | | | | | | | | | Obtained from: https://github.com/Juniper/libxo Requested by: Phil Shafer <phil@juniper.net> Revisions 276253 & 276273 were incorporated into 0.2.0. Revision 276260 has been merged-in. Notes: svn path=/head/; revision=277353
* Output strerror from xo_warnAlfred Perlstein2014-12-271-3/+1
| | | | | | | | | | Reported by: bapt Reviewed by: bapt, ngie Differential Revision: https://reviews.freebsd.org/D1378 Notes: svn path=/head/; revision=276273
* Escape Do to prevent mdoc(7) parser to get confused with the "Do" macroBaptiste Daroussin2014-12-261-2/+2
| | | | | | | Reported by: sjg Notes: svn path=/head/; revision=276260
* mdoc fixesBaptiste Daroussin2014-12-263-5/+5
| | | | Notes: svn path=/head/; revision=276253
* Upgrade libxo to 0.1.6.Marcel Moolenaar2014-11-185-32/+57
| | | | | | | | | | Summary of changes: 1. Coverity defect fixes Obtained from: https://github.com/Juniper/libxo/releases/tag/0.1.6 Notes: svn path=/head/; revision=274672
* Upgrade libxo to 0.1.5Marcel Moolenaar2014-11-1111-22/+45
| | | | | | | Obtained from: https://github.com/Juniper/libxo Notes: svn path=/head/; revision=274405
* Add generated headers xoversion.h and xoconfig.h. These are the resultMarcel Moolenaar2014-10-232-0/+237
| | | | | | | | | | of configuring the source tree: % automake --add-missing % autoconf % ./configure Notes: svn path=/head/; revision=273563
* Import libxo 0.1.4Marcel Moolenaar2014-10-23204-0/+37851
Obtained from: https://github.com/Juniper/libxo Sponsored by: Juniper Networks, Inc. Notes: svn path=/head/; revision=273562