hash_table: Add an iterator for doing things like cleanup of the HT.
authorEric Anholt <eric@anholt.net>
Wed, 23 Mar 2011 19:05:56 +0000 (12:05 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 26 Apr 2011 19:20:02 +0000 (12:20 -0700)
commitb061b5ffb055c64ffc45e506bad877f47942ba01
treec47250ca0738edd91efdacdf866eb9c3945a6a49
parentb943b9b1a696cf51adfb2a18bcb9cf503fb2737f
hash_table: Add an iterator for doing things like cleanup of the HT.

Without this, consumers often have to keep linked lists of the
entries, at additional malloc cost.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/hash_table.c
src/mesa/program/hash_table.h