tclresource-commits Mailing List for TclResource
Status: Beta
Brought to you by:
bdesgraupes
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(77) |
Oct
|
Nov
|
Dec
|
2006 |
Jan
(9) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Daniel A. S. <da...@us...> - 2007-08-23 11:05:00
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv482 Modified Files: Changes.Log Makefile.in configure.ac tclResource.c Added Files: configure Log Message: * Improvements to TEA buildsystem, update to TEA 3.6. * Allow building against CoreServices only (instead of full Carbon). * Fix warnings from gcc. Index: Makefile.in =================================================================== RCS file: /cvsroot/tclresource/Source/Makefile.in,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.in 5 Jan 2006 09:04:55 -0000 1.1 +++ Makefile.in 23 Aug 2007 11:04:53 -0000 1.2 @@ -1,6 +1,6 @@ # Makefile.in -- # -# This file is a Makefile for Sample TEA Extension. If it has the name +# This file is a Makefile for the Tclresource Extension. If it has the name # "Makefile.in" then it is a template for a Makefile; to generate the # actual Makefile, run "./configure", which is a configuration script # generated by the "autoconf" program (constructs like "@foo@" will get @@ -12,13 +12,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # - -#======================================================================== -# Add additional lines to handle any additional AC_SUBST cases that -# have been added in a customized configure script. -#======================================================================== - -#SAMPLE_NEW_VAR = @SAMPLE_NEW_VAR@ +# RCS: @(#) $Id$ #======================================================================== # Nothing of the variables below this line should need to be changed. @@ -72,9 +66,10 @@ bindir = @bindir@ libdir = @libdir@ +includedir = @includedir@ +datarootdir = @datarootdir@ datadir = @datadir@ mandir = @mandir@ -includedir = @includedir@ DESTDIR = @@ -95,7 +90,6 @@ CC = @CC@ CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ CFLAGS_WARNING = @CFLAGS_WARNING@ -CLEANFILES = @CLEANFILES@ EXEEXT = @EXEEXT@ LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@ MAKE_LIB = @MAKE_LIB@ @@ -109,13 +103,8 @@ SHLIB_LD = @SHLIB_LD@ SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ STLIB_LD = @STLIB_LD@ -TCL_DEFS = @TCL_DEFS@ TCL_BIN_DIR = @TCL_BIN_DIR@ TCL_SRC_DIR = @TCL_SRC_DIR@ -# This is necessary for packages that use private Tcl headers -#TCL_TOP_DIR_NATIVE = @TCL_TOP_DIR_NATIVE@ -# Not used, but retained for reference of what libs Tcl required -TCL_LIBS = @TCL_LIBS@ #======================================================================== # TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our @@ -125,27 +114,25 @@ #======================================================================== EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR) +TCLLIBPATH = $(top_builddir) TCLSH_ENV = TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \ @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \ PATH="$(EXTRA_PATH):$(PATH)" \ - TCLLIBPATH="$(top_builddir)" + TCLLIBPATH="$(TCLLIBPATH)" + TCLSH_PROG = @TCLSH_PROG@ -TCLSH = $(TCLSH_ENV) $(TCLSH_PROG) +TCLSH = $(TCLSH_ENV) $(TCLSH_PROG) + SHARED_BUILD = @SHARED_BUILD@ INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ PKG_CFLAGS = @PKG_CFLAGS@ -# TCL_DEFS is not strictly need here, but if you remove it, then you -# must make sure that configure.in checks for the necessary components -# that your library may use. TCL_DEFS can actually be a problem if -# you do not compile with a similar machine setup as the Tcl core was -# compiled with. -#DEFS = $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS) DEFS = @DEFS@ $(PKG_CFLAGS) -CONFIG_CLEAN_FILES = Makefile +CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl +CLEANFILES = @CLEANFILES@ CPPFLAGS = @CPPFLAGS@ LIBS = @PKG_LIBS@ @LIBS@ @@ -165,7 +152,7 @@ # for the BINARIES that you specified above have already been done. #======================================================================== -all: binaries libraries doc +all: binaries libraries #======================================================================== # The binaries target builds executable programs, Windows .dll's, unix @@ -174,11 +161,10 @@ # of the Makefile, in the "BINARIES" variable. #======================================================================== -binaries: $(BINARIES) pkgIndex.tcl +binaries: $(BINARIES) libraries: - #======================================================================== # Your doc target should differentiate from doc builds (by the developer) # and doc installs (see install-doc), which just install the docs on the @@ -186,10 +172,6 @@ #======================================================================== doc: - @echo "If you have documentation to create, place the commands to" - @echo "build the docs in the 'doc:' target. For example:" - @echo " xml2nroff sample.xml > sample.n" - @echo " xml2html sample.xml > sample.html" install: all install-binaries install-libraries install-doc @@ -216,7 +198,7 @@ install-doc: doc @mkdir -p $(DESTDIR)$(mandir)/mann @echo "Installing documentation in $(DESTDIR)$(mandir)" - @list='$(srcdir)/doc/*.n'; for i in $$list; do \ + @list='$(srcdir)/../Help/*.n'; for i in $$list; do \ echo "Installing $$i"; \ rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \ $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \ @@ -274,22 +256,6 @@ $(COMPILE) -c `@CYGPATH@ $<` -o $@ #======================================================================== -# Create the pkgIndex.tcl file. -# It is usually easiest to let Tcl do this for you with pkg_mkIndex, but -# you may find that you need to customize the package. If so, either -# modify the -hand version, or create a pkgIndex.tcl.in file and have -# the configure script output the pkgIndex.tcl by editing configure.in. -#======================================================================== - -pkgIndex.tcl: - ( echo pkg_mkIndex . $(PKG_LIB_FILE) \; exit; ) | $(TCLSH) - -pkgIndex.tcl-hand: - (echo 'package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \ - [list load [file join $$dir $(PKG_LIB_FILE)]]'\ - ) > pkgIndex.tcl - -#======================================================================== # Distribution creation # You may need to tweak this target to make it work correctly. #======================================================================== Index: Changes.Log =================================================================== RCS file: /cvsroot/tclresource/Source/Changes.Log,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Changes.Log 5 Jan 2006 09:08:12 -0000 1.5 +++ Changes.Log 23 Aug 2007 11:04:52 -0000 1.6 @@ -27,9 +27,12 @@ ================================================================================ = 1.1.2 last update: ================================================================================ -¥ Introduced TEA (3.4) support. +¥ Introduced TEA (3.2) support. ¥ Minor modifications in the organisation of the headers. ¥ Fixed potential bug where the interpreter's result was not reset. +¥ Improvements to TEA buildsystem, update to TEA 3.6. +¥ Allow building against CoreServices only (instead of full Carbon). +¥ Fix warnings from gcc. ================================================================================ = 1.1.1 release last update: 2004-09-08 08:53:10 Index: configure.ac =================================================================== RCS file: /cvsroot/tclresource/Source/configure.ac,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- configure.ac 5 Jan 2006 09:04:55 -0000 1.1 +++ configure.ac 23 Aug 2007 11:04:53 -0000 1.2 @@ -8,12 +8,9 @@ # Configuration input file for the Tclresource extension for MacOSX. # This file is based on the configure.in file provided with the Tcl # sampleextension. -# The only places which needed to be modified are marked by the -# string __CHANGE__ #----------------------------------------------------------------------- #----------------------------------------------------------------------- -# __CHANGE__ # Set your package name and version numbers here. # # This initializes the environment with PACKAGE_NAME and PACKAGE_VERSION @@ -23,13 +20,17 @@ AC_INIT([Tclresource], [1.1.2], [http://sourceforge.net/projects/tclresource]) +if test ! -d /System/Library/Frameworks/Carbon.framework; then + AC_MSG_ERROR([Mac OS X with Carbon required!]) +fi + #-------------------------------------------------------------------- # Call TEA_INIT as the first TEA_ macro to set up initial vars. # This will define a ${TEA_PLATFORM} variable == "unix" or "windows" # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. #-------------------------------------------------------------------- -TEA_INIT([3.4]) +TEA_INIT([3.6]) AC_CONFIG_AUX_DIR(tclconfig) @@ -40,13 +41,6 @@ TEA_PATH_TCLCONFIG TEA_LOAD_TCLCONFIG -#-------------------------------------------------------------------- -# Load the tkConfig.sh file if necessary (Tk extension) -#-------------------------------------------------------------------- - -#TEA_PATH_TKCONFIG -#TEA_LOAD_TKCONFIG - #----------------------------------------------------------------------- # Handle the --prefix=... option by defaulting to what Tcl gave. # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. @@ -64,7 +58,6 @@ TEA_SETUP_COMPILER #----------------------------------------------------------------------- -# __CHANGE__ # Specify the C source files to compile in TEA_ADD_SOURCES, # public headers that need to be installed in TEA_ADD_HEADERS, # stub library C source files to compile in TEA_ADD_STUB_SOURCES, @@ -76,39 +69,14 @@ TEA_ADD_SOURCES([tclResource.c]) TEA_ADD_HEADERS([]) TEA_ADD_INCLUDES([]) -TEA_ADD_LIBS([/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon]) +TEA_ADD_LIBS([-framework Carbon]) TEA_ADD_CFLAGS([]) TEA_ADD_STUB_SOURCES([]) TEA_ADD_TCL_SOURCES([]) -#-------------------------------------------------------------------- -# __CHANGE__ -# A few miscellaneous platform-specific items: -# -# Define a special symbol for Windows (BUILD_sample in this case) so -# that we create the export library with the dll. -# -# Windows creates a few extra files that need to be cleaned up. -# You can add more files to clean if your extension creates any extra -# files. -# -# TEA_ADD_* any platform specific compiler/build info here. -#-------------------------------------------------------------------- - -if test "${TEA_PLATFORM}" = "windows" ; then - AC_DEFINE(BUILD_sample) - CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" - #TEA_ADD_SOURCES([win/winFile.c]) - #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"]) -else - CLEANFILES="pkgIndex.tcl" - #TEA_ADD_SOURCES([unix/unixFile.c]) - #TEA_ADD_LIBS([-lsuperfly]) -fi AC_SUBST(CLEANFILES) #-------------------------------------------------------------------- -# __CHANGE__ # Choose which headers you need. Extension authors should try very # hard to only rely on the Tcl public header files. Internal headers # contain private data structures and are subject to change without @@ -119,10 +87,6 @@ TEA_PUBLIC_TCL_HEADERS TEA_PRIVATE_TCL_HEADERS -#TEA_PUBLIC_TK_HEADERS -#TEA_PRIVATE_TK_HEADERS -#TEA_PATH_X - #-------------------------------------------------------------------- # Check whether --enable-threads or --disable-threads was given. # This auto-enables if Tcl was compiled threaded. @@ -145,6 +109,12 @@ TEA_CONFIG_CFLAGS +# Remove 64-bit arch flags from CFLAGS et al. for combined 32 & 64 bit +# fat builds as Tclresource cannot be built for 64-bit at present. +test "$fat_32_64" = yes && for v in CFLAGS CPPFLAGS LDFLAGS; do + eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' +done + #-------------------------------------------------------------------- # Set the default compiler switches based on the --enable-symbols option. #-------------------------------------------------------------------- @@ -158,8 +128,7 @@ # link against the non-stubbed Tcl library. Add Tk too if necessary. #-------------------------------------------------------------------- -AC_DEFINE(USE_TCL_STUBS) -#AC_DEFINE(USE_TK_STUBS) +AC_DEFINE(USE_TCL_STUBS, 1, [Use Tcl stubs]) #-------------------------------------------------------------------- # This macro generates a line to use when building a library. It @@ -170,16 +139,14 @@ TEA_MAKE_LIB #-------------------------------------------------------------------- -# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl -# file during the install process. Don't run the TCLSH_PROG through -# ${CYGPATH} because it's being used directly by make. -# Require that we use a tclsh shell version 8.2 or later since earlier -# versions have bugs in the pkg_mkIndex routine. -# Add WISH as well if this is a Tk extension. +# Determine the name of the tclsh and/or wish executables in the +# Tcl and Tk build directories or the location they were installed +# into. These paths are used to support running test cases only, +# the Makefile should not be making use of these paths to generate +# a pkgIndex.tcl file or anything else at extension build time. #-------------------------------------------------------------------- TEA_PROG_TCLSH -#TEA_PROG_WISH #-------------------------------------------------------------------- # Finally, substitute all of the various values into the Makefile. @@ -188,4 +155,4 @@ #-------------------------------------------------------------------- AC_CONFIG_FILES([Makefile] [pkgIndex.tcl]) -AC_OUTPUT \ No newline at end of file +AC_OUTPUT Index: tclResource.c =================================================================== RCS file: /cvsroot/tclresource/Source/tclResource.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- tclResource.c 5 Jan 2006 09:07:50 -0000 1.1 +++ tclResource.c 23 Aug 2007 11:04:53 -0000 1.2 @@ -14,9 +14,18 @@ #include "tclResource_version.h" +#include <CoreServices/CoreServices.h> +#ifndef TCLRESOURCE_DONT_USE_CARBON #include <Carbon/Carbon.h> +#endif + +#ifdef TCLRESOURCE_USE_FRAMEWORK_INCLUDES #include <Tcl/tcl.h> #include <Tcl/tclInt.h> +#else +#include <tcl.h> +#include <tclInt.h> +#endif #include <fcntl.h> @@ -311,13 +320,13 @@ { OpenResourceFork * resourceRef; int index, result, gotResID, gotValue, length, newValue; - short rsrcId; + short rsrcId = 0; long theLong; short saveRef, theMapAttrs, theRezAttrs; char * resourceName = NULL; char buffer[128]; Handle resourceH = NULL; - OSErr err; + OSErr err = noErr; Str255 theName; OSType rezType; @@ -574,11 +583,11 @@ Tcl_Obj *CONST objv[], // Argument values. Tcl_Obj *resultPtr) // Pointer to store the result. { - OpenResourceFork *resourceRef; + OpenResourceFork *resourceRef = NULL; int index, result, gotResID; int i, limitSearch, length; - short saveRef, resInfo; - short fileRef, rsrcId; + short saveRef = 0, resInfo; + short fileRef, rsrcId = 0; long theLong; char * resourceName = NULL; char buffer[128]; @@ -993,7 +1002,7 @@ OpenResourceFork * resourceRef; Tcl_Obj * objPtr; int i, count, result, limitSearch, onlyID, length; - short id, saveRef; + short id, saveRef = 0; char * string; Handle resourceH = NULL; Str255 theName; @@ -1185,7 +1194,7 @@ char * stringPtr; char * native; char resultStr[256]; - SInt8 macPermision; + SInt8 macPermision = 0; FSSpec fileSpec; FSRef fileFSRef, parentFSRef; OSErr err; @@ -1490,7 +1499,7 @@ Tcl_Obj *CONST objv[], // Argument values. Tcl_Obj *resultPtr) // Pointer to store the result. { - short rsrcId; + short rsrcId = 0; long theLong, size; int length, releaseIt = 0; char * resmapRef; @@ -1567,7 +1576,7 @@ OpenResourceFork * resourceRef; Tcl_Obj * objPtr; int i, count, result, limitSearch; - short saveRef; + short saveRef = 0; OSType rezType; result = TCL_OK; @@ -1700,13 +1709,13 @@ { int index, result, gotResID, releaseIt = 0, force; int i, limitSearch, length; - short rsrcId; + short rsrcId = 0; long theLong; - short saveRef; + short saveRef = 0; char * bytesPtr; char * resourceName = NULL; char errbuf[16]; - OpenResourceFork * resourceRef; + OpenResourceFork * resourceRef = NULL; Handle resourceH = NULL; OSErr err; Str255 theName; @@ -1976,7 +1985,7 @@ OpenResourceFork * resourceRef; Tcl_HashEntry * nameHashPtr; int limitSearch = false; - short saveRef; + short saveRef = 0; Handle resourceH; if (resFileRef != NULL) { @@ -2134,7 +2143,7 @@ // fork list, 0 means at the tail { OpenResourceFork * resourceRef; - Tcl_HashEntry * resourceHashPtr; + Tcl_HashEntry * resourceHashPtr = NULL; Tcl_HashEntry * nameHashPtr; char * resourceId = NULL; int new; @@ -2291,7 +2300,7 @@ Tcl_Obj ** elemPtrs; short fileRef; char * bytes; - int i, match, index, listLen, length, elemLen; + int i, match = 0, index, listLen, length, elemLen; nameHashPtr = Tcl_FindHashEntry(&nameTable, tokenPtr); if (nameHashPtr == NULL) { @@ -2377,14 +2386,15 @@ { FCBPBRec fileRec; char fileName[256]; - char appName[256]; char * s; Tcl_Obj * nameObj; OSErr err; - ProcessSerialNumber psn; - ProcessInfoRec info; FSSpec fileSpec; SInt16 curRefNum, nextRefNum; +#ifndef TCLRESOURCE_DONT_USE_CARBON + char appName[256]; + ProcessSerialNumber psn; + ProcessInfoRec info; // Get the application name, so we can substitute // the token "application" for the application's resource. @@ -2394,6 +2404,7 @@ info.processAppSpec = &fileSpec; GetProcessInformation(&psn, &info); p2cstr((StringPtr) appName); +#endif fileRec.ioCompletion = NULL; fileRec.ioVRefNum = 0; @@ -2420,9 +2431,12 @@ if (s != NULL && strcmp(s+1,"rsrc") == 0) { *s = 0; } +#ifndef TCLRESOURCE_DONT_USE_CARBON if (strcmp(fileName,appName) == 0) { Tcl_SetStringObj(nameObj, "application", -1); - } else { + } else +#endif + { Tcl_SetStringObj(nameObj, fileName, -1); } c2pstr(fileName); --- NEW FILE: configure --- #! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for Tclresource 1.1.2. # # Report bugs to <http://sourceforge.net/projects/tclresource>. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. [...10877 lines suppressed...] # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi |
From: Daniel A. S. <da...@us...> - 2007-08-23 11:04:58
|
Update of /cvsroot/tclresource/Source/tclconfig In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv482/tclconfig Modified Files: tcl.m4 Removed Files: ChangeLog Log Message: * Improvements to TEA buildsystem, update to TEA 3.6. * Allow building against CoreServices only (instead of full Carbon). * Fix warnings from gcc. Index: tcl.m4 =================================================================== RCS file: /cvsroot/tclresource/Source/tclconfig/tcl.m4,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- tcl.m4 5 Jan 2006 09:07:13 -0000 1.1 +++ tcl.m4 23 Aug 2007 11:04:58 -0000 1.2 @@ -11,7 +11,11 @@ # # RCS: @(#) $Id$ -AC_PREREQ(2.50) +AC_PREREQ(2.57) + +dnl TEA extensions pass us the version of TEA they think they +dnl are compatible with (must be set in TEA_INIT below) +dnl TEA_VERSION="3.6" # Possible values for key variables defined: [...2398 lines suppressed...] $1_LIB_SPEC=${$1_BUILD_LIB_SPEC} $1_STUB_LIB_SPEC=${$1_BUILD_STUB_LIB_SPEC} @@ -3909,7 +3986,7 @@ # the include and platform lib files #------------------------------------------------------------------------ -AC_DEFUN(TEA_PATH_CELIB, [ +AC_DEFUN([TEA_PATH_CELIB], [ # First, look for one uninstalled. # the alternative search directory is invoked by --with-celib @@ -3957,3 +4034,8 @@ fi fi ]) + + +# Local Variables: +# mode: autoconf +# End: --- ChangeLog DELETED --- |
From: Daniel A. S. <da...@us...> - 2007-08-23 11:04:57
|
Update of /cvsroot/tclresource/Source/tclResource.pbproj In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv482/tclResource.pbproj Modified Files: project.pbxproj Log Message: * Improvements to TEA buildsystem, update to TEA 3.6. * Allow building against CoreServices only (instead of full Carbon). * Fix warnings from gcc. Index: project.pbxproj =================================================================== RCS file: /cvsroot/tclresource/Source/tclResource.pbproj/project.pbxproj,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- project.pbxproj 7 Sep 2004 12:01:10 -0000 1.3 +++ project.pbxproj 23 Aug 2007 11:04:57 -0000 1.4 @@ -162,7 +162,7 @@ LIBRARY_SEARCH_PATHS = /Library/Frameworks/Tcl.framework; LIBRARY_STYLE = DYNAMIC; OPTIMIZATION_CFLAGS = "-O0"; - OTHER_CFLAGS = ""; + OTHER_CFLAGS = "-DTCLRESOURCE_USE_FRAMEWORK_INCLUDES"; OTHER_LDFLAGS = "-ltclstub8.4"; OTHER_LIBTOOL_FLAGS = ""; OTHER_REZFLAGS = ""; |
From: Bernard D. <bde...@us...> - 2006-01-05 09:16:14
|
Update of /cvsroot/tclresource/Extras/Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31594 Modified Files: OpenCmd.test Log Message: Modif string in test 2-7 Index: OpenCmd.test =================================================================== RCS file: /cvsroot/tclresource/Extras/Tests/OpenCmd.test,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- OpenCmd.test 6 Sep 2004 16:56:23 -0000 1.3 +++ OpenCmd.test 5 Jan 2006 09:16:06 -0000 1.4 @@ -1,11 +1,11 @@ # ------------------------------------------------------- # File: "OpenCmd.test" # Created: 2004-09-05 20:16:33 -# Last modification: 2004-09-06 13:18:23 +# Last modification: 2006-01-04 18:40:03 # Author: Bernard Desgraupes # e-mail: <bde...@ea...> # www: <http://webperso.easyconnect.fr/bdesgraupes/> -# (c) Copyright: Bernard Desgraupes, 2004 +# (c) Copyright: Bernard Desgraupes, 2004-2006 # All rights reserved. # This software is free software with BSD licence. # Versions history: see the Changes.Log file. @@ -117,7 +117,7 @@ } -body { set rid [resource open $resfileDF z] } -cleanup { - } -returnCodes error -result "couldn't get open mode for z" + } -returnCodes error -result "invalid access mode 'z'" # Cleanup ::tcltest::cleanupTests |
From: Bernard D. <bde...@us...> - 2006-01-05 09:09:54
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29005 Modified Files: tclResource_version.h Log Message: Bumped to 1.1.2 Index: tclResource_version.h =================================================================== RCS file: /cvsroot/tclresource/Source/tclResource_version.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- tclResource_version.h 7 Sep 2004 10:39:22 -0000 1.4 +++ tclResource_version.h 5 Jan 2006 09:09:45 -0000 1.5 @@ -1,12 +1,12 @@ // File: "tclResource_CarbonXMachO.h" // Created: 2003-09-24 07:28:22 -// Last modification: 2004-09-07 12:36:35 +// Last modification: 2006-01-05 10:09:25 // Author: Bernard Desgraupes // Description: version numbering for Tclresource #define TCLRESOURCE_MAJOR 1 #define TCLRESOURCE_MINOR 1 -#define TCLRESOURCE_SUBMINOR 1 +#define TCLRESOURCE_SUBMINOR 2 #define TCLRESOURCE_STAGE 'f' // 'd' for developStage // 'a' for alphaStage |
From: Bernard D. <bde...@us...> - 2006-01-05 09:08:22
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28436 Modified Files: Changes.Log Log Message: Reset interpreter's result Index: Changes.Log =================================================================== RCS file: /cvsroot/tclresource/Source/Changes.Log,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Changes.Log 7 Sep 2004 12:59:05 -0000 1.4 +++ Changes.Log 5 Jan 2006 09:08:12 -0000 1.5 @@ -1,20 +1,21 @@ Changes Log for the Tclresource extension ========================================= -The [resource] command was originally defined as a built-in command of Tcl -on MacOS 7/8/9. The original code can be found in the Tcl sources in -/tcl/mac/tclMacResource.c. Tclresource is backwards compatible with the -original command. Version 1.0 can be considered strictly as a port of this -command to OSX (with minor modifications reflecting OSX idiosyncrasies: no -ROM resource map etc.). Versions 1.1 and greater widely enhance the syntax -of the [resource] command but will always remain backwards compatible with -the original command. +The [resource] command was originally defined as a built-in command of Tcl on +MacOS 7/8/9. The original code can be found in the old Tcl sources in +/tcl/mac/tclMacResource.c. The Tclresource extension is backwards compatible +with the original command. Version 1.0 can be considered strictly as a port of +this command to OSX (with minor modifications reflecting OSX idiosyncrasies: no +ROM resource map etc.). Higher versions (1.1 and greater) widely enhance the +syntax of the [resource] command but will always remain backwards compatible +with the original command. This is an Open Source project. The source code for this extension can be found on the SourceForge site at: <http://sourceforge.net/projects/tclresource> + Tclresource binary releases are available at -<http://sourceforge.net/project/showfiles.php?group_id=93101> or on my web -page at <http://webperso.easyconnect.fr/bdesgraupes/tcl.html> +<http://sourceforge.net/project/showfiles.php?group_id=93101> + You can browse the cvs repository online at <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/tclresource> @@ -24,7 +25,14 @@ This changes log is in reverse chronological order (from bottom to top). ================================================================================ -= 1.1.1 release last update: += 1.1.2 last update: +================================================================================ +¥ Introduced TEA (3.4) support. +¥ Minor modifications in the organisation of the headers. +¥ Fixed potential bug where the interpreter's result was not reset. + +================================================================================ += 1.1.1 release last update: 2004-09-08 08:53:10 ================================================================================ ¥ Public release of version 1.1.1. |
From: Bernard D. <bde...@us...> - 2006-01-05 09:08:00
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28325 Added Files: tclResource.c tclResource.exp tclResource.h tclResource.mcp.xml Log Message: Reorg for TEA --- NEW FILE: tclResource.mcp.xml --- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <?codewarrior exportversion="1.0.1" ideversion="5.0" ?> <!DOCTYPE PROJECT [ <!ELEMENT PROJECT (TARGETLIST, TARGETORDER, GROUPLIST, DESIGNLIST?)> <!ELEMENT TARGETLIST (TARGET+)> <!ELEMENT TARGET (NAME, SETTINGLIST, FILELIST?, LINKORDER?, SEGMENTLIST?, OVERLAYGROUPLIST?, SUBTARGETLIST?, SUBPROJECTLIST?, FRAMEWORKLIST?, PACKAGEACTIONSLIST?)> <!ELEMENT NAME (#PCDATA)> <!ELEMENT USERSOURCETREETYPE (#PCDATA)> <!ELEMENT PATH (#PCDATA)> <!ELEMENT FILELIST (FILE*)> <!ELEMENT FILE (PATHTYPE, PATHROOT?, ACCESSPATH?, PATH, PATHFORMAT?, ROOTFILEREF?, FILEKIND?, FILEFLAGS?)> <!ELEMENT PATHTYPE (#PCDATA)> <!ELEMENT PATHROOT (#PCDATA)> <!ELEMENT ACCESSPATH (#PCDATA)> <!ELEMENT PATHFORMAT (#PCDATA)> <!ELEMENT ROOTFILEREF (PATHTYPE, PATHROOT?, ACCESSPATH?, PATH, PATHFORMAT?)> <!ELEMENT FILEKIND (#PCDATA)> <!ELEMENT FILEFLAGS (#PCDATA)> [...2371 lines suppressed...] </GROUP> <GROUP><NAME>Sources</NAME> <FILEREF> <TARGETNAME>TclResource Debug</TARGETNAME> <PATHTYPE>Name</PATHTYPE> <PATH>tclResource.c</PATH> <PATHFORMAT>Unix</PATHFORMAT> </FILEREF> </GROUP> <GROUP><NAME>Libraries</NAME> <FILEREF> <TARGETNAME>TclResource Debug</TARGETNAME> <PATHTYPE>Name</PATHTYPE> <PATH>dylib1.o</PATH> <PATHFORMAT>MacOS</PATHFORMAT> </FILEREF> </GROUP> </GROUPLIST> </PROJECT> --- NEW FILE: tclResource.c --- // ------------------------------------------------------- // File: "tclResource.c" // Created: 2003-09-20 10:13:07 // Last modification: 2006-01-05 09:23:29 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // (c) Copyright : Bernard Desgraupes, 2003-2006 // All rights reserved. // This software is free software with BSD licence. // Versions history: see the Changes.Log file. // // $Date: 2006/01/05 09:07:50 $ // ------------------------------------------------------- #include "tclResource_version.h" #include <Carbon/Carbon.h> #include <Tcl/tcl.h> #include <Tcl/tclInt.h> [...2633 lines suppressed...] // // ---------------------------------------------------------------------- static void TclRes_UpdateStringOfOSType( register Tcl_Obj *objPtr) // Int object whose string rep to update. { char string[sizeof(OSType)+1]; Tcl_DString ds; memcpy(string, &(objPtr->internalRep.longValue), sizeof(OSType)); string[sizeof(OSType)] = '\0'; Tcl_ExternalToUtfDString(NULL, string, -1, &ds); objPtr->bytes = ckalloc(Tcl_DStringLength(&ds) + 1); memcpy(objPtr->bytes, Tcl_DStringValue(&ds), Tcl_DStringLength(&ds) + 1); objPtr->length = Tcl_DStringLength(&ds); Tcl_DStringFree(&ds); } --- NEW FILE: tclResource.h --- // ------------------------------------------------------- // File: "tclResource.h" // Created: 2003-09-20 10:13:07 // Last modification: 2005-12-27 17:12:12 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://sourceforge.net/projects/tclresource> // (c) Copyright : Bernard Desgraupes, 2003-2004, 2005 // All rights reserved. // ------------------------------------------------------- #ifndef _TCLRESOURCE_H #define _TCLRESOURCE_H #define TARGET_API_MAC_CARBON 1 #define TARGET_API_MAC_OSX 1 // Stubs mechanism enabled #define USE_TCL_STUBS #include <Carbon/Carbon.h> struct SFReply {char dummy;}; typedef struct SFReply SFReply; typedef struct SFReply StandardFileReply; #if TARGET_RT_MAC_MACHO #ifdef MAC_TCL #undef MAC_TCL #endif #endif #include <Tcl/tcl.h> #include <Tcl/tclInt.h> #ifndef CONST84 // Tcl 8.4 backwards compatibility # define CONST84 # define CONST84_RETURN CONST #endif #endif // _TCLRESOURCE_H --- NEW FILE: tclResource.exp --- _Resource_Init |
From: Bernard D. <bde...@us...> - 2006-01-05 09:07:47
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28271 Added Files: tclResource.pch tclResourcePrefix.h tclResource_headers.h Log Message: Reorg for TEA --- NEW FILE: tclResource_headers.h --- // File: "TclResource_headers.h" // Created: 2003-09-22 10:47:15 // Last modification: 2004-09-01 22:04:56 // Author: Bernard Desgraupes // Description: Use this header to include the precompiled headers // on OSX for dylib target built with CW Pro 8 #pragma check_header_flags on #if __POWERPC__ #include "MW_TclResourceHeaderCarbonX" #endif #ifdef MAC_TCL #undef MAC_TCL #endif --- NEW FILE: tclResourcePrefix.h --- // File: "tclResourcePrefix.h" // Created: 2003-09-22 10:47:15 // Last modification: 2005-12-27 17:28:48 // Author: Bernard Desgraupes // Description: Use this header on OSX for dylib target built with CodeWarrior #define TARGET_API_MAC_CARBON 1 #define TARGET_API_MAC_OSX 1 // Stubs mechanism enabled #define USE_TCL_STUBS #ifndef __MWERKS__ #error "This prefix file is for the CodeWarrior target only." #else #include "tclResource_headers.h" #endif // __MWERKS__ --- NEW FILE: tclResource.pch --- // File: "TclResource.pch" // Created: 2003-09-22 10:47:15 // Last modification: 2005-12-27 16:51:25 // Author: Bernard Desgraupes // Description: Use this header to build the precompiled header #ifndef __APPLE_CC__ #pragma precompile_target "MW_TclResourceHeaderCarbonX" #endif #include "tclResource_version.h" #include "tclResource.h" |
From: Bernard D. <bde...@us...> - 2006-01-05 09:07:25
|
Update of /cvsroot/tclresource/Source/tclconfig In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28157 Added Files: ChangeLog README.txt install-sh tcl.m4 Log Message: TEA 3.4 --- NEW FILE: install-sh --- #!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5; it is not part of GNU. # # $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $ # # This script is compatible with the BSD install script, but was written # from scratch. # # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" instcmd="$mvprog" chmodcmd="" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; *) if [ x"$src" = x ] then src=$1 else dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` fi # Make a temp file name in the proper directory. dstdir=`dirname $dst` dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp # and set any options; do chmod last to preserve setuid bits if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi # Now rename the file to the real destination. $doit $rmcmd $dst $doit $mvcmd $dsttmp $dst exit 0 --- NEW FILE: tcl.m4 --- # tcl.m4 -- # # This file provides a set of autoconf macros to help TEA-enable # a Tcl extension. # # Copyright (c) 1999-2000 Ajuba Solutions. # Copyright (c) 2002-2005 ActiveState Corporation. # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # RCS: @(#) $Id: tcl.m4,v 1.1 2006/01/05 09:07:13 bdesgraupes Exp $ AC_PREREQ(2.50) # Possible values for key variables defined: # # TEA_WINDOWINGSYSTEM - win32 aqua x11 (mirrors 'tk windowingsystem') # TEA_PLATFORM - windows unix [...3920 lines suppressed...] ${srcdir}/../celib \ `ls -dr ${srcdir}/../celib-*3.[[0-9]]* 2>/dev/null` \ ; do if test -d "$i/inc" ; then ac_cv_c_celibconfig=`(cd $i; pwd)` break fi done fi ]) if test x"${ac_cv_c_celibconfig}" = x ; then AC_MSG_ERROR([Cannot find celib support library directory]) else no_celib= CELIB_DIR=${ac_cv_c_celibconfig} CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` AC_MSG_RESULT([found $CELIB_DIR]) fi fi ]) --- NEW FILE: README.txt --- These files comprise the basic building blocks for a Tcl Extension Architecture (TEA) extension. For more information on TEA see: http://www.tcl.tk/doc/tea/ This package is part of the Tcl project at SourceForge, and latest sources should be available there: http://tcl.sourceforge.net/ This package is a freely available open source package. You can do virtually anything you like with it, such as modifying it, redistributing it, and selling it either in whole or in part. CONTENTS ======== The following is a short description of the files you will find in the sample extension. README.txt This file install-sh Program used for copying binaries and script files to their install locations. tcl.m4 Collection of Tcl autoconf macros. Included by a package's aclocal.m4 to define TEA_* macros. --- NEW FILE: ChangeLog --- 2005-03-24 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_TCL_64BIT_FLAGS): use Tcl header defaults for wide int type only on Windows when __int64 is detected as valid. 2005-03-24 Don Porter <dg...@us...> * README.txt: Update reference to "SC_* macros" to "TEA_* macros". * tcl.m4: Incorporated recent improvements in SC_PATH_TCLCONFIG and SC_PATH_TKCONFIG into TEA_PATH_TCLCONFIG and TEA_PATH_TKCONFIG. Corrected search path in TEA_PATH_CONFIG and added AC_SUBST($1_BIN_DIR) to TEA_LOAD_CONFIG so that packages that load the configuration of another package can know where they loaded it from. 2005-03-18 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_CONFIG_CFLAGS): correct 2005-03-17 change to have variant LD_SEARCH_FLAGS for gcc and cc builds. * tcl.m4 (TEA_PROG_TCLSH, TEA_PROG_WISH): correct x-compile check. 2005-03-17 Jeff Hobbs <je...@Ac...> * tcl.m4: Correct gcc build and HP-UX-11. 2005-02-08 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_ADD_LIBS): don't touch lib args starting with -. (TEA_CONFIG_CFLAGS): only define _DLL for CE in shared build. (TEA_MAKE_LIB): set RANLIB* to : on Windows (it's not needed). 2005-02-01 Jeff Hobbs <je...@Ac...> * tcl.m4: redo of 2005-01-27 changes to correctly handle paths with spaces. Win/CE and Win/64 builds now require a prebuilt tclsh to handle conversion to short pathnames. This is done in the new TEA_PATH_NOSPACE macro. For Win/CE|64, make CC just the compiler and move the necessary includes to CFLAGS. (TEA_CONFIG_CFLAGS): Add Solaris 64-bit gcc build support. (TEA_PROG_TCLSH, TEA_PROG_WISH): Allow TCLSH_PROG and WISH_PROG to be set in the env and prevent resetting. (TEA_ADD_LIBS): On Windows using GCC (mingw), convert foo.lib args to -lfoo, for use with mingw. *** POTENTIAL INCOMPATABILITY *** (TEA_CONFIG_CFLAGS): Fix AIX gcc builds to work out-of-box. Bumped TEA to 3.2. 2005-01-27 Jeff Hobbs <je...@Ac...> * tcl.m4: remove cygpath calls to support msys. Update base CE build assumption to "420,ARMV4,ARM,Pocket PC 2003". Make STLIB_LD use $LINKBIN -lib. 2005-01-25 Daniel Steffen <da...@us...> * tcl.m4 (Darwin): fixed bug with static build linking to dynamic library in /usr/lib etc instead of linking to static library earlier in search path. [Tcl Bug 956908] Removed obsolete references to Rhapsody. 2004-12-29 Jeff Hobbs <je...@Ac...> * tcl.m4: Updates for VC7 compatibility, fixing CFLAGS and LDFLAGS options, using better default -O levels. [Bug 1092952, 1091967] 2004-12-29 Joe English <jen...@us...> * tcl.m4: Do not use ${DBGX} suffix when building shared libraries [patch #1081595, TIP #34] 2004-09-07 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_CONFIG_CFLAGS): support eVC4 Win/CE builds 2004-08-10 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_INIT, TEA_PREFIX): update handling of exec_prefix to work around subdir configures since autoconf only propagates the prefix (not exec_prefix). 2004-07-23 Daniel Steffen <da...@us...> * tcl.m4 (TEA_CONFIG_CFLAGS): Darwin section: brought inline with Tcl 8.5 HEAD config, removed core specific & obsolete settings. 2004-07-22 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_PATH_X): check in TK_DEFS for MAC_OSX_TK to see if we are compiling on Aqua. Add TEA_WINDOWINGSYSTEM var that reflects 'tk windowingsystem' value. 2004-07-16 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_ENABLE_THREADS): force a threaded build when building against a threaded core. (CFLAGS_WARNING): Remove -Wconversion for gcc builds (TEA_CONFIG_CFLAGS): Reorder configure.in for better 64-bit build configuration, replacing EXTRA_CFLAGS with CFLAGS. [Bug #874058] Update to latest Tcl 8.5 head config settings. Call this TEA version 3.1. 2004-04-29 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_TCL_64BIT_FLAGS): replace AC_TRY_RUN test with AC_TRY_COMPILE for the long vs. long long check. (kenny) 2004-04-26 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_TCL_64BIT_FLAGS): update against core tcl.m4 to define TCL_WIDE_INT_IS_LONG if 'using long'. 2004-03-19 Jeff Hobbs <je...@Ac...> * tcl.m4: correct Windows builds getting LDFLAGS info in MAKE_LIB 2004-02-11 Jeff Hobbs <je...@Ac...> * tcl.m4: correct TCL_INCLUDES for private headers on Windows - it doesn't need the eval. 2004-02-10 Jeff Hobbs <je...@Ac...> * tcl.m4: don't require TK_INCLUDES and TCL_INCLUDES to have the DIR_NATIVE vars defined when using private headers on unix. Allow $... to TEA_ADD_SOURCES for constructs like TEA_ADD_SOURCES([\$(WIN_OBJECTS)]), that allow the developer to place more in the Makefile.in. tkUnixPort.h checks for HAVE_LIMITS_H, so do both HAVE and CHECK on limits.h 2003-12-10 Jeff Hobbs <je...@Ac...> * Makefile.in: added TEA_ADD_LIBS, TEA_ADD_INCLUDES and * configure: TEA_ADD_CFLAGS to configurable parameters with * configure.in: PKG_* equivs in the Makefile. This allows the * tclconfig/tcl.m4: user to worry less about actual magic VAR names. Corrected Makefile.in to note that TEA_ADD_TCL_SOURCES requires exact file names. 2003-12-09 Jeff Hobbs <je...@Ac...> * tcl.m4: updated OpenBSD support based on [Patch #775246] (cassoff) 2003-12-05 Jeff Hobbs <je...@Ac...> * configure: * configure.in: * Makefile.in (VPATH): readd $(srcdir) to front of VPATH as the first part of VPATH can get chopped off. Change .c.$(OBJEXT) rule to .c.@OBJEXT@ to support more makes. * tclconfig/tcl.m4: add TEA_ADD_STUB_SOURCES to support libstub generation and TEA_ADD_TCL_SOURCES to replace RUNTIME_SOURCES as the way the user specifies library files. 2003-12-03 Jeff Hobbs <je...@Ac...> * configure: Update of TEA spec to (hopefully) simplify * configure.in: some aspects of TEA by making use of more * Makefile.in: AC 2.5x features. Use PACKAGE_NAME (instead * generic/tclsample.c: of PACKAGE) and PACKAGE_VERSION (instead of * tclconfig/tcl.m4: VERSION) arguments to AC_INIT as the TEA package name and version. Provide a version argument to TEA_INIT - starting with 3.0. Drop all use of interior shell substs that older makefiles didn't like. Use PKG_* naming convention instead. Move specification of source files and public headers into configure.in with TEA_ADD_SOURCES and TEA_ADD_HEADERS. These will be munged during ./configure into the right obj file names (no $(SOURCES:.c=.obj) needed). There is almost nothing that should be touched in Makefile.in now for the developer. May want to add a TEA_ADD_TCL_SOURCES for the RUNTIME_SOURCES that remains. Use SHLID_LD_FLAGS (instead of SHLID_LDFLAGS) as Tcl does. Only specify the user requested LDFLAGS/CFLAGS in the Makefile, don't mention the _OPTIMIZE/_DEBUG variants. 2003-10-15 Jeff Hobbs <je...@Ac...> * tcl.m4: create a TEA_SETUP_COMPILER_CC the precedes the TEA_SETUP_COMPILER macro. They are split so the check for CC occurs before any use of CC. Also add AC_PROG_CPP to the compiler checks. 2003-10-06 Jeff Hobbs <je...@Ac...> * tcl.m4: Updated for autoconf 2.5x prereq. Where TCL_WIDE_INT_TYPE would be __int64, defer to the code checks in tcl.h, which also handles TCL_LL_MODIFIER* properly. 2003-04-22 Jeff Hobbs <je...@Ac...> * tcl.m4: correct default setting of ARCH for WinCE builds. Correct \ escaping for CE sed macros. 2003-04-10 Jeff Hobbs <je...@Ac...> * tcl.m4: replace $(syscal) construct with older `syscall` for systems where sh != bash. 2003-04-09 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_WITH_CELIB): add --enable-wince and --with-celib options for Windows/CE compilation support. Requires the Microsoft eMbedded SDK and Keuchel's celib emulation layer. 2003-02-18 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_ENABLE_THREADS): Make sure -lpthread gets passed on the link line when checking for the pthread_attr_setstacksize symbol. (dejong) * tcl.m4 (TEA_SETUP_COMPILER): added default calls to TEA_TCL_EARLY_FLAGS, TEA_TCL_64BIT_FLAGS, TEA_MISSING_POSIX_HEADERS and TEA_BUGGY_STRTOD. 2003-02-14 Jeff Hobbs <je...@Ac...> * tcl.m4: correct HP-UX ia64 --enable-64bit build flags 2003-01-29 Jeff Hobbs <je...@Ac...> * tcl.m4: check $prefix/lib as well as $exec_prefix/lib when looking for tcl|tkConfig.sh, as this check is done before we would set exec_prefix when the user does not define it. 2003-01-21 Mo DeJong <md...@us...> * tcl.m4 (TEA_CONFIG_CFLAGS): Fix build support for mingw, the previous implementation would use VC++ when compiling with mingw gcc. Don't pass -fPIC since gcc always compiles pic code under win32. Change some hard coded cases of gcc to ${CC}. 2002-10-15 Jeff Hobbs <je...@Ac...> * tcl.m4: move the CFLAGS definition from TEA_ENABLE_SHARED to TEA_MAKE_LIB because setting too early confuses other AC_* macros. Correct the HP-11 SHLIB_LD_LIBS setting. * tcl.m4: add the CFLAGS definition into TEA_ENABLE_SHARED and make it pick up the env CFLAGS at configure time. 2002-10-09 Jeff Hobbs <je...@Ac...> * tcl.m4: add --enable-symbols=mem option to enable TCL_MEM_DEBUG. Improved AIX 64-bit build support, allow it on AIX-4 as well. Enable 64-bit HP-11 compilation with gcc. Enable 64-bit IRIX64-6 cc build support. Correct FreeBSD thread library linkage. Add OSF1 static build support. Improve SunOS-5 shared build SHLIB_LD macro. 2002-07-20 Zoran Vasiljevic <zo...@ar...> * tcl.m4: Added MINGW32 to list of systems checked for Windows build. Also, fixes some indentation issues with "--with-XXX" options. 2002-04-23 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_ENABLE_THREADS): added USE_THREAD_ALLOC define to use new threaded allocatory by default on Unix for Tcl 8.4. (TEA_CONFIG_CFLAGS): corrected LD_SEARCH_FLAGS for FreeBSD-3+. 2002-04-22 Jeff Hobbs <je...@Ac...> * tcl.m4 (TEA_SETUP_COMPILER): removed call to AC_CYGWIN so that we can use autoconf 2.5x as well as 2.13. This prevents us from being able to warn against the use of cygwin gcc at configure time, but allows autoconf 2.5x, which is what is shipped with most newer systems. 2002-04-11 Jeff Hobbs <je...@Ac...> * tcl.m4: Enabled COFF as well as CV style debug info with --enable-symbols to allow Dr. Watson users to see function info. More info on debugging levels can be obtained at: http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 2002-04-03 Jeff Hobbs <je...@Ac...> * tcl.m4: change all SC_* macros to TEA_*. The SC_ was for Scriptics, which is no more. TEA represents a better, independent prefix that won't need changing. Added preliminary mingw gcc support. [Patch #538772] Added TEA_PREFIX macro that handles defaulting the prefix and exec_prefix vars to those used by Tcl if none were specified. Added TEA_SETUP_COMPILER macro that encompasses the AC_PROG_CC check and several other basic AC_PROG checks needed for making executables. This greatly simplifies user's configure.in files. Collapsed AIX-5 defines into AIX-* with extra checks for doing the ELF stuff on AIX-5-ia64. Updated TEA_ENABLE_THREADS to take an optional arg to allow switching it on by default (for Thread) and add sanity checking to warn the user if configuring threads incompatibly. 2002-03-29 Jeff Hobbs <je...@Ac...> * tcl.m4: made sure that SHLIB_LDFLAGS was set to LDFLAGS_DEFAULT. Removed --enable-64bit support for AIX-4 because it wasn't correct. Added -MT or -MD Windows linker switches to properly support symbols-enabled builds. 2002-03-28 Jeff Hobbs <je...@Ac...> * tcl.m4: called AC_MSG_ERROR when SC_TEA_INIT wasn't called first instead of calling it as that inlines it each time in shell code. Changed Windows CFLAGS_OPTIMIZE to use -O2 instead of -Oti. Noted TCL_LIB_VERSIONS_OK=nodots for Windows builds. A few changes to support itcl (and perhaps others): Added support for making your own stub libraries to SC_MAKE_LIB. New SC_PATH_CONFIG and SC_LOAD_CONFIG that take a package name arg and find that ${pkg}Config.sh file. itk uses this for itcl. 2002-03-27 Jeff Hobbs <je...@Ac...> * tcl.m4: made SC_LOAD_TKCONFIG recognize when working with a Tk build dir setup. Added EXTRA_CFLAGS and SHLIB_LD_LIBS substs to SC_CONFIG_CFLAGS. Added XLIBSW onto LIBS when it is defined. Remove TCL_LIBS from MAKE_LIB and correctly use SHLIB_LD_LIBS instead to not rely as much on tclConfig.sh cached info. Add TK_BIN_DIR to paths to find wish in SC_PROG_WISH. These move towards making TEA much more independent of *Config.sh. 2002-03-19 Jeff Hobbs <je...@Ac...> * tcl.m4: corrected forgotten (UN)SHARED_LIB_SUFFIX and SHLIB_SUFFIX defines for Win. (SC_PATH_X): made this only do the check on unix platforms. 2002-03-12 Jeff Hobbs <je...@Ac...> * README.txt: updated to reflect fewer files 2002-03-06 Jeff Hobbs <je...@Ac...> * config.guess (removed): * config.sub (removed): removed unnecessary files * installFile.tcl (removed): * mkinstalldirs (removed): these aren't really necessary for making TEA work * tcl.m4 (SC_PUBLIC_TCL_HEADERS, SC_PUBLIC_TK_HEADERS): don't check /usr(/local)/include for includes on Windows when not using gcc 2002-03-05 Jeff Hobbs <je...@Ac...> * tcl.m4: added warnings on Windows, removed RELPATH define and added TCL_LIBS to MAKE_LIB macro. This import represents 2.0.0, or a new start at attempting to make TEA much easier for C extension developers. **** moved from tclpro project to core tcl project, **** **** renamed to 'tclconfig' **** 2001-03-15 Karl Lehenbauer <ka...@pr...> * installFile.tcl: Added updating of the modification time of the target file whether we overwrote it or decided that it hadn't changed. This was necessary for us to be able to determine whether or not a module install touched the file. 2001-03-08 Karl Lehenbauer <ka...@pr...> * installFile.tcl: Added support for converting new-style (1.1+) Cygnus drive paths to Tcl-style. 2001-01-15 <bre...@in...> * tcl.m4: Added FreeBSD clause. 2001-01-03 <bre...@in...> * tcl.m4: Fixed typo in SC_LIB_SPEC where it is checking for exec-prefix. 2000-12-01 <bre...@in...> * tcl.m4: Concatenated most of the Ajuba acsite.m4 file so we don't need to modify the autoconf installation. * config.guess: * config.sub: * installFile.tcl: Added files from the itcl config subdirectory, which should go away. 2000-7-29 <we...@aj...> * Fixed the use of TCL_SRC_DIR and TK_SRC_DIR within TCL_PRIVATE_INCLUDES and TK_PRIVATE_INCLUDES to match their recent change from $(srcdir) to $(srcdir)/.. |
From: Bernard D. <bde...@us...> - 2006-01-05 09:06:47
|
Update of /cvsroot/tclresource/Source/tclconfig In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27968/tclconfig Log Message: Directory /cvsroot/tclresource/Source/tclconfig added to the repository |
From: Bernard D. <bde...@us...> - 2006-01-05 09:05:06
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27340 Added Files: Makefile.in aclocal.m4 configure.ac pkgIndex.tcl.in Log Message: TEA 3.4 support --- NEW FILE: aclocal.m4 --- # # Include the TEA standard macro set # builtin(include,tclconfig/tcl.m4) # # Add here whatever m4 macros you want to define for your package # --- NEW FILE: Makefile.in --- # Makefile.in -- # # This file is a Makefile for Sample TEA Extension. If it has the name # "Makefile.in" then it is a template for a Makefile; to generate the # actual Makefile, run "./configure", which is a configuration script # generated by the "autoconf" program (constructs like "@foo@" will get # replaced in the actual Makefile. # # Copyright (c) 1999 Scriptics Corporation. # Copyright (c) 2002-2005 ActiveState Corporation. # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # #======================================================================== # Add additional lines to handle any additional AC_SUBST cases that # have been added in a customized configure script. #======================================================================== #SAMPLE_NEW_VAR = @SAMPLE_NEW_VAR@ #======================================================================== # Nothing of the variables below this line should need to be changed. # Please check the TARGETS section below to make sure the make targets # are correct. #======================================================================== #======================================================================== # The names of the source files is defined in the configure script. # The object files are used for linking into the final library. # This will be used when a dist target is added to the Makefile. # It is not important to specify the directory, as long as it is the # $(srcdir) or in the generic, win or unix subdirectory. #======================================================================== PKG_SOURCES = @PKG_SOURCES@ PKG_OBJECTS = @PKG_OBJECTS@ PKG_STUB_SOURCES = @PKG_STUB_SOURCES@ PKG_STUB_OBJECTS = @PKG_STUB_OBJECTS@ #======================================================================== # PKG_TCL_SOURCES identifies Tcl runtime files that are associated with # this package that need to be installed, if any. #======================================================================== PKG_TCL_SOURCES = @PKG_TCL_SOURCES@ #======================================================================== # This is a list of public header files to be installed, if any. #======================================================================== PKG_HEADERS = @PKG_HEADERS@ #======================================================================== # "PKG_LIB_FILE" refers to the library (dynamic or static as per # configuration options) composed of the named objects. #======================================================================== PKG_LIB_FILE = @PKG_LIB_FILE@ PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@ lib_BINARIES = $(PKG_LIB_FILE) BINARIES = $(lib_BINARIES) SHELL = @SHELL@ srcdir = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ datadir = @datadir@ mandir = @mandir@ includedir = @includedir@ DESTDIR = PKG_DIR = $(PACKAGE_NAME)$(PACKAGE_VERSION) pkgdatadir = $(datadir)/$(PKG_DIR) pkglibdir = $(libdir)/$(PKG_DIR) pkgincludedir = $(includedir)/$(PKG_DIR) top_builddir = . INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ CC = @CC@ CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ CFLAGS_WARNING = @CFLAGS_WARNING@ CLEANFILES = @CLEANFILES@ EXEEXT = @EXEEXT@ LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@ MAKE_LIB = @MAKE_LIB@ MAKE_SHARED_LIB = @MAKE_SHARED_LIB@ MAKE_STATIC_LIB = @MAKE_STATIC_LIB@ MAKE_STUB_LIB = @MAKE_STUB_LIB@ OBJEXT = @OBJEXT@ RANLIB = @RANLIB@ RANLIB_STUB = @RANLIB_STUB@ SHLIB_CFLAGS = @SHLIB_CFLAGS@ SHLIB_LD = @SHLIB_LD@ SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ STLIB_LD = @STLIB_LD@ TCL_DEFS = @TCL_DEFS@ TCL_BIN_DIR = @TCL_BIN_DIR@ TCL_SRC_DIR = @TCL_SRC_DIR@ # This is necessary for packages that use private Tcl headers #TCL_TOP_DIR_NATIVE = @TCL_TOP_DIR_NATIVE@ # Not used, but retained for reference of what libs Tcl required TCL_LIBS = @TCL_LIBS@ #======================================================================== # TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our # package without installing. The other environment variables allow us # to test against an uninstalled Tcl. Add special env vars that you # require for testing here (like TCLX_LIBRARY). #======================================================================== EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR) TCLSH_ENV = TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \ @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \ PATH="$(EXTRA_PATH):$(PATH)" \ TCLLIBPATH="$(top_builddir)" TCLSH_PROG = @TCLSH_PROG@ TCLSH = $(TCLSH_ENV) $(TCLSH_PROG) SHARED_BUILD = @SHARED_BUILD@ INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ PKG_CFLAGS = @PKG_CFLAGS@ # TCL_DEFS is not strictly need here, but if you remove it, then you # must make sure that configure.in checks for the necessary components # that your library may use. TCL_DEFS can actually be a problem if # you do not compile with a similar machine setup as the Tcl core was # compiled with. #DEFS = $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS) DEFS = @DEFS@ $(PKG_CFLAGS) CONFIG_CLEAN_FILES = Makefile CPPFLAGS = @CPPFLAGS@ LIBS = @PKG_LIBS@ @LIBS@ AR = @AR@ CFLAGS = @CFLAGS@ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) #======================================================================== # Start of user-definable TARGETS section #======================================================================== #======================================================================== # TEA TARGETS. Please note that the "libraries:" target refers to platform # independent files, and the "binaries:" target inclues executable programs and # platform-dependent libraries. Modify these targets so that they install # the various pieces of your package. The make and install rules # for the BINARIES that you specified above have already been done. #======================================================================== all: binaries libraries doc #======================================================================== # The binaries target builds executable programs, Windows .dll's, unix # shared/static libraries, and any other platform-dependent files. # The list of targets to build for "binaries:" is specified at the top # of the Makefile, in the "BINARIES" variable. #======================================================================== binaries: $(BINARIES) pkgIndex.tcl libraries: #======================================================================== # Your doc target should differentiate from doc builds (by the developer) # and doc installs (see install-doc), which just install the docs on the # end user machine when building from source. #======================================================================== doc: @echo "If you have documentation to create, place the commands to" @echo "build the docs in the 'doc:' target. For example:" @echo " xml2nroff sample.xml > sample.n" @echo " xml2html sample.xml > sample.html" install: all install-binaries install-libraries install-doc install-binaries: binaries install-lib-binaries install-bin-binaries #======================================================================== # This rule installs platform-independent files, such as header files. # The list=...; for p in $$list handles the empty list case x-platform. #======================================================================== install-libraries: libraries @mkdir -p $(DESTDIR)$(includedir) @echo "Installing header files in $(DESTDIR)$(includedir)" @list='$(PKG_HEADERS)'; for i in $$list; do \ echo "Installing $(srcdir)/$$i" ; \ $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir) ; \ done; #======================================================================== # Install documentation. Unix manpages should go in the $(mandir) # directory. #======================================================================== install-doc: doc @mkdir -p $(DESTDIR)$(mandir)/mann @echo "Installing documentation in $(DESTDIR)$(mandir)" @list='$(srcdir)/doc/*.n'; for i in $$list; do \ echo "Installing $$i"; \ rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \ $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \ done test: binaries libraries $(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) shell: binaries libraries @$(TCLSH) $(SCRIPT) gdb: $(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT) depend: #======================================================================== # $(PKG_LIB_FILE) should be listed as part of the BINARIES variable # mentioned above. That will ensure that this target is built when you # run "make binaries". # # The $(PKG_OBJECTS) objects are created and linked into the final # library. In most cases these object files will correspond to the # source files above. #======================================================================== $(PKG_LIB_FILE): $(PKG_OBJECTS) -rm -f $(PKG_LIB_FILE) ${MAKE_LIB} $(RANLIB) $(PKG_LIB_FILE) $(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS) -rm -f $(PKG_STUB_LIB_FILE) ${MAKE_STUB_LIB} $(RANLIB_STUB) $(PKG_STUB_LIB_FILE) #======================================================================== # We need to enumerate the list of .c to .o lines here. # # In the following lines, $(srcdir) refers to the toplevel directory # containing your extension. If your sources are in a subdirectory, # you will have to modify the paths to reflect this: # # sample.$(OBJEXT): $(srcdir)/generic/sample.c # $(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/sample.c` -o $@ # # Setting the VPATH variable to a list of paths will cause the makefile # to look into these paths when resolving .c to .obj dependencies. # As necessary, add $(srcdir):$(srcdir)/compat:.... #======================================================================== VPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win .c.@OBJEXT@: $(COMPILE) -c `@CYGPATH@ $<` -o $@ #======================================================================== # Create the pkgIndex.tcl file. # It is usually easiest to let Tcl do this for you with pkg_mkIndex, but # you may find that you need to customize the package. If so, either # modify the -hand version, or create a pkgIndex.tcl.in file and have # the configure script output the pkgIndex.tcl by editing configure.in. #======================================================================== pkgIndex.tcl: ( echo pkg_mkIndex . $(PKG_LIB_FILE) \; exit; ) | $(TCLSH) pkgIndex.tcl-hand: (echo 'package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \ [list load [file join $$dir $(PKG_LIB_FILE)]]'\ ) > pkgIndex.tcl #======================================================================== # Distribution creation # You may need to tweak this target to make it work correctly. #======================================================================== #COMPRESS = tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar COMPRESS = gtar zcvf $(PKG_DIR).tar.gz $(PKG_DIR) DIST_ROOT = /tmp/dist DIST_DIR = $(DIST_ROOT)/$(PKG_DIR) dist-clean: rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.* dist: dist-clean mkdir -p $(DIST_DIR) cp -p $(srcdir)/ChangeLog $(srcdir)/README* $(srcdir)/license* \ $(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/*.in \ $(DIST_DIR)/ chmod 664 $(DIST_DIR)/Makefile.in $(DIST_DIR)/aclocal.m4 chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.in for i in $(srcdir)/*.[ch]; do \ if [ -f $$i ]; then \ cp -p $$i $(DIST_DIR)/ ; \ fi; \ done; mkdir $(DIST_DIR)/tclconfig cp $(srcdir)/tclconfig/install-sh $(srcdir)/tclconfig/tcl.m4 \ $(DIST_DIR)/tclconfig/ chmod 664 $(DIST_DIR)/tclconfig/tcl.m4 chmod +x $(DIST_DIR)/tclconfig/install-sh list='demos doc generic library mac tests unix win'; \ for p in $$list; do \ if test -d $(srcdir)/$$p ; then \ mkdir $(DIST_DIR)/$$p; \ cp -p $(srcdir)/$$p/*.* $(DIST_DIR)/$$p/; \ fi; \ done (cd $(DIST_ROOT); $(COMPRESS);) #======================================================================== # End of user-definable section #======================================================================== #======================================================================== # Don't modify the file to clean here. Instead, set the "CLEANFILES" # variable in configure.in #======================================================================== clean: -test -z "$(BINARIES)" || rm -f $(BINARIES) -rm -f *.$(OBJEXT) core *.core -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean: clean -rm -f *.tab.c -rm -f $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log config.status #======================================================================== # Install binary object libraries. On Windows this includes both .dll and # .lib files. Because the .lib files are not explicitly listed anywhere, # we need to deduce their existence from the .dll file of the same name. # Library files go into the lib directory. # In addition, this will generate the pkgIndex.tcl # file in the install location (assuming it can find a usable tclsh shell) # # You should not have to modify this target. #======================================================================== install-lib-binaries: binaries @mkdir -p $(DESTDIR)$(pkglibdir) @list='$(lib_BINARIES)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \ stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \ if test "x$$stub" = "xstub"; then \ echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \ $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \ else \ echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \ $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \ fi; \ ext=`echo $$p|sed -e "s/.*\.//"`; \ if test "x$$ext" = "xdll"; then \ lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \ if test -f $$lib; then \ echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \ $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \ fi; \ fi; \ fi; \ done @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \ if test -f $(srcdir)/$$p; then \ destp=`basename $$p`; \ echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \ fi; \ done @if test "x$(SHARED_BUILD)" = "x1"; then \ echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \ $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \ fi #======================================================================== # Install binary executables (e.g. .exe files and dependent .dll files) # This is for files that must go in the bin directory (located next to # wish and tclsh), like dependent .dll files on Windows. # # You should not have to modify this target, except to define bin_BINARIES # above if necessary. #======================================================================== install-bin-binaries: binaries @mkdir -p $(DESTDIR)$(bindir) @list='$(bin_BINARIES)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p; \ fi; \ done .SUFFIXES: .c .$(OBJEXT) Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status uninstall-binaries: list='$(lib_BINARIES)'; for p in $$list; do \ rm -f $(DESTDIR)$(pkglibdir)/$$p; \ done list='$(PKG_TCL_SOURCES)'; for p in $$list; do \ p=`basename $$p`; \ rm -f $(DESTDIR)$(pkglibdir)/$$p; \ done list='$(bin_BINARIES)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/$$p; \ done .PHONY: all binaries clean depend distclean doc install libraries test # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --- NEW FILE: configure.ac --- #!/bin/bash -norc dnl This file is an input file used by the GNU "autoconf" program to dnl generate the file "configure", which is run during Tcl installation dnl to configure the system for the local environment. # #----------------------------------------------------------------------- # Configuration input file for the Tclresource extension for MacOSX. # This file is based on the configure.in file provided with the Tcl # sampleextension. # The only places which needed to be modified are marked by the # string __CHANGE__ #----------------------------------------------------------------------- #----------------------------------------------------------------------- # __CHANGE__ # Set your package name and version numbers here. # # This initializes the environment with PACKAGE_NAME and PACKAGE_VERSION # set as provided. These will also be added as -D defs in your Makefile # so you can encode the package version directly into the source files. #----------------------------------------------------------------------- AC_INIT([Tclresource], [1.1.2], [http://sourceforge.net/projects/tclresource]) #-------------------------------------------------------------------- # Call TEA_INIT as the first TEA_ macro to set up initial vars. # This will define a ${TEA_PLATFORM} variable == "unix" or "windows" # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. #-------------------------------------------------------------------- TEA_INIT([3.4]) AC_CONFIG_AUX_DIR(tclconfig) #-------------------------------------------------------------------- # Load the tclConfig.sh file #-------------------------------------------------------------------- TEA_PATH_TCLCONFIG TEA_LOAD_TCLCONFIG #-------------------------------------------------------------------- # Load the tkConfig.sh file if necessary (Tk extension) #-------------------------------------------------------------------- #TEA_PATH_TKCONFIG #TEA_LOAD_TKCONFIG #----------------------------------------------------------------------- # Handle the --prefix=... option by defaulting to what Tcl gave. # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. #----------------------------------------------------------------------- TEA_PREFIX #----------------------------------------------------------------------- # Standard compiler checks. # This sets up CC by using the CC env var, or looks for gcc otherwise. # This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create # the basic setup necessary to compile executables. #----------------------------------------------------------------------- TEA_SETUP_COMPILER #----------------------------------------------------------------------- # __CHANGE__ # Specify the C source files to compile in TEA_ADD_SOURCES, # public headers that need to be installed in TEA_ADD_HEADERS, # stub library C source files to compile in TEA_ADD_STUB_SOURCES, # and runtime Tcl library files in TEA_ADD_TCL_SOURCES. # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS # and PKG_TCL_SOURCES. #----------------------------------------------------------------------- TEA_ADD_SOURCES([tclResource.c]) TEA_ADD_HEADERS([]) TEA_ADD_INCLUDES([]) TEA_ADD_LIBS([/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon]) TEA_ADD_CFLAGS([]) TEA_ADD_STUB_SOURCES([]) TEA_ADD_TCL_SOURCES([]) #-------------------------------------------------------------------- # __CHANGE__ # A few miscellaneous platform-specific items: # # Define a special symbol for Windows (BUILD_sample in this case) so # that we create the export library with the dll. # # Windows creates a few extra files that need to be cleaned up. # You can add more files to clean if your extension creates any extra # files. # # TEA_ADD_* any platform specific compiler/build info here. #-------------------------------------------------------------------- if test "${TEA_PLATFORM}" = "windows" ; then AC_DEFINE(BUILD_sample) CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" #TEA_ADD_SOURCES([win/winFile.c]) #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"]) else CLEANFILES="pkgIndex.tcl" #TEA_ADD_SOURCES([unix/unixFile.c]) #TEA_ADD_LIBS([-lsuperfly]) fi AC_SUBST(CLEANFILES) #-------------------------------------------------------------------- # __CHANGE__ # Choose which headers you need. Extension authors should try very # hard to only rely on the Tcl public header files. Internal headers # contain private data structures and are subject to change without # notice. # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG #-------------------------------------------------------------------- TEA_PUBLIC_TCL_HEADERS TEA_PRIVATE_TCL_HEADERS #TEA_PUBLIC_TK_HEADERS #TEA_PRIVATE_TK_HEADERS #TEA_PATH_X #-------------------------------------------------------------------- # Check whether --enable-threads or --disable-threads was given. # This auto-enables if Tcl was compiled threaded. #-------------------------------------------------------------------- TEA_ENABLE_THREADS #-------------------------------------------------------------------- # The statement below defines a collection of symbols related to # building as a shared library instead of a static library. #-------------------------------------------------------------------- TEA_ENABLE_SHARED #-------------------------------------------------------------------- # This macro figures out what flags to use with the compiler/linker # when building shared/static debug/optimized objects. This information # can be taken from the tclConfig.sh file, but this figures it all out. #-------------------------------------------------------------------- TEA_CONFIG_CFLAGS #-------------------------------------------------------------------- # Set the default compiler switches based on the --enable-symbols option. #-------------------------------------------------------------------- TEA_ENABLE_SYMBOLS #-------------------------------------------------------------------- # Everyone should be linking against the Tcl stub library. If you # can't for some reason, remove this definition. If you aren't using # stubs, you also need to modify the SHLIB_LD_LIBS setting below to # link against the non-stubbed Tcl library. Add Tk too if necessary. #-------------------------------------------------------------------- AC_DEFINE(USE_TCL_STUBS) #AC_DEFINE(USE_TK_STUBS) #-------------------------------------------------------------------- # This macro generates a line to use when building a library. It # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, # and TEA_LOAD_TCLCONFIG macros above. #-------------------------------------------------------------------- TEA_MAKE_LIB #-------------------------------------------------------------------- # Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl # file during the install process. Don't run the TCLSH_PROG through # ${CYGPATH} because it's being used directly by make. # Require that we use a tclsh shell version 8.2 or later since earlier # versions have bugs in the pkg_mkIndex routine. # Add WISH as well if this is a Tk extension. #-------------------------------------------------------------------- TEA_PROG_TCLSH #TEA_PROG_WISH #-------------------------------------------------------------------- # Finally, substitute all of the various values into the Makefile. # You may alternatively have a special pkgIndex.tcl.in or other files # which require substituting th AC variables in. Include these here. #-------------------------------------------------------------------- AC_CONFIG_FILES([Makefile] [pkgIndex.tcl]) AC_OUTPUT --- NEW FILE: pkgIndex.tcl.in --- if {[catch {package require Tcl 8.2}]} return package ifneeded resource @PACKAGE_VERSION@ [list load [file join $dir @PKG_LIB_FILE@] resource] |
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22412 Removed Files: pkgIndex.tcl tclResource.mcp.xml tclResourceOSX.c tclResource_CarbonMachO.pch tclResource_CarbonXMachO.h tclResource_Headers.h tclResource_OSX.exp Log Message: Files renamed. TEA reorg. --- tclResource_CarbonMachO.pch DELETED --- --- tclResource_Headers.h DELETED --- --- tclResourceOSX.c DELETED --- --- tclResource_CarbonXMachO.h DELETED --- --- tclResource.mcp.xml DELETED --- --- tclResource_OSX.exp DELETED --- --- pkgIndex.tcl DELETED --- |
From: Bernard D. <bde...@us...> - 2004-09-15 11:25:38
|
Update of /cvsroot/tclresource/Extras/Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9052 Modified Files: UpdateCmd.test Log Message: New test "Update after resChanged bit change" Index: UpdateCmd.test =================================================================== RCS file: /cvsroot/tclresource/Extras/Tests/UpdateCmd.test,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- UpdateCmd.test 7 Sep 2004 05:17:28 -0000 1.2 +++ UpdateCmd.test 15 Sep 2004 11:25:28 -0000 1.3 @@ -1,7 +1,7 @@ # ------------------------------------------------------- # File: "UpdateCmd.test" # Created: 2004-09-05 20:16:33 -# Last modification: 2004-09-07 07:09:08 +# Last modification: 2004-09-15 13:02:10 # Author: Bernard Desgraupes # e-mail: <bde...@ea...> # www: <http://webperso.easyconnect.fr/bdesgraupes/> @@ -39,10 +39,20 @@ } -returnCodes error -match glob \ -result "error * updating resource map" -# test ResourceUpdate-1-3 {} -setup { -# } -body { -# } -cleanup { -# } -result "" + test ResourceUpdate-1-3 {Update after resChanged bit change} -setup { + set fname [file join [file dir [info script]] Forks TempFork.rsrc] + set rid [resource open $fname w+] + } -body { + resource write -id 128 -file $rid TEXT "Hello Tclresource!" + resource attributes $rid -id 128 TEXT 2 + resource update $rid + set res [resource attributes $rid -id 128 TEXT] + } -cleanup { + resource close $rid + if {[file exists $fname]} { + file delete $fname + } + } -result 0 # Cleanup ::tcltest::cleanupTests |
From: Bernard D. <bde...@us...> - 2004-09-15 10:47:50
|
Update of /cvsroot/tclresource/Help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2195 Modified Files: TclResourceHelp.html Log Message: Minor formatting fix Index: TclResourceHelp.html =================================================================== RCS file: /cvsroot/tclresource/Help/TclResourceHelp.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- TclResourceHelp.html 7 Sep 2004 08:22:49 -0000 1.4 +++ TclResourceHelp.html 15 Sep 2004 10:47:37 -0000 1.5 @@ -1,6 +1,6 @@ <HTML> <HEAD> -<TITLE>Resource Help </TITLE> +<TITLE>TclResourceHelp </TITLE> <META NAME=GENERATOR CONTENT="Aida Mode"> </HEAD> <BODY> @@ -18,8 +18,8 @@ <UL><UL><LI><A HREF="#M8"><B>resource attributes</B> <I>resourceRef</I> <I>option</I> <I>resourceType</I> <I>value</I> </A></UL></UL> <UL><LI><A HREF="#M9"><B>resource close</B> <I>resourceRef</I> </A></UL> <UL><LI><A HREF="#M10"><B>resource delete</B> ?<I>options</I> ? <I>resourceType</I> </A></UL> -<UL><LI><A HREF="#M11"><B>resource fork</B> <I>resourceRef</I> </A></UL> -<UL><LI><A HREF="#M12"><B>resource files</B> ?<I>resourceRef</I> ?</A></UL> +<UL><LI><A HREF="#M11"><B>resource files</B> ?<I>resourceRef</I> ?</A></UL> +<UL><LI><A HREF="#M12"><B>resource fork</B> <I>resourceRef</I> </A></UL> <UL><LI><A HREF="#M13"><B>resource id</B> <I>resourceType</I> <I>resourceName</I> <I>resourceRef</I> </A></UL> <UL><LI><A HREF="#M14"><B>resource list</B> ?<I>-ids</I> ? <I>resourceType</I> ?<I>resourceRef</I> ?</A></UL> <UL><LI><A HREF="#M15"><B>resource name</B> <I>resourceType</I> <I>resourceId</I> <I>resourceRef</I> </A></UL> @@ -101,19 +101,19 @@ path will be deleted. To inspect the file path, use the resource files command. -</UL><P><H3><A NAME="M11"></A><B>resource fork</B> <I>resourceRef</I> </H3> +</UL><P><H3><A NAME="M11"></A><B>resource files</B> ?<I>resourceRef</I> ?</H3> + If resourceRef is not provided, this command returns a Tcl list of the + resource references for all the currently open resource files. The list + is in the normal Macintosh search order for resources. If <I>resourceRef</I> is + specified, the command will return the path to the file whose resource + fork is represented by that token.<P><H3><A NAME="M12"></A><B>resource fork</B> <I>resourceRef</I> </H3> Returns which fork (either data fork or resource fork) contains the resource map specified by the argument <I>resourceRef</I> . The return value will be <I>datafork</I> , <I>resourcefork</I> or <I>unknown</I> . The value <I>unknown</I> is returned for the resource maps listed by the command <B>resource list</B> which were not opened explicitely by a resource open command but were already in memory. <P> Note that the <B>resource fork</B> command is available only since version 1.1 - of the Tclresource extension.<P><H3><A NAME="M12"></A><B>resource files</B> ?<I>resourceRef</I> ?</H3> - If resourceRef is not provided, this command returns a Tcl list of the - resource references for all the currently open resource files. The list - is in the normal Macintosh search order for resources. If <I>resourceRef</I> is - specified, the command will return the path to the file whose resource - fork is represented by that token.<P><H3><A NAME="M13"></A><B>resource id</B> <I>resourceType</I> <I>resourceName</I> <I>resourceRef</I> </H3> + of the Tclresource extension.<P><H3><A NAME="M13"></A><B>resource id</B> <I>resourceType</I> <I>resourceName</I> <I>resourceRef</I> </H3> Returns the id of the resource of type <I>resourceType</I> with name <I>resourceName</I> in the resource map designated by the argument <I>resourceRef</I> . This is the reverse of command [resource name].<P><H3><A NAME="M14"></A><B>resource list</B> ?<I>-ids</I> ? <I>resourceType</I> ?<I>resourceRef</I> ?</H3> @@ -207,7 +207,7 @@ <I>mapChanged</I> attributes for the resource map with reference <I>resourceRef</I> , one would write: <PRE> - resource attributes ((i resourceRef i)) 160 + resource attributes resourceRef 160 </PRE><P>The allowable attributes for individual resources are: <P> <P><TABLE BORDER=1 CELLPADDING=1> |
From: Bernard D. <bde...@us...> - 2004-09-15 10:29:34
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31208 Modified Files: tclResourceOSX.c Log Message: Var name fix after copy/paste Index: tclResourceOSX.c =================================================================== RCS file: /cvsroot/tclresource/Source/tclResourceOSX.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- tclResourceOSX.c 15 Sep 2004 09:41:34 -0000 1.17 +++ tclResourceOSX.c 15 Sep 2004 10:29:22 -0000 1.18 @@ -463,11 +463,11 @@ // Don't load the resource in memory SetResLoad(false); - if (gotResID == true) { - resourceH = Get1Resource(rezType, rsrcId); + if (gotInt == true) { + resource = Get1Resource(rezType, rsrcId); err = ResError(); - } else if (resourceName != NULL) { - resourceH = Get1NamedResource(rezType, (StringPtr) resourceName); + } else if (resourceId != NULL) { + resource = Get1NamedResource(rezType, (StringPtr) resourceId); err = ResError(); } @@ -480,7 +480,7 @@ goto attributesDone; } - if (resourceH != NULL) { + if (resource != NULL) { if (gotValue) { /* * Setting the resource attributes @@ -502,8 +502,8 @@ // releasing the resource because anyway ReleaseResource() wonÕt // release a resource whose resChanged attribute has been set. if (newValue & resChanged) { - if (*resourceH == NULL) { - LoadResource(resourceH); + if (*resource == NULL) { + LoadResource(resource); } } SetResAttrs(resource, newValue); |
From: Bernard D. <bde...@us...> - 2004-09-15 09:41:44
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23628 Modified Files: tclResourceOSX.c Log Message: Bug #1028460 in [attributes] fixed Index: tclResourceOSX.c =================================================================== RCS file: /cvsroot/tclresource/Source/tclResourceOSX.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- tclResourceOSX.c 7 Sep 2004 12:59:28 -0000 1.16 +++ tclResourceOSX.c 15 Sep 2004 09:41:34 -0000 1.17 @@ -461,60 +461,26 @@ saveRef = CurResFile(); UseResFile(resourceRef->fileRef); - if (gotInt == true) { // Don't load the resource in memory SetResLoad(false); - resource = Get1Resource(rezType, rsrcId); - SetResLoad(true); - err = ResError(); - - if (err == resNotFound || resource == NULL) { - Tcl_AppendStringsToObj(resultPtr, "resource not found", - (char *) NULL); - result = TCL_ERROR; - goto attributesDone; - } else if (err != noErr) { - sprintf(buffer, "resource error %d while trying to find resource", err); - Tcl_AppendStringsToObj(resultPtr, buffer, (char *) NULL); - result = TCL_ERROR; - goto attributesDone; - } - } - - if (resourceId != NULL) { - Handle tmpResource; - // Don't load the resource in memory - SetResLoad(false); - tmpResource = Get1NamedResource(rezType, (StringPtr) resourceId); + if (gotResID == true) { + resourceH = Get1Resource(rezType, rsrcId); + err = ResError(); + } else if (resourceName != NULL) { + resourceH = Get1NamedResource(rezType, (StringPtr) resourceName); + err = ResError(); + } + SetResLoad(true); - err = ResError(); - - if (err == resNotFound || tmpResource == NULL) { - Tcl_AppendStringsToObj(resultPtr, "resource not found", - (char *) NULL); - result = TCL_ERROR; - goto attributesDone; - } else if (err != noErr) { - sprintf(buffer, "resource error %d while trying to find resource", err); - Tcl_AppendStringsToObj(resultPtr, buffer, (char *) NULL); - result = TCL_ERROR; - goto attributesDone; - } - - if (gotInt) { - if (resource != tmpResource) { - Tcl_AppendStringsToObj(resultPtr, - "\"-id\" and \"-name\" ", - "values do not point to the same resource", - (char *) NULL); - result = TCL_ERROR; - goto attributesDone; - } - } else { - resource = tmpResource; - } - } + + if (err != noErr) { + sprintf(buffer, "resource error %d while trying to find resource", err); + Tcl_AppendStringsToObj(resultPtr, buffer, (char *) NULL); + result = TCL_ERROR; + goto attributesDone; + } + if (resourceH != NULL) { if (gotValue) { /* * Setting the resource attributes @@ -529,10 +495,17 @@ } theAttrs = GetResAttrs(resource); if (theAttrs != newValue) { - // Set the resChanged flag manually because, if the resProtected - // flag has to be set, it will be immediately active and - // ChangedResource(resource) would fail. - newValue |= resChanged; + // If the user is setting the resChanged flag on, load the + // resource in memory if it is not already there (i-e if its + // master pointer contains NULL) otherwise, upon updating, null + // data would be written to the disk. NB: no need to bother about + // releasing the resource because anyway ReleaseResource() wonÕt + // release a resource whose resChanged attribute has been set. + if (newValue & resChanged) { + if (*resourceH == NULL) { + LoadResource(resourceH); + } + } SetResAttrs(resource, newValue); err = ResError(); if (err != noErr) { @@ -560,6 +533,7 @@ result = TCL_OK; } } + } attributesDone: UseResFile(saveRef); |
From: Daniel A. S. <da...@us...> - 2004-09-08 16:25:24
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28155 Removed Files: .DS_Store Log Message: removed --- .DS_Store DELETED --- |
From: Bernard D. <bde...@us...> - 2004-09-07 12:59:46
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19790 Modified Files: tclResourceOSX.c Log Message: Msg for -force option Index: tclResourceOSX.c =================================================================== RCS file: /cvsroot/tclresource/Source/tclResourceOSX.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- tclResourceOSX.c 7 Sep 2004 10:38:48 -0000 1.15 +++ tclResourceOSX.c 7 Sep 2004 12:59:28 -0000 1.16 @@ -1966,11 +1966,9 @@ */ sprintf(errbuf,"%d", rsrcId); - - Tcl_AppendStringsToObj(resultPtr, "the resource ", - errbuf, " already exists, use \"-force\"", - " to overwrite it.", (char *) NULL); - + Tcl_AppendStringsToObj(resultPtr, "the resource ", errbuf, + " already exists, use the \"-force\" option to overwrite it.", (char *) NULL); + result = TCL_ERROR; goto writeDone; } else if (GetResAttrs(resource) & resProtected) { |
From: Bernard D. <bde...@us...> - 2004-09-07 12:59:20
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19675 Modified Files: Changes.Log Log Message: 1.1.1 Index: Changes.Log =================================================================== RCS file: /cvsroot/tclresource/Source/Changes.Log,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Changes.Log 24 Oct 2003 17:34:06 -0000 1.3 +++ Changes.Log 7 Sep 2004 12:59:05 -0000 1.4 @@ -1,13 +1,13 @@ Changes Log for the Tclresource extension ========================================= -The [resource] command was originally defined as a built-in command of Tcl -on MacOS 7/8/9. The original code can be found in the Tcl sources in -/tcl/mac/tclMacResource.c. Tclresource is backwards compatible with the -original command. Version 1.0 can be considered strictly as a port of this -command to OSX (with minor modifications reflecting OSX idiosyncrasies: no -ROM resource map etc.). Versions 1.1 and greater widely enhance the syntax -of the [resource] command but will always remain backwards compatible with +The [resource] command was originally defined as a built-in command of Tcl +on MacOS 7/8/9. The original code can be found in the Tcl sources in +/tcl/mac/tclMacResource.c. Tclresource is backwards compatible with the +original command. Version 1.0 can be considered strictly as a port of this +command to OSX (with minor modifications reflecting OSX idiosyncrasies: no +ROM resource map etc.). Versions 1.1 and greater widely enhance the syntax +of the [resource] command but will always remain backwards compatible with the original command. This is an Open Source project. The source code for this extension can be @@ -19,22 +19,39 @@ <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/tclresource> Please e-mail about any problems you might encounter: -<bde...@ea...> +<bde...@us...> This changes log is in reverse chronological order (from bottom to top). ================================================================================ -= 1.1b3 development last update: 2003-10-24 08:52:41 += 1.1.1 release last update: ================================================================================ - replaced FSpLocationFromPath() by Toolbox FSPathMakeRef(). - removed all dependencies on MoreFiles or MoreFilesX. Updated access +¥ Public release of version 1.1.1. + +================================================================================ += 1.1b4 development last update: 2004-09-07 14:55:22 +================================================================================ +¥ Reorganized the code to separate command definitions and utility + functions. +¥ Fixed crashing bug in [resource open] used with permission due to the + use of an already released object. Bug #1020224. +¥ Fixed [types] command always returning TCL_OK. +¥ More informative error reporting. +¥ Corrected typos in usage strings. +¥ Creation of a complete test suite (using the tcltest library). + +================================================================================ += 1.1b3 last update: 2003-10-24 08:52:41 +================================================================================ +¥ replaced FSpLocationFromPath() by Toolbox FSPathMakeRef(). +¥ removed all dependencies on MoreFiles or MoreFilesX. Updated access paths in the project file. - [resource files $resid] returns POSIX path rather than Finder path. +¥ [resource files $resid] returns POSIX path rather than Finder path. ================================================================================ = 1.1b2 released last update: 2003-10-18 18:51:36 ================================================================================ - fix for [resource list] crashing bug: ReleaseResource should not +¥ fix for [resource list] crashing bug: ReleaseResource should not be called if resource is already in memory. This occured when calling [resource list] with no resourceRef i-e on all resource maps. This bug was already in the original [resource] command under OS8/9 ! @@ -42,14 +59,14 @@ ================================================================================ = 1.1b1 released last update: 2003-10-16 08:15:54 ================================================================================ - first release with the new subcommands and datafork support. New +¥ first release with the new subcommands and datafork support. New suncommands are: [resource attribute], [resource fork], [resource id], [resource name], [resource update]. ================================================================================ = 1.0 released last update: 2003-09-20 12:12:45 ================================================================================ - first release of the old [resource] command as a loadable extension for +¥ first release of the old [resource] command as a loadable extension for OSX. No additional features: just the plain old [resource] as defined as a built-in command in OS9 and earlier. |
From: Bernard D. <bde...@us...> - 2004-09-07 12:58:57
|
Update of /cvsroot/tclresource/Help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19565 Modified Files: ReadMe Log Message: 1.1.1 Index: ReadMe =================================================================== RCS file: /cvsroot/tclresource/Help/ReadMe,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ReadMe 7 Sep 2004 08:24:54 -0000 1.2 +++ ReadMe 7 Sep 2004 12:58:37 -0000 1.3 @@ -1,4 +1,4 @@ -Tclresource 1.1b4 +Tclresource 1.1.1 This is the Tclresource extension implementing the [resource] command in @@ -26,4 +26,4 @@ <http://sourceforge.net/projects/tclresource> ---------------------------------------------------------------------- -Last updated 2004-09-06 23:16:50 \ No newline at end of file +Last updated 2004-09-07 13:13:10 \ No newline at end of file |
From: Bernard D. <bde...@us...> - 2004-09-07 12:35:57
|
Update of /cvsroot/tclresource/Extras/Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15276 Modified Files: common.tcl Log Message: pkg req 1.1.1 Index: common.tcl =================================================================== RCS file: /cvsroot/tclresource/Extras/Tests/common.tcl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- common.tcl 6 Sep 2004 10:44:07 -0000 1.2 +++ common.tcl 7 Sep 2004 12:35:42 -0000 1.3 @@ -20,7 +20,7 @@ # Check that we are on OSX if {$tcl_platform(platform) != "unix" || $tcl_platform(os) != "Darwin"} { puts stdout "The Tclresource extension is for the MacOSX platform only. Exiting now." - exit + return } package require Tcl 8.4 @@ -38,5 +38,5 @@ variable resfileNF [file join [file dir [info script]] Forks TestResourcesNF.rsrc] } -package require resource 1.1 +package require resource 1.1.1 |
From: Bernard D. <bde...@us...> - 2004-09-07 12:35:33
|
Update of /cvsroot/tclresource/Extras/Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15219 Modified Files: all.tcl Log Message: Filter out the -psn* arg Index: all.tcl =================================================================== RCS file: /cvsroot/tclresource/Extras/Tests/all.tcl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- all.tcl 7 Sep 2004 05:18:35 -0000 1.3 +++ all.tcl 7 Sep 2004 12:35:25 -0000 1.4 @@ -1,7 +1,7 @@ # ------------------------------------------------------- # File: "all.tcl" # Created: 2004-09-05 07:54:17 -# Last modification: 2004-09-06 08:11:15 +# Last modification: 2004-09-07 14:32:26 # Author: Bernard Desgraupes # e-mail: <bde...@ea...> # www: <http://webperso.easyconnect.fr/bdesgraupes/> @@ -26,6 +26,9 @@ # Compatibility with the old tcltest package configuring from the command line # arguments. if {[info exists argv]} { + # Filter out the -psn* arg (like -psn_0_2490369) passed by the Finder + # to Wish. + regsub -- {-psn\w+} $argv "" argv eval tcltest::configure $argv } @@ -46,7 +49,6 @@ } puts stdout "Starting tests [clock format [clock seconds]]" - # # Now execute the tests suite # tcltest::runAllTests # Source each of the specified tests @@ -57,6 +59,7 @@ } } + # Cleanup puts stdout "\nEnd of tests [clock format [clock seconds]]" ::tcltest::cleanupTests 1 |
From: Daniel A. S. <da...@us...> - 2004-09-07 12:01:24
|
Update of /cvsroot/tclresource/Source/tclResource.pbproj In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8193/Source/tclResource.pbproj Modified Files: project.pbxproj Log Message: updated version number Index: project.pbxproj =================================================================== RCS file: /cvsroot/tclresource/Source/tclResource.pbproj/project.pbxproj,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- project.pbxproj 7 Sep 2004 08:46:03 -0000 1.2 +++ project.pbxproj 7 Sep 2004 12:01:10 -0000 1.3 @@ -151,7 +151,7 @@ CC = "gcc-3.3"; CPLUSPLUS = "g++-3.3"; DYLIB_COMPATIBILITY_VERSION = 1.0; - DYLIB_CURRENT_VERSION = 1.1; + DYLIB_CURRENT_VERSION = 1.1.1; DYLIB_INSTALLED_NAME = "resource${DYLIB_CURRENT_VERSION}.dylib"; EXPORTED_SYMBOLS_FILE = tclResource_OSX.exp; FRAMEWORK_SEARCH_PATHS = ""; @@ -168,7 +168,7 @@ OTHER_REZFLAGS = ""; PRECOMPILE_PREFIX_HEADER = NO; PREFIX_HEADER = ""; - PRODUCT_NAME = resource1.1.dylib; + PRODUCT_NAME = resource1.1.1.dylib; SECTORDER_FLAGS = ""; USE_GCC3_PFE_SUPPORT = YES; WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"; @@ -177,13 +177,13 @@ ); isa = PBXLibraryTarget; name = tclResource; - productInstallPath = "/Library/Tcl/TclSpeech${DYLIB_COMPATIBILITY_VERSION}"; - productName = "TclSpeech dylib"; + productInstallPath = "/Library/Tcl/Tclresource${DYLIB_COMPATIBILITY_VERSION}"; + productName = "Tclresource dylib"; productReference = F550918E036C35030130931B; }; F550918E036C35030130931B = { isa = PBXLibraryReference; - path = resource1.1.dylib; + path = resource1.1.1.dylib; refType = 3; }; F5509190036C35B40130931B = { |
From: Bernard D. <bde...@us...> - 2004-09-07 11:02:16
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30657 Modified Files: pkgIndex.tcl Log Message: 1.1.1 Index: pkgIndex.tcl =================================================================== RCS file: /cvsroot/tclresource/Source/pkgIndex.tcl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- pkgIndex.tcl 24 Oct 2003 10:05:26 -0000 1.2 +++ pkgIndex.tcl 7 Sep 2004 11:01:49 -0000 1.3 @@ -1,3 +1,3 @@ if {[catch {package require Tcl 8.2}]} return -package ifneeded resource 1.1 [list load [file join $dir resource1.1.dylib] resource] +package ifneeded resource 1.1.1 [list load [file join $dir resource1.1.1.dylib] resource] |
From: Bernard D. <bde...@us...> - 2004-09-07 10:39:34
|
Update of /cvsroot/tclresource/Source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27005 Modified Files: tclResource_version.h Log Message: Version 1.1.1 Index: tclResource_version.h =================================================================== RCS file: /cvsroot/tclresource/Source/tclResource_version.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- tclResource_version.h 29 Nov 2003 13:12:34 -0000 1.3 +++ tclResource_version.h 7 Sep 2004 10:39:22 -0000 1.4 @@ -1,13 +1,13 @@ // File: "tclResource_CarbonXMachO.h" // Created: 2003-09-24 07:28:22 -// Last modification: 2003-11-29 14:10:48 +// Last modification: 2004-09-07 12:36:35 // Author: Bernard Desgraupes // Description: version numbering for Tclresource #define TCLRESOURCE_MAJOR 1 #define TCLRESOURCE_MINOR 1 -#define TCLRESOURCE_SUBMINOR 3 -#define TCLRESOURCE_STAGE 'b' +#define TCLRESOURCE_SUBMINOR 1 +#define TCLRESOURCE_STAGE 'f' // 'd' for developStage // 'a' for alphaStage // 'b' for betaStage |