<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39566 >
About, worklist.h, line 59: Because of an argument of the macro is named "worklist", you cannot use struct "worklist". Or it will give some like: worklist_iterate(&pcity->worklist, prod) { { struct &pcity->worklist *_worklist = (&pcity->worklist) Funny, but cannot compile... /* Iterate over all entries in the worklist. */ #define worklist_iterate(worklist, prod) \ { \ struct worklist *_worklist = (worklist); \ int _iter, _length = worklist_length(_worklist); \ struct city_production prod; \ \ for (_iter = 0; _iter < _length; _iter++) { \ worklist_peek_ith(_worklist, &prod, _iter); _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev