Author: muggenhor
Date: Thu Jun 14 20:22:57 2007
New Revision: 1495

URL: http://svn.gna.org/viewcvs/warzone?rev=1495&view=rev
Log:
 * Task #5192: Audit some files for failure to set global pointers to NULL 
after having called free(global pointer)
 * Mark some global pointers/vars for static linkage (the less global, and more 
local they are, the better!)
 * Some code cleanup: 4 spaces -> TAB, braces on their own line
 * Don't `if (pointer != NULL) free(pointer);` since free(NULL) is very much 
legal as well (and more readable IMO)
 * move some vars in the most local scope where they're used
 * make ResearchRelease return void rather than BOOL, since all calling 
functions ignored its result; plus the function itself never returned anything 
else than TRUE

Modified:
    trunk/src/edit2d.c
    trunk/src/init.c
    trunk/src/intdisplay.c
    trunk/src/intdisplay.h
    trunk/src/research.c
    trunk/src/research.h


_______________________________________________
Warzone-commits mailing list
Warzone-commits@gna.org
https://mail.gna.org/listinfo/warzone-commits

Reply via email to