Rename DICT, TUPLE & VARIANT _clean in _reset to avoid confusing _clean & _clear functions. See #97

This commit is contained in:
Patrick Pelissier committed 2021-10-28 17:51:17 +02:00
1 parent 2695cd6f3e
commit 510cd062ba
7 files changed
+61 -37

No files matched your search

+8 -4
View File
@@ -2428,9 +2428,9 @@ from 'ref' and clear 'ref'.
Set the dictionary 'dict' by stealing as resource as possible
from 'ref' and clear 'ref'.
##### void name\_clean(name\_t dict)
##### void name\_reset(name\_t dict)
Clean the dictionary 'dict'. 'dict' remains initialized.
Reset the dictionary 'dict'. 'dict' becomes empty but remains initialized.
##### size\_t name\_size(const name\_t dict)
@@ -2643,6 +2643,10 @@ This method is created only if all Oplist of the tuple define MOVE method.
Clear the tuple 'tuple (aka destructor).
##### void name\_reset(name\_t tuple)
Reset the tuple 'tuple' (applying the _reset method to all fields of the tuple).
##### const type1 *name\_cget\_at\_element1(const name\_t tuple)
Return a constant pointer to the element 'element1' of the tuple.
@@ -2820,9 +2824,9 @@ This method is created only if all Oplist of the variant define MOVE method.
Clear the variant 'variant (aka destructor).
##### void name\_clean(name\_t variant)
##### void name\_reset(name\_t variant)
Clean the variant 'variant and make it empty.
Reset the variant 'variant and make it empty.
##### void name\_init\_elementN(name\_t variant)