diff options
| author | mig <mig> | 2011-05-07 19:30:01 (GMT) |
|---|---|---|
| committer | mig <mig> | 2011-05-07 19:30:01 (GMT) |
| commit | 5b467e2225e8af91407974182d9e81c0c78d89b6 (patch) | |
| tree | 323c5b8777546033b6b67234fe31763a09cf4f53 | |
| parent | 04b45bd073676b67f23c455352d3cd1982510320 (diff) | |
| parent | 89e3f4e2a6f0888e2b2ced8345b65506a290a358 (diff) | |
| download | tcl-5b467e2225e8af91407974182d9e81c0c78d89b6.zip tcl-5b467e2225e8af91407974182d9e81c0c78d89b6.tar.gz tcl-5b467e2225e8af91407974182d9e81c0c78d89b6.tar.bz2 | |
fix USE_TCLALLOC so that it can be enabled without editing the Makefile
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | generic/tclInt.h | 7 | ||||
| -rw-r--r-- | unix/Makefile.in | 5 |
3 files changed, 13 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2011-05-07 Miguel Sofer <msofer@users.sf.net> + + * generic/tclInt.h: fix USE_TCLALLOC so that it can be enabled + * unix/Makefile.in: without editing the Makefile + 2011-05-05 Don Porter <dgp@users.sourceforge.net> * generic/tclListObj.c: Stop generating string rep of dict when diff --git a/generic/tclInt.h b/generic/tclInt.h index 6fb3e57..f2fd0b8 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -3522,6 +3522,13 @@ MODULE_SCOPE void TclpFreeAllocCache(void *); #else /* not PURIFY or USE_THREAD_ALLOC */ +#if defined(USE_TCLALLOC) && USE_TCLALLOC + MODULE_SCOPE void TclFinalizeAllocSubsystem(); + MODULE_SCOPE void TclInitAlloc(); +#else +# define USE_TCLALLOC 0 +#endif + #ifdef TCL_THREADS /* declared in tclObj.c */ MODULE_SCOPE Tcl_Mutex tclObjMutex; diff --git a/unix/Makefile.in b/unix/Makefile.in index 6f193f1..782a89b 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -944,11 +944,8 @@ regerror.o: $(REGHDRS) $(GENERIC_DIR)/regerrs.h $(GENERIC_DIR)/regerror.c tclAppInit.o: $(UNIX_DIR)/tclAppInit.c $(CC) -c $(APP_CC_SWITCHES) $(UNIX_DIR)/tclAppInit.c -# On Unix we want to use the normal malloc/free implementation, so we -# specifically set the USE_TCLALLOC flag. - tclAlloc.o: $(GENERIC_DIR)/tclAlloc.c - $(CC) -c $(CC_SWITCHES) -DUSE_TCLALLOC=0 $(GENERIC_DIR)/tclAlloc.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclAlloc.c tclAsync.o: $(GENERIC_DIR)/tclAsync.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclAsync.c |
