[crossfire] Re: [Crossfire-cvs] CVS commit: crossfire/server

Andreas Kirschbaum kirschbaum at myrealbox.com
Wed Jul 20 03:39:31 CDT 2005


     crossfire-cvs-admin at lists.sourceforge.net
     
      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.

    
    


More information about the crossfire mailing list