Skip to content
Merged

so4 #2415

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
271b0cf
yanglint UPDATE top-level list of ext-inst data support
michalvasko Jul 21, 2025
7783869
VERSION bump to version 3.13.3
michalvasko Jul 21, 2025
737ae71
tree schema UPDATE allow freeing parsed modules
michalvasko Sep 10, 2024
2e11ff4
tree schema UPDATE put compiled ext definitions into main module
michalvasko Sep 12, 2024
75aba84
plugins types REFACTOR remove redundant parameter
michalvasko Sep 12, 2024
cb19341
plugins exts UPDATE data node for ext data cb is provided
michalvasko Sep 12, 2024
53a297b
tree schema UPDATE do not store lyd_value default values
michalvasko Sep 18, 2024
9b77f91
build UPDATE define global macros
michalvasko Oct 2, 2024
64eff49
context UPDATE move writable members outside context
michalvasko Oct 2, 2024
e33258b
libyang REFACTOR minor improvements and fixes
michalvasko Oct 2, 2024
29eb033
lyb UPDATE generating schema hashes manually
michalvasko Oct 2, 2024
b265e53
context FEATURE printing compiled context
michalvasko Oct 2, 2024
3590968
cmake BUGFIX gcov/gcc version check
michalvasko Oct 3, 2024
adcc4aa
context REFACTOR member renaming
michalvasko Oct 3, 2024
1bd9890
context UPDATE prevent printed context from being modified
michalvasko Oct 3, 2024
d4f63dd
context UPDATE parsing data using printed context
michalvasko Oct 4, 2024
dcb0c21
printer context UPDATE dynamic plugins not supported
michalvasko Oct 11, 2024
1bd4627
parser data UPDATE support some parsing flags for ops
michalvasko Oct 18, 2024
8db49d7
libyang BUGFIX wrong rebase conflict resolution
michalvasko Dec 20, 2024
1381d4a
xpath BUGFIX properly distinguish same dictionaries
michalvasko Jan 2, 2025
0ca2f16
plugins types REFACTOR shorter ids
Jan 16, 2025
1648ec9
plugins types UPDATE index/ptr plugin retrieval
Jan 16, 2025
e3eb39a
context UPDATE widen options from 16 to 32-bit
Jan 17, 2025
2ac4dbd
context UPDATE add static plugins only flag
Jan 17, 2025
c9e6406
plugins extension REFACTOR add a dash to ext IDs
Jan 17, 2025
3c0a077
plugins types UPDATE simplify type plugin getter
Jan 20, 2025
aa9dce5
plugins exts UPDATE simplify ext plugin getter
Jan 20, 2025
2812e2b
context BUGFIX free plugins with printed ctx
Jan 20, 2025
44383c8
test schema UPDATE finish compiled ctx print test
Jan 20, 2025
713ea7b
plugins REFACTOR add doxygen to static func
Jan 20, 2025
ae1d26d
plugins UPDATE merge type/ext plugin find funcs
Jan 20, 2025
03da663
plugins BUGFIX move ext plgs outside builtin only
Jan 22, 2025
74a6167
printer context BUGFIX build addr ht first
Jan 22, 2025
0bcd66e
printer context BUGFIX struct ext handling
Jan 22, 2025
17b6c46
test schema UPDATE compiled print test
Jan 22, 2025
705f153
plguins REFACTOR various smaller docs refactoring
Jan 22, 2025
b2d1485
plugins REFACTOR s/plugin_id/plugin_ref
Jan 22, 2025
34ff4dc
plugins REFACTOR remove dash from id
Jan 24, 2025
8eabfee
plugins UPDATE replace plg get fn call with macro
Roytak Jan 24, 2025
fe46639
context UPDATE clarify static and builtin flags
Roytak Jan 24, 2025
fd9aff0
tests UPDATE replace canonical print by func call
Roytak Jan 24, 2025
aa0977c
printer lyb BUGFIX move assignment from assert
Roytak Jan 24, 2025
12b8de3
printer context UPDATE clarify addr_ht building
Roytak Jan 24, 2025
e54a283
plugins BUGFIX use correct array bound
Roytak Jan 24, 2025
b46ab81
plugins REFACTOR various small changes
Roytak Jan 24, 2025
8e466d6
log BUGFIX add missing unlock
Roytak Jan 27, 2025
734ba30
xpath BUGFIX pass correct format to validate
Roytak Jan 27, 2025
b1951f1
printer context BUGFIX check for NULL ext
Roytak Jan 29, 2025
e149e8f
printer context BUGFIX index expr repeat correctly
Roytak Jan 29, 2025
e66d11a
context UPDATE add is ctx printed API
Roytak Feb 21, 2025
80cb131
context UPDATE unify ctx data creation
Roytak Feb 21, 2025
e349b02
dict UPDATE ctx use separate data and schema dicts
Roytak Feb 21, 2025
4e99660
printer context BUGFIX add ext stmt to addr_ht
Roytak Feb 21, 2025
d2d6d33
printer context BUGFIX use correct ht val eq cb
Roytak Feb 21, 2025
2e66f3a
xpath UPDATE use separate schema and data dicts
Roytak Feb 21, 2025
99252c5
context BUGFIX do not free existing ctx data
Roytak Mar 6, 2025
4b3bf5b
plugins UPDATE use correct plugin getter
Roytak Mar 6, 2025
a7655c1
tree schema free UPDATE delete static fn decl
Roytak Mar 6, 2025
9be60f3
test union BUGFIX check correct error messages
Roytak Mar 6, 2025
f3e85f6
schema compile node UPDATE dont free range schema
Roytak Mar 6, 2025
d8a1f9b
context UPDATE clarify freeing parsed mods in docs
Roytak Mar 6, 2025
b07ebec
context UPDATE allow multiple contexts from same address
Roytak Mar 20, 2025
3101d8b
identityref BUGFIX check for parsed explicitely
Roytak Mar 20, 2025
e31ab69
printer context BUGFIX choice default value
Roytak Mar 20, 2025
543820c
xpath UPDATE dont store expr in dict
Roytak Mar 20, 2025
1246b5d
xpath UPDATE remove ctx arg from lyxp_expr_free
Roytak Mar 20, 2025
f4fe4ca
printer context UPDATE expr not in dict
Roytak Mar 20, 2025
1314736
lyb UPDATE check ctx_set_opt return value
Roytak Mar 20, 2025
06e7a45
printer context BUGFIX action printing
Roytak May 27, 2025
9253d1c
schema mount BUGFIX shared ctx mem print
Roytak May 27, 2025
209b360
schema mount BUGFIX no locks when printed context
Roytak May 27, 2025
13d30df
schema mount UPDATE add sm contexts manip API
Roytak May 27, 2025
ccbd440
context BUGFIX add refcount check to destroy
Roytak Jun 3, 2025
571b3f6
test context UPDATE add refcount test
Roytak Jun 3, 2025
eb8550b
ly common UPDATE add assertion
Roytak Jun 3, 2025
f50b833
schema mount UPDATE check for ctx existance
Roytak Jun 3, 2025
2ce0175
schema mount REFACTOR move api decl to plugins_ext
Roytak Jun 3, 2025
c9ca47d
printer context BUGFIX hashing patterns
Roytak Jun 13, 2025
e9ca8aa
libyang REFACTOR remove leftover include
Roytak Jul 1, 2025
915508e
printer context UPDATE store pattern codes in ht
Roytak Jul 1, 2025
5cbbfb0
context UPDATE move hash computing
Roytak Jul 7, 2025
3e3238f
schema mount UPDATE do not create redundant ctxs
Roytak Jul 7, 2025
f015740
libyang UPDATE cleanup after rebase of so4 on devel
Roytak Jul 7, 2025
935c708
printer context UPDATE store ctx hash
Roytak Jul 7, 2025
9a82ba0
cmd_data REFACTOR format
Roytak Jul 21, 2025
12d0058
context UPDATE differentiate priv/shared ctx data
Roytak Jul 21, 2025
05e73b4
context UPDATE move some data from priv to shared
Roytak Jul 23, 2025
4a48d8e
ly common UPDATE pattern code handling functions
Roytak Jul 23, 2025
404ed52
schema compile node BUGFIX free on error
Roytak Jul 24, 2025
2481763
ly_common UPDATE make global ctx data static
Roytak Jul 24, 2025
f8974e9
libyang REFACTOR comments
Roytak Jul 24, 2025
08871a6
tree data BUGFIX missing mutex unlock
Roytak Jul 24, 2025
37e1ae2
test schema UPDATE use malloc instead of mmap
Roytak Jul 24, 2025
6a5ca85
ly common UPDATE do not store serialized pcodes
Roytak Jul 24, 2025
f1e83af
build UPDATE move define from cmake to where its used
Roytak Jul 28, 2025
e3aec66
context REFACTOR move leafref links cb to ly_common
Roytak Jul 28, 2025
07f391d
ly_common REFACTOR clarify printed and shared data
Roytak Jul 28, 2025
e98dd60
schema mount BUGFIX check for printed context
Roytak Jul 28, 2025
38f6cb2
plugins exts REFACTOR clarify inline destroy usecase
Roytak Jul 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 3)
set(LIBYANG_MINOR_VERSION 13)
set(LIBYANG_MICRO_VERSION 2)
set(LIBYANG_MICRO_VERSION 3)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})

