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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user