]> git.ipfire.org Git - thirdparty/cups.git/commit - cups/ppd.c
Merge ppdConflicts() optimizations and new hashed array support
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 25 Apr 2007 19:55:45 +0000 (19:55 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 25 Apr 2007 19:55:45 +0000 (19:55 +0000)
commit6482819f09a203d7b89a1454215156ec4216d4d8
treef5c1ae851276bf8b52fcccada2affcc3a4740e8b
parent302657fc494a7aa64c46f95215294c834286eb6d
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
CHANGES.txt
cups/array.c
cups/array.h
cups/mark.c
cups/ppd.c
cups/ppd.h