Skip to content

expose datum flag bit values as TOML_FLAG_* in public header#40

Merged
cktan merged 1 commit into
cktan:mainfrom
dutow:feat/toml-flag-public
Jul 3, 2026
Merged

expose datum flag bit values as TOML_FLAG_* in public header#40
cktan merged 1 commit into
cktan:mainfrom
dutow:feat/toml-flag-public

Conversation

@dutow

@dutow dutow commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

I am aware these flags are documented as internal, but they can help with writing a serializer on top of tomlc17. #11 mentions that serialization is out of scope for this library, but exposing these can help writing one that can write back a file parsed by tomlc17 in a similar format.

Alternatively I can just redefine them in my serialization code, if you do not want to make them public.

Move FLAG_INLINED/FLAG_STDEXPR/FLAG_EXPLICIT out of tomlc17.c into the
public header as TOML_FLAG_*, so external code can interpret
toml_datum_t::flag. Rename all internal uses; values unchanged.
@cktan cktan merged commit 91ba3cc into cktan:main Jul 3, 2026
2 checks passed
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.

2 participants