Commit graph

1080 commits

Author SHA1 Message Date
Petri Lehtinen
05a10aa8af Fix code formatting 2025-03-23 22:31:56 +02:00
Petri Lehtinen
4d7ac97b89
Merge pull request #710 from akheron/fix-readthedocs
Add readthedocs config
2025-03-23 21:59:36 +02:00
Petri Lehtinen
23905f372c Add readthedocs config 2025-03-23 21:58:05 +02:00
Petri Lehtinen
ed5cae4ed0 jansson 2.14.1
Some checks failed
tests / lint (push) Failing after 28s
tests / autotools (clang, no, ubuntu-latest) (push) Failing after 32s
tests / autotools (clang, yes, ubuntu-latest) (push) Failing after 30s
tests / autotools (gcc, no, ubuntu-latest) (push) Failing after 39s
tests / autotools (gcc, yes, ubuntu-latest) (push) Failing after 26s
tests / cmake (clang, ubuntu-latest) (push) Failing after 31s
tests / cmake (gcc, ubuntu-latest) (push) Failing after 23s
tests / valgrind (push) Failing after 29s
tests / autotools (gcc, yes, macos-latest) (push) Has been cancelled
tests / cmake (clang, macos-latest) (push) Has been cancelled
tests / cmake (gcc, macos-latest) (push) Has been cancelled
tests / cmake (msvc, windows-latest) (push) Has been cancelled
tests / autotools (clang, no, macos-latest) (push) Has been cancelled
tests / autotools (clang, yes, macos-latest) (push) Has been cancelled
tests / autotools (gcc, no, macos-latest) (push) Has been cancelled
2025-03-23 14:25:44 +02:00
Petri Lehtinen
61fc3d0e28
Merge pull request #686 from akheron/readme-badges
Update badges in README
2024-03-31 22:09:15 +03:00
Petri Lehtinen
cce8caba26 Update badges in README 2024-03-31 22:08:10 +03:00
Petri Lehtinen
50953fb1fa
Merge pull request #680 from akheron/dtoa
Use `dtoa()` for optimal encoding of reals
2024-03-31 22:02:09 +03:00
Petri Lehtinen
c780171cf3 Update CHANGES 2024-03-25 20:19:41 +02:00
Petri Lehtinen
2297a2e320 Update LICENSE to add an exception for src/dtoa.c 2024-03-25 20:19:23 +02:00
Petri Lehtinen
f5b3ab323c Add more tests 2024-03-25 20:08:23 +02:00
Petri Lehtinen
9d3abab610 Test with and without dtoa in CI 2024-03-25 20:08:23 +02:00
Petri Lehtinen
9699de8600 Fix tests 2024-03-25 20:08:23 +02:00
Petri Lehtinen
33a6c95d56 Fix compiler warnings 2024-03-25 20:08:23 +02:00
Petri Lehtinen
ed06f65412 Rename a symbol to avoid collision on Windows 2024-03-25 20:08:23 +02:00
Petri Lehtinen
8b975abca1 Use dtoa for double to string conversion 2024-03-25 20:08:23 +02:00
Petri Lehtinen
8660da0f7c
Merge pull request #685 from akheron/simplify-tests
Simplify tests even more
2024-03-25 20:07:53 +02:00
Petri Lehtinen
dcbeb58829 Simplify tests even more
Drop the useless `export` lines from `env` files.
2024-03-25 19:16:34 +02:00
Petri Lehtinen
53383b9e26
Merge pull request #683 from akheron/refactor-tests
Refactor tests
2024-03-21 20:43:31 +02:00
Petri Lehtinen
649c9357c6 Update CHANGES 2024-03-21 20:43:04 +02:00
Petri Lehtinen
73dc6960ad Show ctest output on failure in CI 2024-03-21 20:36:42 +02:00
Petri Lehtinen
88375fb10e Refactor tests to work better with CMake 2024-03-21 20:36:38 +02:00
Petri Lehtinen
0247b5e2e7 Improve clang-format scripts 2024-03-15 21:06:34 +02:00
Petri Lehtinen
842708ac0c
Merge pull request #677 from akheron/ditch-localeconv
Use sprintf() to determine locale's decimal point
2024-03-08 21:53:07 +02:00
Petri Lehtinen
2d1c13224f Use sprintf() to determine locale's decimal point
This should fix thread safety of encoding and decoding, since
localeconv() is not tread safe after all.
2024-03-08 21:36:21 +02:00
Petri Lehtinen
9b9b5e81cf
Merge pull request #679 from akheron/dependabot/github_actions/github-actions-cb1dee63db
Bump the github-actions group with 1 update
2024-03-08 06:42:02 +02:00
dependabot[bot]
0c9c11a89d
Bump the github-actions group with 1 update
Bumps the github-actions group with 1 update: [actions/upload-artifact](https://github.com/actions/upload-artifact).


Updates `actions/upload-artifact` from 3 to 4
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-07 20:09:47 +00:00
Petri Lehtinen
f52d79a4d3
Merge pull request #672 from pnacht/add-dependabot
Add dependabot, update GitHub Actions
2024-03-07 22:09:25 +02:00
Petri Lehtinen
2f1777ba80
Merge branch 'master' into add-dependabot 2024-03-07 22:08:46 +02:00
Petri Lehtinen
1e57cadbd3
Merge pull request #678 from akheron/ditch-coveralls
Ditch coveralls
2024-03-07 21:54:05 +02:00
Petri Lehtinen
0db4db1048 Ditch coveralls 2024-03-07 21:47:18 +02:00
Pedro Kaj Kjellerup Nacht
73d968feef
Bump GHA versions
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-12-06 23:10:14 +00:00
Pedro Kaj Kjellerup Nacht
0154c4af07
Add dependabot to update GHA
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
2023-12-06 23:10:03 +00:00
Petri Lehtinen
60097f0096
Create SECURITY.md 2023-06-28 07:42:28 +03:00
Petri Lehtinen
bde28463f8
Merge pull request #646 from Bigpet/patch-1
Remove unused ${SOURCE_DIR}/include include path
2023-03-29 22:07:32 +03:00
Peter Tissen
e7c9ef8e52
Remove unused ${SOURCE_DIR}/include include path
The directory `${CMAKE_CURRENT_SOURCE_DIR}/include` is never created or used. Except in case of an in-source build but then  `${CMAKE_CURRENT_BINARY_DIR}/include` would be the same, so it would only duplicate the correct entry.

Not sure if the intermediary `JANSSON__INCLUDE_DIRS` is still necessary but I thought I'd change as little as possible.

The reason for eliminating this is that when you use CLion and sync into a docker container it will try to copy all include dirs back. Non-existant paths cause warnings every time.
2023-03-29 12:44:28 +02:00
Petri Lehtinen
a22dc95311
Merge pull request #640 from uniontech-lilinjie/master
fix typo
2023-01-11 22:25:45 +02:00
lilinjie
a7d04c8554 fix typo
Signed-off-by: lilinjie <lilinjie@uniontech.com>
2023-01-10 16:35:44 +08:00
Petri Lehtinen
e23f558007
Merge pull request #628 from neheb/patch-1
hashtable: change to ifdef
2022-08-24 17:10:48 +03:00
Rosen Penev
1894366598
hashtable: change to ifdef
All other usages use ifdef.
2022-08-22 18:13:57 -07:00
Petri Lehtinen
7e04530916 Remove the confusing vcpkg ad from README 2022-08-09 22:24:38 +03:00
Petri Lehtinen
011e625769
Merge pull request #626 from akheron/fix-example
Add a missing json_decref in the example
2022-08-09 22:05:05 +03:00
Petri Lehtinen
de5f2963ab Add a missing json_decref in the example 2022-08-09 22:00:45 +03:00
Petri Lehtinen
128e9c5f37
Merge pull request #610 from Thomas1664/master
Fix overwriting linker flags
2022-05-03 05:48:09 +03:00
Thomas Heinrichs
fe6e8eec7e Fix overwriting linker flags 2022-04-28 17:36:54 +02:00
Petri Lehtinen
addeeef408 Add some links to README 2021-11-22 16:30:12 +02:00
Petri Lehtinen
d82b436b2f
Merge pull request #598 from Mephistophiles/remove_internal_strlen
Reduce strlen's in jansson internals
2021-11-21 07:38:59 +02:00
Maxim Zhukov
586b4461e6 tests: add some cases in fixed size test
Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
2021-11-20 22:57:10 +03:00
Maxim Zhukov
78418c84f1 value, pack: use key length from json_object iternals
Reduce the number of strlen calls in the jansson backend.

Test on my laptop (count of the instructions)

  Before:
  ❯ valgrind --tool=callgrind ./bin/test_object
  ==3105045== Events    : Ir
  ==3105045== Collected : 441453

  After:
  ❯ valgrind --tool=callgrind ./bin/test_object
  ==3144451== Events    : Ir
  ==3144451== Collected : 440597

Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
2021-11-20 22:47:14 +03:00
Petri Lehtinen
eb81670881
Create CONTRIBUTING.md 2021-09-12 18:37:43 +03:00
Petri Lehtinen
0677666f65 Fix the check-exports tests for versioned symbols 2021-09-09 21:55:27 +03:00