Follow-up Comment #3, bug #22026 (project freeciv):

'const struct foo *' means a pointer to a read-only structure. The pointer can
be reassigned, but you cannot write to the memory.

'struct foo *const' means a constant pointer to a structure which can
modified.

If we were using the incorrect alternative, I bet that gcc would have
complained. So, it is safe to define this variable at the function scope.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22026>

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


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

Reply via email to