$darkmode
Elektra 0.11.0
|
The internal iterator inside KeySets seems to cause more problems than it solves.
We could embed one such iterator into KeySets, but recommend that people use an external instance (int) in new code.
@raphi011 made benchmarks showing that external and internal iterators have about the same speed. So it should be a safe choice to not provide the internal iterators for 1.0 and only the external instead.
ksAtCursor
to ksAt
cursor_t
is ksGetCursor
. Its documentation is completely broken:ksRewind
and keyNextMeta
cannot be used on the same variable (ks
).ks*
functions) also contains lots of warnings (use only cursor from same keyset, may be invalid, may become invalid, etc.) that make it seem like there is something special about these cursors, when in fact they are simply indices. There is no information (at least that I could find), how cursors can be modified. Most of the time it even seems like modifying cursors would be a bad idea.