Author: muggenhor
Date: Thu Jan  4 19:41:24 2007
New Revision: 599

URL: http://svn.gna.org/viewcvs/warzone?rev=599&view=rev
Log:
 * functions memRecReport & memMemoryReport:
  - removed these functions and all calls to it if REALLY_DEBUG_MALLOC isn't 
defined, because they don't do anything currently when REALLY_DEBUG_MALLOC 
isn't defined
  - moved the declaration of memRecReport from memint.h to mem.h where it is, 
together with memMemoryReport, optionally declared depending on 
REALLY_DEBUG_MALLOC
 * fixed yet another set of signed/unsigned errors (src/seqdisp.c & 
textdraw.c/h)
 * removed a cast from char* to char* (that's what I call unnecessary; 
transforming something into something it already is)
 * memory system:
  - added some comments to clarify what certain pieces of code actually do
  - removed some redundant code (e.g. why would you ever want to overwrite 
memory to zero just before passing it to free()?)
  - made debug-version of free() return immediately when being passed a NULL 
pointer (i.e. after raising an assert)
  - moved some variable declarations down to the first point of usage
  - *IMPORTANT*: commented the definition of MEMORY_SET out (line 38 mem.c), 
this might break code that expects freshly malloc'ed memory to be 
pre-initialized, if you experience any problems due to commenting this out 
please say so on the mailinglists!

Modified:
    trunk/lib/framework/block.c
    trunk/lib/framework/mem.c
    trunk/lib/framework/mem.h
    trunk/lib/framework/memint.h
    trunk/lib/ivis_common/textdraw.h
    trunk/lib/ivis_opengl/textdraw.c
    trunk/src/seqdisp.c


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

Reply via email to