Summary: DIO_PUT() and DIO_GET() macros
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Wed 27 Aug 2014 06:40:08 AM EEST
                Category: freeciv-web
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0



Reduce diff (and complicated part in that) between freeciv and freeciv-web.

freeciv-web requires additional "key" parameter for dio_put_xxx() and
dio_get_xxx() functions. We don't want the overhead of passing such an
parameter to regular freeciv functions, but keep the function signatures
intact. Instead this patch introduces set of macros that take the additional
parameter, but does nothing with it in case of non-freeciv-web build, macro
translates to exaclty same function call as we had before. freeciv-web
implementation will take advantage of the new parameter.
All this allows us to unify the caller side to use the macro.


File Attachments:

Date: Wed 27 Aug 2014 06:40:08 AM EEST  Name: DioKeys.patch  Size: 9kB   By:



Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to