From: Brent W. <we...@aj...> - 2000-09-01 20:48:55
|
It sounds like there is consensus for an alternative to Tcl_Alloc, call it Tcl_AttemptAlloc, that will return NULL instead of panicing if it cannot allocate the requested memory block. The implementation is trivial: char * Tcl_AttemptAlloc (size) unsigned int size; { return TclpAlloc(size); } The main issue is the name. These have been suggested Tcl_SafeAlloc Tcl_TryToAlloc Tcl_AttemptAlloc I personally like the third suggestion, but I'm open to more suggestions. -- Brent Welch <we...@aj...> http://www.ajubasolutions.com Scriptics has become Ajuba Solutions -- The TclCore mailing list is sponsored by Ajuba Solutions To unsubscribe: email tcl...@aj... with the word UNSUBSCRIBE as the subject. |