summaryrefslogtreecommitdiffstats
path: root/generic/tclAlloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused @MAN2TCLFLAGS@nijtmans2010-04-281-2/+1
| | | | | | | | | | | Move <limits.h> include from tclInt.h to tclWinPort.h, and eliminate unneeded <stdlib.h>, <stdio.h> and <string.h>, which are already in tclInt.h Move "tclInt.h" from regcustom.h up to regex.h. tclAlloc.c: Unneeded <stdio.h> include tclExecute.c: Fix gcc warning: comparison between signed and unsigned
* Pure whitespace changes, changing to follow Engineering Manual style.dkf2010-02-241-5/+5
|
* * generic/tclAlloc.c: Cleaned up various routines in thedgp2009-09-291-5/+7
| | | | | | | * generic/tclCkalloc.c: call stacks for memory allocation to * generic/tclInt.h: guarantee that any size values computed * generic/tclThreadAlloc.c: are within the domains of the routines they get passed to. [Bugs 2557696 and 2557796].
* * generic/tclAlloc.c:Miguel Sofer2007-12-171-13/+3
| | | | | | | | * generic/tclExecute.c: * generic/tclInt.h: * generic/tclThreadAlloc.c: Fix alignment for memory returned by TclStackAlloc; insure that all memory allocators align to 16-byte boundaries on 64 bit platforms [Bug 1851832, 1851524]
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* * generic/tclAlloc.c: on Darwin, ensure memory allocated bydas2007-06-291-21/+27
| | | | | * generic/tclThreadAlloc.c: the custom TclpAlloc()s is aligned to 16 byte boundaries (as is the case with the Darwin system malloc).
* Eliminate use of (VOID*) casts when calling memset or memcpy.dkf2007-04-171-2/+2
|
* ANSIfy. Also converted some deeply nested code to a less nested form for ↵dkf2005-11-011-26/+26
| | | | easier reading.
* Getting more systematic about styledkf2005-07-191-96/+129
|
* More mnemonic variable names, better brace usage.dkf2004-10-061-143/+151
|
* * generic/tclAlloc.c: Make sure Tclp*Alloc* routines getdgp2004-05-041-3/+2
| | | | | * generic/tclInt.h: declared in the TCL_MEM_DEBUG and * generic/tclThreadAlloc.c: TCL_THREADS configuration. [Bug 947564]
* Patch 922727 committed. Implements three changes:dgp2004-04-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only. * generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same. * win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed):
* Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-2/+2
|
* All uses of 'panic' (the macro) changeddavygrvy2003-12-241-3/+3
| | | | | | | to 'Tcl_Panic' (the function). The #define of panic in tcl.h clearly states it is deprecated in the comments. [Patch 865264]
* * generic/tclAlloc.c:hobbs2002-04-231-1/+9
| | | | | | | | | | | | | | | * generic/tclInt.h: * generic/tclThreadAlloc.c (new): * unix/Makefile.in: * unix/tclUnixThrd.c: * win/Makefile.in: * win/tclWinInt.h: * win/tclWinThrd.c: added new threaded allocator contributed by AOL that significantly reduces lock contention when multiple threads are in use. Only Windows and Unix implementations are ready, and the Windows one may need work. It is only used by default on Unix for now, and requires that USE_THREAD_ALLOC be defined (--enable-threads on Unix will define this).
* reversed accidental commit of unfinished sourceshobbs2002-02-271-946/+2
|
* generic/tclCmdMZ.chobbs2002-02-271-2/+946
|
* revert accidental commit of tclAlloc.c to r1.11hobbs2002-02-261-946/+2
|
* * generic/tclHash.c (AllocArrayEntry, AllocStringEntry):hobbs2002-02-261-2/+946
| | | | | | | | Before invoking ckalloc when creating a Tcl_HashEntry, check that the amount of memory being allocated is at least as large as sizeof(Tcl_HashEntry). The previous code was allocating memory regions that were one or two bytes short. [Bug #521950] (dejong)
* * generic/tclAlloc.c: Small Borland compatibility fix.davygrvy2001-09-061-2/+2
|
* * generic/tcl.h: Define __WIN32__ whenmdejong2001-07-171-3/+4
| | | | | | | __CYGWIN__ or __MINGW32__ is defined. * generic/tclAlloc.c: Define caddr_t when compiling with VC++ or mingw. This type is already defined when compiling with Cygwin.
* * generic/tclAlloc.c: wrapped caddr_t define to not be done on Unixhobbs2000-04-211-1/+6
| | | | | * unix/tclUnixPort.h: added Tclp*Alloc defines to allow the use of USE_TCLALLOC on Unix. [Bug: 4731]
* * generic/tclListObj.c:core_8_2_b3_baseredman1999-08-101-2/+4
| | | | | | | | | | | | | | | | * generic/tcl.decls: * generic/tclDecls.h: Applied patch from Jim Ingham to change the prototype of Tcl_ListObjGetElements to have the last argument have a CONST so that you can feed it the objv that you get from the standard TclObj command proc. * generic/tclAlloc.c: * generic/tclCmdIL.c: * generic/tclIO.c: * generic/tclThread.c: * win/tclWinThrd.c: * unix/tclUnixThrd.c: Fixed Brent's changes so that they work on Windows (and he fixed the bug in the Unix thread implementation).
* 1 Added use of Tcl_GetAllocMutex to tclAlloc.c and tclCkalloc.c so theywelch1999-08-101-26/+24
| | | | | | | | can be linked against alternate thread packages. 2 Added Tcl_GetChannelNames to tclIO.c 3 Added TclVarTraceExists hook so "info exists" triggers read traces exactly like it did in Tcl 7.6 4 Stubs table changes to reflect new internal and external APIs
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-31/+214
|
* * generic/tclAlloc.c: Changed TCL_NATIVE_MALLOC to USE_TCLALLOC sostanton1999-03-111-4/+4
| | | | | | | | | | | | | | it matches 8.1. * generic/tclBasic.c: * generic/tcl.h: * generic/tcl.decls: Changed Tcl_ReleaseType from an enum to macros so it can be used in .rc files. Added Tcl_GetString. * unix/Makefile.in: Added compat binaries to the stub library. Changed compat binaries to always compile with shared flags since they need to be shared for the stub library.
* Merged stubs changes into mainline for 8.0stanton1999-03-101-14/+78
|
* * win/makefile.vc:stanton1999-01-061-1/+15
| | | | | | * generic/tcl.h: * generic/tclAlloc.c: Added USE_NATIVEMALLOC ifdefs to make it easier to compile for use with Purify.
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+456