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

                 Summary: Replace packet variant process by function pointers
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: lun. 15 déc. 2014 16:03:52 CET
                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.6.0

    _______________________________________________________

Details:

This patch removes the usage of switch statements to access to
send_packet_XXX_100() and receive_packet_XXX_100() functions. Instead, it use
array of function pointers to access to the functions directly. A hash table
based on network capabilities is used to limit the number of initializations
of the function arrays.

Also, make different how cs/sc restrictions are handled.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: lun. 15 déc. 2014 16:03:52 CET  Name: packet_variants.patch  Size: 22
ko   By: pepeto

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

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to