Tcl Extension Architecture (TEA) Sample Extension

Check-in [2d41f1db6d]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Tidy.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2d41f1db6d1cfbacc9a6aa34fa689fd9bd1ebdec79c25309edf2d874e99f0b9d
User & Date: stu 2018-06-15 19:34:08
Context
2018-06-15
19:37
Put valgrind back into a var. check-in: 2a4d988206 user: stu tags: trunk
19:34
Tidy. check-in: 2d41f1db6d user: stu tags: trunk
10:02
autoconf check-in: 4b14de0117 user: stu tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Makefile.in.

   130    130   EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR)
   131    131   #EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
   132    132   TCLLIBPATH	= $(top_builddir)
   133    133   TCLSH_ENV	= TCL_LIBRARY=`@[email protected] $(TCL_SRC_DIR)/library`
   134    134   PKG_ENV		= @[email protected]="$(EXTRA_PATH):$(@[email protected])" \
   135    135   		  PATH="$(EXTRA_PATH):$(PATH)" \
   136    136   		  TCLLIBPATH="$(TCLLIBPATH)"
   137         -EXEC_ENV   = $(TCLSH_ENV) $(PKG_ENV)
   138    137   
   139    138   TCLSH_PROG	= @[email protected]
   140         -TCLSH		= $(EXEC_ENV) $(TCLSH_PROG)
          139  +TCLSH		= $(TCLSH_ENV) $(PKG_ENV) $(TCLSH_PROG)
   141    140   
   142    141   #WISH_ENV	= TK_LIBRARY=`@[email protected] $(TK_SRC_DIR)/library`
   143    142   #WISH_PROG	= @[email protected]
   144    143   #WISH		= $(PKG_ENV) $(TCLSH_ENV) $(WISH_ENV) $(WISH_PROG)
   145    144   
   146    145   SHARED_BUILD	= @[email protected]
   147    146   
................................................................................
   164    163   
   165    164   CPPFLAGS	= @[email protected]
   166    165   LIBS		= @[email protected] @[email protected]
   167    166   AR		= @[email protected]
   168    167   CFLAGS		= @[email protected]
   169    168   COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
   170    169   
   171         -
   172         -GDB          =  gdb
   173         -VALGRIND     =  valgrind
   174         -VALGRINDARGS =	--tool=memcheck --num-callers=8 --leak-resolution=high \
   175         -		--leak-check=yes --show-reachable=yes -v
   176         -
          170  +GDB		= gdb
          171  +VALGRINDARGS	= --tool=memcheck --num-callers=8 --leak-resolution=high \
          172  +		  --leak-check=yes --show-reachable=yes -v
   177    173   
   178    174   .SUFFIXES: .c .$(OBJEXT)
   179    175   
   180    176   #========================================================================
   181    177   # Start of user-definable TARGETS section
   182    178   #========================================================================
   183    179   
................................................................................
   248    244   	$(TCLSH) `@[email protected] $(srcdir)/tests/all.tcl` $(TESTFLAGS) \
   249    245   		-load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
   250    246   			[list load `@[email protected] $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"
   251    247   
   252    248   shell: binaries libraries
   253    249   	@$(TCLSH) $(SCRIPT)
   254    250   
   255         -
   256    251   gdb:
   257         -	$(EXEC_ENV) $(GDB) $(TCLSH_PROG) $(SCRIPT)
          252  +	$(TCLSH_ENV) $(PKG_ENV) $(GDB) $(TCLSH_PROG) $(SCRIPT)
   258    253   
   259    254   gdb-test: binaries libraries 
   260         -	$(EXEC_ENV) $(GDB) --args $(TCLSH_PROG) `@[email protected] $(srcdir)/tests/all.tcl` \
          255  +	$(TCLSH_ENV) $(PKG_ENV) $(GDB) \
          256  +		--args $(TCLSH_PROG) `@[email protected] $(srcdir)/tests/all.tcl` \
   261    257   		$(TESTFLAGS) -singleproc 1 \
   262    258   		-load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
   263    259   			[list load `@[email protected] $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"
   264    260   
   265         -
   266    261   valgrind: binaries libraries
   267         -	$(EXEC_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) \
          262  +	$(TCLSH_ENV) $(PKG_ENV) valgrind $(VALGRINDARGS) $(TCLSH_PROG) \
   268    263   		`@[email protected] $(srcdir)/tests/all.tcl` $(TESTFLAGS)
   269    264   
   270    265   valgrindshell: binaries libraries
   271         -	$(EXEC_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)
          266  +	$(TCLSH_ENV) $(PKG_ENV) valgrind $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)
   272    267   
   273    268   depend:
   274    269   
   275    270   #========================================================================
   276    271   # $(PKG_LIB_FILE) should be listed as part of the BINARIES variable
   277    272   # mentioned above.  That will ensure that this target is built when you
   278    273   # run "make binaries".