[EMAIL PROTECTED] wrote:
> Index: crossfire/server/main.c
[...]
> + /* This function is declared in reader.c */
> + int set_random_map_variable(RMParms *rp,char *buf);
> +

I moved that prototype into random_maps/random_map.h since I don't think
an implementation file (*.c) should contain any prototypes (for
non-static functions): by putting the prototype into the *.c file, you
prevent the compiler from checking that the prototype and the function
definition are compatible. OTOH by putting it into the header file, the
compiler now enforces that both declarations are compatible.

_______________________________________________
crossfire mailing list
[email protected]
http://mailman.metalforge.org/mailman/listinfo/crossfire

Reply via email to