Comment about C (non-)compatibility of HRealloc().

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2002 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2005-11-19 22:28:49 +00:00
parent 14eb6b839e
commit a1796afa51
+3
View File
@@ -672,6 +672,9 @@ HCalloc (int size)
return (p); return (p);
} }
// BUG: HRealloc() is does not behave like realloc():
// From the C standard: "If memory for the new object cannot be allocated,
// the old object is not deallocated and its value is unchanged."
void * void *
HRealloc (void *p, int size) HRealloc (void *p, int size)
{ {