[Freeciv-Dev] [patch #3999] extra_base_get(), extra_road_get() and const variants

2013-07-16 Thread Marko Lindqvist
Update of patch #3999 (project freeciv):

  Status:  Ready For Test = Done   
 Assigned to:None = cazfi  
 Open/Closed:Open = Closed 


___

Reply to this item at:

  http://gna.org/patch/?3999

___
  Message sent via/by Gna!
  http://gna.org/


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


[Freeciv-Dev] [patch #3999] extra_base_get(), extra_road_get() and const variants

2013-07-13 Thread Marko Lindqvist
URL:
  http://gna.org/patch/?3999

 Summary: extra_base_get(), extra_road_get() and const
variants
 Project: Freeciv
Submitted by: cazfi
Submitted on: Sat 13 Jul 2013 12:00:43 PM EEST
Category: general
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

___

Details:

Add accessor functions
- extra_base_get()
- extra_road_get()
- extra_base_get_const()
- extra_road_get_const()

It's quite possible that union containing bases and roads inside extra get
replaced by pointers to them in the future, so it's better to have single
point where that matters and needs to be changed.
const -variants take const parameter, and also return const pointer. Latter
property is consequence of the first (functions cannot return non-const what
they get in as const).



___

File Attachments:


---
Date: Sat 13 Jul 2013 12:00:43 PM EEST  Name: ExtraBaseroadGet.patch  Size:
3kB   By: cazfi

http://gna.org/patch/download.php?file_id=18269

___

Reply to this item at:

  http://gna.org/patch/?3999

___
  Message sent via/by Gna!
  http://gna.org/


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