disallow pointer to pointer in api

This commit is contained in:
veclavtalica 2025-01-03 11:45:10 +03:00
parent 8ec5a96333
commit f4a3298906
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ for that certain considerations are taken:
with no expectation on new additions (see [/include/twn_types.h](../include/twn_types.h)) with no expectation on new additions (see [/include/twn_types.h](../include/twn_types.h))
* optionals can be expressed via pointer passage of value primitives, assumed immutable, with the NULL expressing default * optionals can be expressed via pointer passage of value primitives, assumed immutable, with the NULL expressing default
* no opaque types, only keys * no opaque types, only keys
* pointers to pointers aren't allowed
* when mutation on input is done, - it shouldn't be achieved from a mutable pointer, but the return value * when mutation on input is done, - it shouldn't be achieved from a mutable pointer, but the return value
* return value could be a simple aggregate that is translatable to pure data dictionary * return value could be a simple aggregate that is translatable to pure data dictionary
* module prefix is used for namespacing, actual symbols come after the prefix (`<module>_<symbol>`) * module prefix is used for namespacing, actual symbols come after the prefix (`<module>_<symbol>`)