forked from EVerest/cbexigen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add feature from request EVerest#75:
- only create xmldsig framgnets which are listed (like other fragments) - remove unused fields for optimization (per default remove "shall not be used" from standard) removed elements are not in structure and will result in en/decoder error NOT_IMPLEMENTED when "isUsed" flag is set. Signed-off-by: Michael Mezger <[email protected]>
- Loading branch information
Michael Mezger
committed
Jun 27, 2024
1 parent
9f0b060
commit 73d7afc
Showing
8 changed files
with
135 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
{{ indent * level }}// {{ name }} {{ comment }} | ||
{{ indent * level }}unsigned int {{ name }}_isUsed:1; |
14 changes: 14 additions & 0 deletions
14
src/input/code_templates/c/encoder/EncodeEventOptionalElementOptimized.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{%- if option == -2 %} | ||
{{ indent * level }}if (1 == 0) | ||
{%- elif option == 0 %} | ||
{{ indent * level }}if ({{ parameter }}_isUsed == 1u) | ||
{%- elif option > 0 %} | ||
{{ indent * level }}else if ({{ parameter }}_isUsed == 1u) | ||
{%- else %} | ||
{{ indent * level }}else | ||
{%- endif %} | ||
{{ indent * level }}{ | ||
{{ indent * (level + 1) }}{{ event_comment }} | ||
{{ indent * (level + 1) }}error = EXI_ERROR__ENCODER_NOT_IMPLEMENTED; | ||
{{ indent * (level + 1) }}done = 1; | ||
{{ indent * level }}} |