summaryrefslogtreecommitdiffstats
path: root/Makefile.am
AgeCommit message (Collapse)Author
2024-01-26builtin.c: fix build with -Woverlength-stringsEmanuele Torre
C99 only allows string literals long at most 4095 characters. jq_builtins was a lot longer than that. I rewrote all the optional libm error stubs in C so the value of jq_builtins is not build dependent. I replaced the command that generates builtin.inc with a POSIX compliant od|sed command that encodes builtin.jq as a comma delimited list of octal numbers (that can be embedded in C using a {} literal). I also added -Woverlength-strings to AM_CFLAGS to verify that the problem is fixed. Fixes #1481
2024-01-26Makefile.am: fix lines indented with tabs instead of spacesEmanuele Torre
2023-12-13Makefile.am: don't use -lshlwapi to build jq on WIN32Emanuele Torre
It does not need it, only libjq needs this.
2023-08-23Include more updates to NEWS.md and AUTHORS for 1.7itchyny
2023-08-19Add --config option printing ./configure options usedNicolas Williams
2023-08-13Rename jv_type_private.h to jv_private.h, move jvp_number_is_nan thereitchyny
2023-08-12Build windows 64bit binary using UCRT64 (#2832)Mattias Wadman
* Build windows 64bit binary using UCRT64 Is the default and recommended msystem setting. Will produce binaries that are compatible with windows 10 and later. Also run tests for 32bit build. Related to #2831 * Use jq -b in tests/shtest * Add Windows strptime * Make Windows-optional tests not run on Windows again --------- Co-authored-by: Nicolas Williams <nico@cryptonector.com>
2023-08-01Require a main program (fix #2785)Nicolas Williams
2023-07-31Don't unnecessarily ignore missing-field-initializers warningsEmanuele Torre
2023-07-31Declare cfunction.fptr as jv (*)() to avoid having to cast everywhereEmanuele Torre
You only need to specify the return type in a function pointer declaration in C. If you use () in the declaration, the function pointer can be called with any arguments, and the type of the arguments is decided for each function call based on the types of the arguments used for the call. (To declare a function pointer for a function with no arguments, you use `(void)'.) Since all the cfunction structs have a fptr that points to a functions that return jv, not void, we can we can just declare cfunction.fptr as jv (*)() and avoid having those annoying and technically not C-standard compliant casts everywhere.
2023-07-31Redesign website (#2628)itchyny
* Bump up Bootstrap to v5.3.1, Bootstrap Icon to v1.10.5. * Use autoComplete.js to drop dependency on jQuery and typeahead.js. * Support dark mode. * New svg logo and icon with responsive color mode support. * Normalize section ids to lower kebab-case for easiness of linking. * Use relative paths for links for local development (--root /output). * Various markup cleanups and accessibility improvements.
2023-07-30Use -Wno-cast-function-type to quiet many warningsNicolas Williams
2023-07-24Make maintainer-mode default to disabledMattias Wadman
This makes the standard build instructions a bit easier, just ./configure, and also requires less tools installed (bison). Also i think few people probably want to generate the lexer and paser code.
2023-07-22Validate manual schemaitchyny
2023-07-18Split man.test to make tests pass without oniguruma (#2722)itchyny
2023-07-13Make sure distcheck passes and run dist job on Pull Requestitchyny
2023-07-10Do not remove manpage prebuild file on build failureitchyny
2023-06-28fix: tarball fails distcheck: add files missing from manifest (#2538)Allan Clark
2023-06-28Fix bison warnings on incompatibilities with POSIX Yacc (#2634)itchyny
2023-06-27Ignore error of outdated manual test when docs disabled (fix #2310) (#2630)itchyny
2023-06-16Fix double-installed doc (#2482)Dan Church
The README symlink was causing the file to be installed twice in <DOCDIR>.
2023-06-16Use autotools standard ${docdir} (#2468)Dan Church
Specified with `--docdir=<path>`, the `$(docdir)` variable is already available, and has the same default as what it was being set to. By specifying it here, it overrides what the `--docdir` option specifies.
2023-06-13Fix misspellings (#2609)Josh Soref
2020-03-03Makefile: prepend srcdir to jq.1.prebuilt to fix out of source compilationChristopher Degawa
2020-03-02Rework pipenv requirement to be more relaxedWilliam Langford
Keep a cached copy of the man tests that we can use when no manpage changes are made. This allows automated systems that might not have easy access to a pipenv to build and run tests.
2019-10-22Save literal value of the parsed number to preserve it for the outputLeonid S. Usov
Extend jv_number to use decNumber for storing number literals. Any math operations on the numbers will truncate them to double precision. Comparisons when both numbers are literal numbers will compare them without truncation. Delay conversion of numbers to doubles until a math operation is performed, to preserve precision. A literal jv_number will only need conversion to double once, and will reuse the resultant double on subsequent conversions. Outputting literal jv_numbers preserves the original precision. Add strong pthread requirement to manage contexts/allocations for converting numbers between their decNumber, string, and double formats.
2019-06-11Makefile.am: fix builtin.inc with out-of-root buildsRicardo Constantino
2019-03-29Add pkg-config file for libjqMattias Hansson
pkg-config is a common interface to resolve build details. It will become easier to incorporate libjq in other projects by providing this interface.
2019-03-24Disable docs by default; don't mantest if no docsNicolas Williams
2019-02-26Bind libraries backward for consistent shadowingMuh Muhten
2019-02-26Fix regression on ~/.jq being a directoryMuh Muhten
2019-02-26Remove ruby dependency from manpage buildWilliam Langford
2019-02-26Remove ruby dependency from website buildWilliam Langford
2019-02-17Allow globbing on WindowsJason Hood
The mingw-w64 runtime expands wildcards, which causes a discrepancy between `main`'s `argv` (multiple file names) and Windows' `wargv` (a single wildcard). Use `wmain` to retrieve the wide character args.
2019-01-30Fix build on BSD makeMuh Muhten
Replace uses of the nonstandard $^ variable by explicitly specifying the source filenames. This is the only obvious thing preventing the build from running correctly on non-GNU make.
2018-12-26Out-of-srcdir builds: AM_CPPFLAGS=-I${srcdir}/srcNicolas Williams
2018-12-26Makefile.am: add no-undefined for win32Ricardo Constantino
"Undefined symbols are not allowed in x86_64-w64-mingw32 shared libraries" This was also applied in the official MINGW-packages repo: Alexpux/MINGW-packages@b5566c58a
2018-12-18Ensure that `${builddir}/src` existsmail6543210
2017-03-01Fix make distNicolas Williams
2017-02-25Windows: Also use -lshlwapi for jq(1)Nicolas Williams
2017-02-18Add local oniguruma submoduleErik Brinkman
Configure should still allow use of prebuilt onigurumas (whether system-installed or in a special prefix). If these are not found, and configure was not called with `--without-oniguruma`, then use the vendored oniguruma module. If configure was called with `--without-oniguruma`, then we do not build regex functionality into jq.
2017-02-12Add @base64d for decoding base64 #47Shaun Guth
2017-01-27Handle cut-off UTF-8 sequences when reading filesWilliam Langford
Read additional bytes from the file to complete the UTF-8 sequence so the bytes in it don't get converted to U+FFFD replacement characters.
2016-01-17Add --enable-ubsan (undefined behavior sanitizer)Nicolas Williams
2016-01-17Enable more tests on Windows; move sort_by testsNicolas Williams
Use %%FAIL IGNORE MSG for error messages that differ on Windows, and move the sort_by/group_by tests that fail qhen qsort() is not stable. Now only tests/sorttest and tests/shtest are disabled on Windows.
2016-01-16Fix Windows build (fix #911)Nicolas Williams
2016-01-15fixup non-maintainer buildNicolas Williams
2016-01-15Always build src/builtin.inc (fix #1069)Nicolas Williams
2015-10-27Add address sanitizer (ASAN) support (fix #1002)Nicolas Williams
2015-10-22Fix builtin.o dependency (#992)Nicolas Williams