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

Match cpp header checks #1244

Merged

Conversation

kdt3rd
Copy link
Contributor

@kdt3rd kdt3rd commented Mar 31, 2022

This fixes a few issues noticed by PhilB around inconsistencies between what the c++ library would allow vs. the original "strict" mode of the C core. This adds (in a backwards compatible manner) flags to the context creation that allows the user to enable strict header parsing to restore the original behavior, and optionally a new "silent" parse mode that will suspend calls to the logging interface while parsing the header

…t header parse

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
- adds a flags member to the context initializer
- adds a backwards compatibility struct definition
- refactors common init code to helper routine to handle arg versions

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
…printer

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Copy link
Contributor

@meshula meshula left a comment

Choose a reason for hiding this comment

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

seems to address the issue.

@kdt3rd kdt3rd merged commit 7ed4620 into AcademySoftwareFoundation:main Apr 1, 2022
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Apr 2, 2022
* Add flags for header parsing options, function to restore after silent header parse

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Use new context flags for strict header and silent parsing

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Expose strict and silent header parsing flags

- adds a flags member to the context initializer
- adds a backwards compatibility struct definition
- refactors common init code to helper routine to handle arg versions

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Add strict / silent logic to c-only metadata example header parser / printer

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Signed-off-by: Cary Phillips <cary@ilm.com>
@cary-ilm cary-ilm mentioned this pull request Apr 2, 2022
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Apr 2, 2022
* Add flags for header parsing options, function to restore after silent header parse

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Use new context flags for strict header and silent parsing

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Expose strict and silent header parsing flags

- adds a flags member to the context initializer
- adds a backwards compatibility struct definition
- refactors common init code to helper routine to handle arg versions

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Add strict / silent logic to c-only metadata example header parser / printer

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Signed-off-by: Cary Phillips <cary@ilm.com>
cary-ilm pushed a commit that referenced this pull request Apr 7, 2022
* Add flags for header parsing options, function to restore after silent header parse

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Use new context flags for strict header and silent parsing

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Expose strict and silent header parsing flags

- adds a flags member to the context initializer
- adds a backwards compatibility struct definition
- refactors common init code to helper routine to handle arg versions

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Add strict / silent logic to c-only metadata example header parser / printer

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Signed-off-by: Cary Phillips <cary@ilm.com>
@cary-ilm cary-ilm added the v3.1.5 label Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants