- 14 Aug, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 13 Aug, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
Also updates some documentation and mark first() and last() as deprecated (as they are identical and a subset of _get_iterator()).
-
- 12 Aug, 2022 2 commits
-
-
Martin Nilsson authored
-
Henrik (Grubba) Grubbström authored
Also adds testsuite and fixes some documentation errors.
-
- 11 Aug, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 10 Aug, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
Add wrapper that implements the 8.0 and earlier iterator API. Also update the testsuite to match the current iterator behavior.
-
- 09 Aug, 2022 3 commits
-
-
Henrik (Grubba) Grubbström authored
-
Henrik (Grubba) Grubbström authored
Also fixes get_subtree() with no argument.
-
Henrik (Grubba) Grubbström authored
-
- 08 Aug, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 07 Aug, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 06 Aug, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 05 Aug, 2022 4 commits
-
-
Henrik (Grubba) Grubbström authored
Add skip().
-
Henrik (Grubba) Grubbström authored
Move backward compat detection code from compiler to predef::get_iterator(). Backward compatibility is now handled by wrapping old iterators with CompatIterator.
-
Henrik (Grubba) Grubbström authored
-
Henrik (Grubba) Grubbström authored
Reduces code-duplication.
-
- 04 Aug, 2022 2 commits
-
-
Henrik (Grubba) Grubbström authored
-
Henrik (Grubba) Grubbström authored
-
- 03 Aug, 2022 4 commits
-
-
Henrik (Grubba) Grubbström authored
-
Henrik (Grubba) Grubbström authored
Also added some documentation.
-
Henrik (Grubba) Grubbström authored
For improved backward compat, lfun::_random() now advances the iterator to the position before the randomly selected element.
-
Henrik (Grubba) Grubbström authored
This should fix several testsuite failures that were due to the first test in each testsuite file being skipped.
-
- 02 Aug, 2022 3 commits
-
-
Henrik (Grubba) Grubbström authored
-
Henrik (Grubba) Grubbström authored
-
Henrik (Grubba) Grubbström authored
Runtime: * Iterators now start at the position before the first element. * foreach() calls lfun::_iterator_next() on entry. This means that the loop will skip the element the iterator was on (if any). * Removed lfun::`+(), lfun::`+=() and lfun::`!() from the builtin iterators to simplify the semantics. * Implementing just lfun::_iterator_next() is now sufficient to make a working iterator. Compiler: * The Pike compiler will add a wrapper lfun::_iterator_next() for code that uses the original API. TODO: * There are more iterators that need to be adjusted to the new API. Fixes some of #10085.
-
- 01 Aug, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 31 Jul, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 30 Jul, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 29 Jul, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 28 Jul, 2022 3 commits
-
-
Marcus Comstedt authored
-
Marcus Comstedt authored
-
Henrik (Grubba) Grubbström authored
-
- 27 Jul, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 26 Jul, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
Fixes warning about test always being true on some platforms.
-
- 25 Jul, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-
- 24 Jul, 2022 4 commits
-
-
Henrik (Grubba) Grubbström authored
Fixes compilation errors.
-
Henrik (Grubba) Grubbström authored
Some extra juck got in. This reverts commit 46d30359.
-
Henrik (Grubba) Grubbström authored
Fixes compilation errors.
-
Henrik (Grubba) Grubbström authored
-
- 23 Jul, 2022 1 commit
-
-
Henrik (Grubba) Grubbström authored
-