summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--doc/Alloc.36
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b8811fc..d94ceee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-09 Donal K. Fellows <fellowsd@cs.man.ac.uk>
+
+ * doc/Alloc.3: Added a note to mention that attempting to allocate
+ a zero-length block can return NULL. [Tk bug 619544]
+
2002-10-04 Donal K. Fellows <fellowsd@cs.man.ac.uk>
* doc/binary.n: Doc improvements [Patch 616480]
diff --git a/doc/Alloc.3 b/doc/Alloc.3
index ffb01ad..e016a6d 100644
--- a/doc/Alloc.3
+++ b/doc/Alloc.3
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: Alloc.3,v 1.7 2002/07/01 18:24:38 jenglish Exp $
+'\" RCS: @(#) $Id: Alloc.3,v 1.8 2002/10/09 09:38:38 dkf Exp $
'\"
.so man.macros
.TH Tcl_Alloc 3 7.5 Tcl "Tcl Library Procedures"
@@ -75,7 +75,9 @@ sizes. The returned location may be different from \fIptr\fR.
function to \fBTcl_Alloc\fR and \fBTcl_Realloc\fR, except that
\fBTcl_AttemptAlloc\fR and \fBTcl_AttemptRealloc\fR will not cause the Tcl
interpreter to \fBpanic\fR if the memory allocation fails. If the
-allocation fails, these functions will return NULL.
+allocation fails, these functions will return NULL. Note that on some
+platforms, attempting to allocate a block of memory will also cause
+these functions to return NULL.
.PP
The procedures \fBckalloc\fR, \fBckfree\fR, \fBckrealloc\fR,
\fBattemptckalloc\fR, and \fBattemptckrealloc\fR are implemented