| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
#517503, a memory leak reported by Miguel Sofer
<msofer@users.sourceforge.net>. The leak happens if an error
occurs for "set var [gets $chan]" and leak one empty object.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* djgpp/Makefile (new):
* unix/tclAppInit.c:
* unix/tclMtherr.c:
* unix/tclUnixFCmd.c:
* unix/tclUnixFile.c:
* unix/tclUnixInit.c:
* unix/tclUnixPort.h: Early stage of DJGPP support for building
Tcl on DOS. Dynamic loading isn't working, yet. Requires watt32
for the TCP/IP stack. No autoconf, yet. Barely tested, but
makes a working exe that runs Tcl in protected-mode, flat memory.
[exec] and pipes will need the most work as multi-tasking on DOS
has to be carefully.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* djgpp/Makefile (new):
* unix/tclAppInit.c:
* unix/tclMtherr.c:
* unix/tclUnixFCmd.c:
* unix/tclUnixFile.c:
* unix/tclUnixInit.c:
* unix/tclUnixPort.h: Early stage of DJGPP support for building
Tcl on DOS. Dynamic loading isn't working, yet. Requires watt32
for the TCP/IP stack. No autoconf, yet. Barely tested, but
makes a working exe that runs Tcl in protected-mode, flat memory.
[exec] and pipes will need the most work as multi-tasking on DOS
has to be carefully.
|
|
|
|
| |
Tcl_SetCommandInfoFromToken. (TIPs #32 and #79.)
|
| |
|
|
|
|
|
|
| |
* unix/tcl.m4: added -pthread for FreeBSD to EXTRA_CFLAGS and
LDFLAGS. Also triggered nodots only for FreeBSD-3.
Added AC_DEFINE(_POSIX_PTHREAD_SEMANTICS) for Solaris.
|
|
|
|
| |
called on a pointer to NULL.
|
|
|
|
|
| |
* unix/tclUnixThrd.c: added thread-safe versions of readdir,
localtime, gmtime and inet_ntoa for threaded build. (jgdavidson)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
restored to return (char *): Tcl_DStringAppend,
Tcl_DStringAppendElement, Tcl_JoinPath, Tcl_TranslateFileName,
Tcl_ExternalToUtfDString, Tcl_UtfToExternalDString,
Tcl_UniCharToUtfDString, Tcl_GetCwd, Tcl_WinTCharToUtf. Also
restored Tcl_WinUtfToTChar to return (TCHAR *) and
Tcl_UtfToUniCharDString to return (Tcl_UniChar *). Modified
some callers. This change recognizes that Tcl_DStrings are
de-facto white-box objects.
* generic/tclCmdMZ.c: corrected use of C++-style comment.
|
|
|
|
|
|
| |
* generic/tclScan.c (Tcl_ScanObjCmd): corrected scan 0x... %x
handling that didn't accept the 0x as a prelude to a base 16
number. [Bug #495213]
|
|
|
|
| |
for bad RE to stop checking further.
|
| |
|
|
|
|
|
|
|
|
| |
search for simple 'string map' style regsub calls.
Delayed creation of resultPtr object until an initial match is
made, as the input string object can then be reused for no matches.
(Tcl_StringObjCmd): optimization improvements to the STR_MAP
algorithm for zero-length and nocase cases.
|
| |
|
| |
|
| |
|
|
|
|
| |
::error was intended. Bump to http 2.4.2.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
by Dale Talcott <daletalcott@users.sourceforge.net>. Avoid to
write nothing into a file as STREAM based implementations will
consider this a EOF (if the file is a pipe). Not done in the
generic layer as this type of writing is actually useful to
check the state of a socket.
|
|
|
|
|
| |
as the command to use to retrieve the pid of a command pipeline
created via 'open'.
|
|
|
|
| |
earlier to avoid shimmering problem.
|
|
|
|
|
| |
dependent, the other not. -eofchar is not empty on the windows
platform.
|
| |
|
| |
|
| |
|
|
|
|
| |
behalf of Don Porter <dgp@users.sourceforge.net>.
|
|
|
|
|
|
|
|
|
|
| |
TIP 27 changes below as a POTENTIAL INCOMPATIBILITY, the
source of the incompatibility has been parameterized so that
it can be removed. When compiling extension code against
the Tcl header files, use the compiler flag -DUSE_NON_CONST
to remove the irresolvable source incompatibilities introduced
by the TIP 27 changes. Resolvable changes are left for extension
authors to resolve.
|
| |
|
|
|
|
|
| |
* generic/tclCompCmds.c (TclCompileRegexpCmd): enhanced to support
-nocase and -- options.
|
|
|
|
|
|
|
|
|
|
|
| |
* win/tcl.m4 (SC_LOAD_TCLCONFIG): Set TCL_LIB_SPEC,
TCL_STUB_LIB_SPEC, and TCL_STUB_LIB_PATH to the
values of TCL_BUILD_LIB_SPEC, TCL_BUILD_STUB_LIB_SPEC,
and TCL_BUILD_STUB_LIB_PATH when tclConfig.sh is loaded
from the build directory. A Tcl extension should
make use of the non-build versions of these variables
since they will work in both cases. This modification
was described in TIP 34.
|
|
|
|
|
| |
(DeleteKey,GetKeyNames,GetType,GetValue,OpenSubKey,SetValue):
redid the CONSTification as previous changes caused failing tests.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclInt.h:
* generic/tclBasic.c: added TclCompileRegexpCmd entry
* generic/tclCompCmds.c (TclCompileStringCmd): corrected to return
TCL_OUT_LINE_COMPILE instead of TCL_ERROR for parsing errors, so
it only throws the error for runtime compile, in case the user
modifies 'string'.
(TclCompileRegexpCmd): first try at a byte-compiled regexp
command. It handles static strings and ^$ bounded static strings.
(TclCompileAppendCmd): made TclPushVarName call always use
TCL_CREATE_VAR as numWords is always > 2 at that point.
|
| |
|
|
|
|
| |
possibly dangerous decr in macro call.
|
| |
|
|
|
|
| |
CONSTification that dropped pointer reference.
|
|
|
|
|
| |
* ChangeLog: broke changes from 2000 into ChangeLog.2000 to reduce
size of the main ChangeLog.
|
| |
|
|
|
|
|
| |
typedef of TCHAR when __STDC__ is defined when using the uncommon
-Za compiler switch with the microsoft compiler.
|
|
|
|
| |
by [package require].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclIntPlatDecls.h:
* mac/tclMacChan.c:
* mac/tclMacFCmd.c:
* mac/tclMacFile.c:
* mac/tclMacInit.c:
* mac/tclMacLoad.c:
* mac/tclMacResource.c:
* mac/tclMacSock.c: TIP 27 CONSTification induced changes
* tests/event.test:
* tests/main.test: added catches/constraints to test that
use features that don't exist on the mac.
|
|
|
|
| |
longer needed after the TIP 27 effort.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
server sockets. [Bug 496733]
* generic/tclIO.c (Tcl_GetChannelOption, Tcl_SetChannelOption):
Instead of returning nothing for the -translation option
on a server socket, always return "auto". Return the empty
string enclosed in quotes for the -eofchar option on
a server socket. Fixup -eofchar usage message so that
it matches the implementation.
* tests/io.test: Add -eofchar tests and -translation tests
to ensure options are read only on server sockets.
* tests/socket.test: Update tests to account for -eofchar
and -translation option changes.
|
|
|
|
| |
and generic/tclNamesp.c according to the guidelines of TIP 27.
|
|
|
|
|
|
|
| |
* [Patch 506818] Updated interfaces of generic/tclHash.c (TIP 27).
* [Patch 506807] Updated interfaces of generic/tclObj.c (TIP 27).
* [Patch 507304] Updated interfaces of win/tclWin32.c (TIP 27).
* Update all callers.
|
|
|
|
|
|
|
|
|
|
|
| |
generic/tclIOUtil.c, generic/tclPipe.c, generic/tclResult.c,
generic/tclUtil.c, generic/tclVar.c and mac/tclMacResource.c according
to TIP 27. Tcl_TranslateFileName rewritten as wrapper around
VFS-aware version. Updated callers.
***POTENTIAL INCOMPATIBILITY***
Includes source incompatibilities: argv arguments of Tcl_Concat,
Tcl_JoinPath, Tcl_OpenCommandChannel, Tcl_Merge; argvPtr arguments of
Tcl_SplitList and Tcl_SplitPath.
|