diff Include/allobjects.h @ 978:13c99eaf32a8 legacy-trunk

* renamed malloc.h mymalloc.h, and added MALLARG as the type of the argument to malloc() (size_t or unsigned int) * listobject.c: check for overflow of the size of the object, so things like range(0x7fffffff) will raise MemoryError instead of calling malloc() with -4 (and then crashing -- malloc's fault)
author Guido van Rossum <guido@python.org>
date Wed, 19 Aug 1992 16:46:30 +0000
parents 164849f56105
children 533e36de1e4d
line wrap: on
line diff
--- a/Include/allobjects.h	Wed Aug 19 16:44:41 1992 +0000
+++ b/Include/allobjects.h	Wed Aug 19 16:46:30 1992 +0000
@@ -50,7 +50,7 @@
 #include "fileobject.h"
 
 #include "errors.h"
-#include "malloc.h"
+#include "mymalloc.h"
 
 extern char *strdup PROTO((const char *));
 extern void fatal PROTO((char *));