Tcl Extension Architecture (TEA) Sample Extension

Check-in [3a392bec00]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to tclconference@googlegroups.com
or submit via the online form by Sep 9.

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

Overview
Comment:Tidy: Whitespace, formatting, spelling. No functional change.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3a392bec005314ce5e1e1bcdff5ce6d616f40207
User & Date: stwo 2012-08-01 19:48:48
Context
2012-08-02
04:02
Zap trailing whitespace. No functional change. Fix wrong date in previous ChangeLog entry. check-in: 71ae82d8f5 user: stwo tags: trunk
2012-08-01
19:48
Tidy: Whitespace, formatting, spelling. No functional change. check-in: 3a392bec00 user: stwo tags: trunk
2012-07-31
23:19
Sync with latest Tcl 8.6 updates check-in: 4ec49d5620 user: jan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ChangeLog.

            1  +2010-12-15  Stuart Cassoff  <stwo@users.sourceforge.net>
            2  +
            3  +	* Makefile.in:	Tidy: Whitespace, formatting, spelling.
            4  +	* configure.in:	No functional change.
            5  +
     1      6   2012-08-01  Jan Nijtmans <nijtmans@users.sf.net>
     2      7   
     3      8   	* win/makefile.vc: Sync with latest Tcl 8.6 updates
     4      9   	* win/rules.vc:
     5     10   	* win/pkg.vc:
     6     11   
     7     12   2012-02-27  Jan Nijtmans <nijtmans@users.sf.net>

Changes to Makefile.in.

    68     68   srcdir		= @srcdir@
    69     69   prefix		= @prefix@
    70     70   exec_prefix	= @exec_prefix@
    71     71   
    72     72   bindir		= @bindir@
    73     73   libdir		= @libdir@
    74     74   includedir	= @includedir@
    75         -datarootdir     = @datarootdir@
           75  +datarootdir	= @datarootdir@
    76     76   datadir		= @datadir@
    77     77   mandir		= @mandir@
    78     78   
    79     79   DESTDIR		=
    80     80   
    81     81   PKG_DIR		= $(PACKAGE_NAME)$(PACKAGE_VERSION)
    82     82   pkgdatadir	= $(datadir)/$(PKG_DIR)
................................................................................
   132    132   TCLLIBPATH	= $(top_builddir)
   133    133   TCLSH_ENV	= TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library`
   134    134   PKG_ENV		= @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \
   135    135   		  PATH="$(EXTRA_PATH):$(PATH)" \
   136    136   		  TCLLIBPATH="$(TCLLIBPATH)"
   137    137   
   138    138   TCLSH_PROG	= @TCLSH_PROG@
   139         -TCLSH   	= $(PKG_ENV) $(TCLSH_ENV) $(TCLSH_PROG)
          139  +TCLSH		= $(PKG_ENV) $(TCLSH_ENV) $(TCLSH_PROG)
   140    140   
   141    141   #WISH_ENV	= TK_LIBRARY=`@CYGPATH@ $(TK_SRC_DIR)/library`
   142    142   #WISH_PROG	= @WISH_PROG@
   143         -#WISH   	= $(PKG_ENV) $(TCLSH_ENV) $(WISH_ENV) $(WISH_PROG)
          143  +#WISH		= $(PKG_ENV) $(TCLSH_ENV) $(WISH_ENV) $(WISH_PROG)
   144    144   
   145    145   SHARED_BUILD	= @SHARED_BUILD@
   146    146   
   147    147   INCLUDES	= @PKG_INCLUDES@ @TCL_INCLUDES@
   148    148   #INCLUDES	= @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@
   149    149   
   150    150   PKG_CFLAGS	= @PKG_CFLAGS@
................................................................................
   171    171   
   172    172   #========================================================================
   173    173   # Start of user-definable TARGETS section
   174    174   #========================================================================
   175    175   
   176    176   #========================================================================
   177    177   # TEA TARGETS.  Please note that the "libraries:" target refers to platform
   178         -# independent files, and the "binaries:" target inclues executable programs and
          178  +# independent files, and the "binaries:" target includes executable programs and
   179    179   # platform-dependent libraries.  Modify these targets so that they install
   180    180   # the various pieces of your package.  The make and install rules
   181    181   # for the BINARIES that you specified above have already been done.
   182    182   #========================================================================
   183    183   
   184    184   all: binaries libraries doc
   185    185   
................................................................................
   241    241   
   242    242   shell: binaries libraries
   243    243   	@$(TCLSH) $(SCRIPT)
   244    244   
   245    245   gdb:
   246    246   	$(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
   247    247   
   248         -VALGRINDARGS=--tool=memcheck --num-callers=8 --leak-resolution=high --leak-check=yes --show-reachable=yes -v
          248  +VALGRINDARGS =	--tool=memcheck --num-callers=8 --leak-resolution=high \
          249  +		--leak-check=yes --show-reachable=yes -v
   249    250   
   250    251   valgrind: binaries libraries
   251         -	$(TCLSH_ENV) valgrind $(VALGRINDARGS) $(TCLSH_PROG) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)
          252  +	$(TCLSH_ENV) valgrind $(VALGRINDARGS) $(TCLSH_PROG) \
          253  +		`@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)
   252    254   
   253    255   valgrindshell: binaries libraries
   254    256   	$(TCLSH_ENV) valgrind $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)
   255    257   
   256    258   depend:
   257    259   
   258    260   #========================================================================
................................................................................
   343    345   #========================================================================
   344    346   
   345    347   #========================================================================
   346    348   # Don't modify the file to clean here.  Instead, set the "CLEANFILES"
   347    349   # variable in configure.in
   348    350   #========================================================================
   349    351   
   350         -clean:  
          352  +clean:
   351    353   	-test -z "$(BINARIES)" || rm -f $(BINARIES)
   352    354   	-rm -f *.$(OBJEXT) core *.core
   353    355   	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
   354    356   
   355    357   distclean: clean
   356    358   	-rm -f *.tab.c
   357    359   	-rm -f $(CONFIG_CLEAN_FILES)

Changes to configure.in.

    21     21   
    22     22   AC_INIT([sample], [0.5])
    23     23   
    24     24   #--------------------------------------------------------------------
    25     25   # Call TEA_INIT as the first TEA_ macro to set up initial vars.
    26     26   # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
    27     27   # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
    28         -# --------------------------------------------------------------------
           28  +#--------------------------------------------------------------------
    29     29   
    30     30   TEA_INIT([3.9])
    31     31   
    32     32   AC_CONFIG_AUX_DIR(tclconfig)
    33     33   
    34     34   #--------------------------------------------------------------------
    35     35   # Load the tclConfig.sh file