URL:
  <http://gna.org/patch/?1317>

                 Summary: genlist & speclist clean up
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: samedi 26.09.2009 à 18:26
                Category: general
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.2.0

    _______________________________________________________

Details:

This patch makes the genlist, genlist_link and any speclist type opaque to
emphasize the OOP design.

Removed suspect macros.  Uses warper functions instead.

Also, iterating a NULL list don't make a segmentation fault, it just prints
an error message if Freeciv was configured with --enable-debug.

<speclist>_list_sort() function takes an argument more understandable of type
'int (*) (const <spectype> *const *, const <spectype> *const *)' and it's
casted to 'int (*) (void *, void *)' inside the function.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: samedi 26.09.2009 à 18:26  Name: trunk_S2_2_genlist_cleanup.diff 
Size: 52 ko   By: pepeto

<http://gna.org/patch/download.php?file_id=6798>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1317>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to