[cairo-bugs] [Bug 18165] New: _cairo_hash_table_insert can pass key_unique = TRUE to _cairo_hash_table_lookup_internal

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 21 22:28:10 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=18165

           Summary: _cairo_hash_table_insert can pass key_unique = TRUE to
                    _cairo_hash_table_lookup_internal
           Product: cairo
           Version: 1.6.5
          Platform: Other
               URL: https://bugzilla.mozilla.org/show_bug.cgi?id=453200
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: keithp at keithp.com
        ReportedBy: bugs.freedesktop at karlt.net
         QAContact: cairo-bugs at cairographics.org


Created an attachment (id=19800)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=19800)
patch

_cairo_hash_table_insert can use key_unique = TRUE when calling
_cairo_hash_table_lookup_internal because the rules don't permit inserting an
entry with an existing key.

This saves on having to search through dead entries (as the first dead can be
used), and means that the cairo_hash_keys_equal_func_t need not be called on
live entries.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list