]> spindle.queued.net Git - midori/commit
Implement and use KATZE_ARRAY_FOREACH_ITEM
authorChristian Dywan <christian@twotoasts.de>
Sat, 11 Sep 2010 21:39:51 +0000 (23:39 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 11 Sep 2010 22:59:24 +0000 (00:59 +0200)
commit40dc38fd2154c1415178670fdbd1966b89b5ea5c
tree11fa0d18cb0d17195d48e1541b8253ea56f94fd1
parentdb2c204b08de9abecb072877a5dd2fdd3580620e
Implement and use KATZE_ARRAY_FOREACH_ITEM

Iterating an array by a GList is considerably faster than
continuously retrieving items, however it is also a lot
more complicated. So the new macro takes care of that and
uses a new semi-private function to avoid copying the list.

Note that the macro can't be nested, which basically isn't
useful in practise anyway.
29 files changed:
extensions/adblock.c
extensions/addons.c
extensions/colorful-tabs.c
extensions/cookie-manager/cookie-manager.c
extensions/copy-tabs.c
extensions/feed-panel/feed-panel.c
extensions/feed-panel/main.c
extensions/formhistory.c
extensions/mouse-gestures.c
extensions/page-holder.c
extensions/shortcuts.c
extensions/status-clock.c
extensions/statusbar-features.c
extensions/tab-panel.c
extensions/tabs-minimized.c
extensions/toolbar-editor.c
extensions/web-cache.c
katze/katze-array.c
katze/katze-array.h
katze/katze-utils.c
midori/main.c
midori/midori-array.c
midori/midori-browser.c
midori/midori-locationaction.c
midori/midori-searchaction.c
midori/midori-view.c
panels/midori-bookmarks.c
panels/midori-extensions.c
panels/midori-history.c