Summary: Second genlist cleanup and extension
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: lundi 25.10.2010 à 18:28
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: pepeto
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.3.0



As some functions like genlist_remove() are really inefficient on big lists
(all functions doing linear research), add some functions, mostly to give
more important to the genlist_link structure.

* added genlist_insert_after()
* added genlist_insert_before()
* added genlist_remove_if()
* added genlist_remove_all()
* added genlist_remove_all_if()
* added genlist_erase()
* added genlist_pop_front()
* added genlist_pop_back()
* added genlist_front()
* added genlist_back()
* genlist_search() returns a genlist_link
* added genlist_search_if()
* added genlist_reverse()
* added genlist_link()
* made genlist_append() more efficient
* made genlist_prepend() more efficient


File Attachments:

Date: lundi 25.10.2010 à 18:28  Name: 0001-New-genlist-features.patch  Size:
34 ko   By: pepeto



Reply to this item at:


  Message posté via/par Gna!

Freeciv-dev mailing list

Reply via email to