sparse-array: Improve iteration interface.
authorBen Pfaff <blp@gnu.org>
Thu, 7 May 2009 03:22:09 +0000 (20:22 -0700)
committerBen Pfaff <blp@gnu.org>
Sun, 7 Jun 2009 04:11:05 +0000 (21:11 -0700)
commita68e3f51236286fe02c6c4b6d40efa1bcec36349
tree7f2803f4750b0f63b3464b53eb434350ccf357b9
parentccead09ac2bc67bbaa40e67904f6c48f7cdf6700
sparse-array: Improve iteration interface.

The sparse_array_scan function only supports iteration in the forward
direction and its interface is somewhat awkward.  This commit replaces it
by four new functions that allow iteration in both forward and reverse
directions and have a more conventional interface.
Smake
src/data/sparse-cases.c
src/libpspp/sparse-array.c
src/libpspp/sparse-array.h
tests/libpspp/sparse-array-test.c