Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zcbor.py: Add support for unordered maps in generated code #425

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oyvindronningstad
Copy link
Collaborator

@oyvindronningstad oyvindronningstad commented Apr 30, 2024

Add support for the --unordered-maps option to zcbor code
which makes use of the zcbor_unordered_maps_*() API in generated code.

Fixes #411

@oyvindronningstad oyvindronningstad force-pushed the map-search-py branch 2 times, most recently from 10152df to 36e9986 Compare May 2, 2024 10:42
@oyvindronningstad oyvindronningstad force-pushed the map-search-py branch 2 times, most recently from f32fa46 to 087ba75 Compare May 8, 2024 08:41
@oyvindronningstad oyvindronningstad force-pushed the map-search-py branch 8 times, most recently from 40b1e6b to 60ba45c Compare August 21, 2024 11:44
@oyvindronningstad oyvindronningstad removed the request for review from sigvartmh September 17, 2024 12:57
@simensrostad
Copy link

@oyvindronningstad Any traction here? Will we get this for NCS 2.8?

include/zcbor_common.h Outdated Show resolved Hide resolved
zcbor/zcbor.py Outdated
@@ -3019,7 +3143,7 @@ def relativify(p):
target_include_directories({target_name} PUBLIC
{(linesep + " ").join(((str(relativify(f)) for f in include_dirs)))}
)
"""
{f"\n{smart_search}\n" if add_smart_search else ''}"""
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: The use of backslashes in the formatted string doesn't work on version 3.10 python - forced me to update python to pickup this change.

Add support for the --unordered-maps option to zcbor code
which makes use of the zcbor_unordered_maps_*() API in generated code.

Signed-off-by: Øyvind Rønningstad <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How does decoding unordered maps work?
3 participants