# set version of the library
Expand All @@ -75,7 +75,7 @@ if(WIN32)
set(C_STANDARD_REQUIRED ON)
set(CMAKE_C_FLAGS "/Zc:preprocessor /W3 /wd4711 /w14013 /utf-8 ${CMAKE_C_FLAGS}")
else()
# global C flags
# global C flags (POSIX source because of pthread_rwlock_t)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wpedantic -std=c11")
endif()

Expand Down Expand Up @@ -149,6 +149,7 @@ set(libsrc
src/printer_yang.c
src/printer_yin.c
src/printer_tree.c
src/printer_context.c
src/plugins.c
src/plugins_types.c
src/plugins_exts.c
Expand Down
6 changes: 2 additions & 4 deletions CMakeModules/GenCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ macro(GEN_COVERAGE_ENABLE ENABLE_TESTS)
endif()

execute_process(
COMMAND bash "-c" "${CMAKE_C_COMPILER} --version | head -n1 | sed \"s/.* (.*) \\([0-9]\\+.[0-9]\\+.[0-9]\\+ .*\\)/\\1/\""
COMMAND bash "-c" "${CMAKE_C_COMPILER} --version | head -n1 | cut -d' ' -f4"
OUTPUT_VARIABLE GCC_VERSION_FULL
OUTPUT_STRIP_TRAILING_WHITESPACE
)
execute_process(
COMMAND bash "-c" "${PATH_GCOV} --version | head -n1 | sed \"s/.* (.*) \\([0-9]\\+.[0-9]\\+.[0-9]\\+ .*\\)/\\1/\""
COMMAND bash "-c" "${PATH_GCOV} --version | head -n1 | cut -d' ' -f4"
OUTPUT_VARIABLE GCOV_VERSION_FULL
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(NOT GCC_VERSION_FULL STREQUAL GCOV_VERSION_FULL)
message(WARNING "gcc and gcov versions do not match! Generating coverage may fail with errors.")
Expand Down
4 changes: 3 additions & 1 deletion compat/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
*
* https://opensource.org/licenses/BSD-3-Clause
*/
#define _POSIX_C_SOURCE 200809L /* fdopen, _POSIX_PATH_MAX, strdup */
#ifndef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200809L /* fdopen, _POSIX_PATH_MAX, strdup */
#endif
#define _ISOC99_SOURCE /* vsnprintf */

#include "compat.h"
Expand Down
Loading