Merge ppdConflicts() optimizations and new hashed array support
(STR #2358)
cups/array.c:
- Add hash data to _cups_array_s.
- cupsArrayDelete(): Free hash array.
- cupsArrayFind(): Use hash array.
- cupsArrayNew(): Call cupsArrayNew2().
- cupsArrayNew2(): Added.
cups/array.h:
- Add cups_ahash_func_t definition for hash functions.
- Add cupsArrayNew2() with hash function and hash size
arguments.
cups/mark.c:
- ppdConflicts(): Cache the last
cups/ppd.c:
- ppdClose(): Destroy "marked" array.
- ppdOpen2(): Create "marked" array for marked options, use a
hash for the options array for faster lookups, and sort the
UIConstraints.
- ppd_compare_choices(): Added.
- ppd_compare_consts(): Added.
- ppd_hash_option(): Added.
cups/ppd.h:
- Add "marked" array to ppd_file_t.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6477
7a7537e8-13f0-0310-91df-
b6672ffda945