[
https://issues.apache.org/jira/browse/DAFFODIL-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dave Thompson closed DAFFODIL-2853.
-----------------------------------
Verified the specified commit (commit be3038e129f7d2dd695a0cd48c6eae9756676eae)
is included in the latest pull from the daffodil repository.
Verified, via review, changes identified in the commit comment were
implemented.
Verified the affected daffodil subproject sbt test suites executed
successfully, including the modified and moved tests.
Note: There were a couple typo's in the the commit comment:
- “c/ex_nums.dfdl.xsd: Define schema version to be "1.0.2".” The actual
version specified in the file is ‘version="1.2.3"’.
- “c/simple.dfdl.xsd: Define schema version to be "1.0.0".” The actual version
specified in the file is ‘version="2.1.1"’.
> Add schema validation code to C generator
> -----------------------------------------
>
> Key: DAFFODIL-2853
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2853
> Project: Daffodil
> Issue Type: Improvement
> Components: Back End C-Generator
> Affects Versions: 3.5.0
> Reporter: John Interrante
> Assignee: John Interrante
> Priority: Major
> Fix For: 3.6.0
>
>
> Modify C generator to compare floating point and integer numbers with
> enumerations and ranges specified in DFDL schemas. Test validation code with
> additional simple type root elements in simple.dfdl.xsd schema and additional
> TDML tests in simple_errors.tdml.
> Also allow C generator to compare hexBinary elements to values in
> enumerations since Daffodil does the same thing and C generator already
> compares hexBinary elements to values in fixed attributes.
> Allow C generator to ignore dfdl:assert expressions in DFDL schemas and
> generate code anyway instead of throwing an exception.
>
> Allow C generator to get schema version from DFDL schemas and put it into the
> generated C code to version the generated code as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)