summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
...
* fixed bug that cause bad memory read on Windowshershey1999-06-161-5/+5
|
* fixed bugs that kept windows from compiling.hershey1999-06-161-6/+6
|
* beefed up the string object testshershey1999-06-152-69/+88
|
* Improved the appendObj functions (uncomented the optimized code that washershey1999-06-152-34/+25
| | | | | | | | | present in the Unicode obj). Updated the teststringobj command to look in the correct location for the amount of space allocated for the UTF string rep. Note: one stringObj test is still failing; it reflects a change in that may not be undesirable...
* Merged String and Unicode object types. Added new functions tohershey1999-06-159-997/+1113
| | | | | | | | | the puplic API: Tcl_NewUnicodeObj, Tcl_SetUnicodeObj, Tcl_GetUnicode, Tcl_GetUniChar, Tcl_GetCharLength, Tcl_GetRange, Tcl_AppendUnicodeToObj. Note: some stringObj tests are still failing--the teststringobj command still needs to be updated.
* fied a memory leak. purify nolonger complains.hershey1999-06-101-3/+4
|
* * generic/tclUnicodeObj.c: Lots of cleanup and simplification.stanton1999-06-109-193/+435
| | | | | | | | | | | | | | | | | | | | | | | Fixed several memory bugs. Added TclAppendUnicodeToObj. * generic/tclInt.h: Added declarations for various Unicode string functions. * generic/tclRegexp.c: * generic/tclCmdMZ.c: Changed to use new Unicode string interfaces for better performance. * generic/tclRegexp.h: * generic/tclRegexp.c: * generic/tcl.h: * generic/tcl.decls: Added Tcl_RegExpMatchObj and Tcl_RegExpGetInfo calls to access lower level regexp API. These features are needed by Expect. This is a preliminary implementation pending final review and cleanup. * generic/tclCmdMZ.c: * tests/string.test: Fixed bug where string map failed on null strings.
* * generic/regexec.c:stanton1999-06-101-1/+1
| | | | * unix/tclUnixNotfy.c: lint
* performance improvement for TclGetUnicodeFromObj function and the Unicodehershey1999-06-091-78/+26
| | | | object type.
* added TclGetUnicodeFromObj function for use with regexphershey1999-06-082-30/+115
|
* * tests/string.test:hershey1999-06-087-57/+907
| | | | | | | | | | | | | | | | | | | | | | | * generic/tclVar.c (Tcl_SetVar2Ex): * generic/tclStringObj.c (Tcl_AppendObjToObj): * generic/tclCmdMZ.c (Tcl_StringObjCmd): optimized the string index, string length, string range, and append command in cases where the object's internal rep is a bytearray. Objects with other internal reps are converted to have the new unicode internal rep. * unix/Makefile.in: * win/Makefile.in: * win/Makefile.vc: * tests/unicode.test: * generic/tclInt.h: * generic/tclObj.c: * generic/tclUnicodeObj.c: added a new object type to store the unicode representation of a string. * generic/tclTestObj.c: added the objtype option to the testobj command. This option returns the name of the type of internal rep an object has.
* * generic/tclCmdMZ.c (Tcl_StringObjCmd):stanton1999-06-031-1/+12
| | | | | * tests/string.test: Fixed bug where string equal/compare -nocase reported wrong result on null strings. [Bug: 2138]
* * generic/tclUtf.c (Tcl_UtfNcasecmp): Fixed incorrect computationstanton1999-06-021-4/+7
| | | | of relative ordering. [Bug: 2135]
* * tests/reg.test:stanton1999-06-0219-206/+666
| | | | | | | | | | | | | | | | | | | | | | | | * generic/regc_color.c: * generic/regc_cvec.c: * generic/regc_lex.c: * generic/regc_locale.c: * generic/regc_nfa.c: * generic/regcomp.c: * generic/regcustom.h: * generic/rege_dfa.c: * generic/regerror.c: * generic/regerrs.h: * generic/regex.h: * generic/regexec.c: * generic/regfree.c: * generic/regfronts.c: * generic/regguts.h: * generic/tclCmdMZ.c: * generic/tclRegexp.c: * generic/tclRegexp.h: * generic/tclTest.c: Applied Henry Spencer's latest regexp patches that fix an infinite loop bug and add support for testing whether a string could match with additional input. [Bug: 2117]
* * generic/tclObj.c: Changed to eliminate use of isupper/tolower instanton1999-05-281-3/+3
| | | | favor of the Unicode versions.
* generic/tclThreadTest.c: Fix race condition in testthread code.redman1999-05-261-3/+2
| | | | | | win/tclWinSock.c: Fixed hang in WinNT socket driver, now wakes up the socket thread to check for events that didn't trigger the WSAEvent.
* * generic/tcl.decls:stanton1999-05-258-19/+273
| | | | | | | | | | | * generic/tclCmdMZ.c: * generic/tclDecls.h: * generic/tclInt.decls: * generic/tclIntDecls.h: * generic/tclPort.h: * generic/tclStubInit.c: * generic/tclStubLib.c: Various header file related changes and other lint to try to get the Mac builds working.
* Added stub entry for the TclGetAuxDataType routine so tbcload can use stubssurles1999-05-234-5/+15
|
* Merged changes from scriptics-tclpro-1-3-b2 branchstanton1999-05-229-58/+520
|
* lint in commentshershey1999-05-201-4/+3
|
* added -encoding to the list of legal options used in the error message whenhershey1999-05-181-2/+2
| | | | | a bad option is used. Because the fconfigure command is configurable (so more option can be added), the error string is hardcoded.
* added intospection variable to determine if the interp was compiled with ↵surles1999-05-141-1/+14
| | | | threads enabled
* merged 1-3-b2 changes into mainlinestanton1999-05-141-3/+5
|
* increased per-thread regexp cache to 30stanton1999-05-141-3/+3
|
* fixed typostanton1999-05-141-2/+2
|
* * tests/regexp.test:stanton1999-05-134-120/+212
| | | | | | | | | | | | * generic/tclInt.h: * generic/tclBasic.c: * generic/tclRegexp.h: * generic/tclRegexp.c: Replaced the per-interpreter regexp cache with a per-thread cache. Changed the Regexp object to take advantage of this extra cache. Added a reference count to the TclRegexp type so regexps can be shared by multiple objects. Removed the per-interp regexp cache from the interpreter. Now regexps can be used with no need for an interpreter. [Bug: 1063]
* * generic/tcl.decls: Replaced const with CONST.stanton1999-05-072-6/+6
|
* * generic/tclLoadNone.c: Updated to use current interfaces, addedstanton1999-05-071-3/+33
| | | | TclpUnloadFile. [Bug: 2003]
* * generic/tclResult.c (Tcl_AppendResultVA):stanton1999-05-072-5/+6
| | | | | | * generic/tclStringObj.c (Tcl_AppendStringsToObjVA): Fixed to copy arglist using memcpy instead of assignment so it works properly on OS/390. [Bug: 1997]
* * tests/string.test:stanton1999-05-061-3/+3
| | | | | | * generic/tclCmdMZ.c: * doc/string.n: Fixed bug in string equal/compare code when using -length option. Cleaned up docs a bit more.
* lintstanton1999-05-062-10/+10
|
* * doc/string.n:stanton1999-05-062-109/+386
| | | | | | | | | | | | | | | | | | | | * tests/cmdIL.test: * tests/cmdMZ.test: * tests/error.test: * tests/ioCmd.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/string.test: * tests/cmdIL.test: * generic/tclUtil.c: * generic/tclCmdMZ.c: Replaced "string icompare/iequal" with -nocase and -length switches to "string compare/equal". Added a -nocase option to "string map". Changed index syntax to allow integer or end?-integer? instead of a full expression. This is much simpler with safeTcl scripts since it avoids double substitution issues.
* * doc/Utf.3:stanton1999-05-064-4/+115
| | | | | | | * generic/tclStubInit.c: * generic/tclDecls.h: * generic/tclUtf.c: * generic/tcl.decls: Added Tcl_UtfNcmp and Tcl_UtfNcasecmp.
* ran dos2unix on this file--Irix couldn't build Tcl because it detected strangehershey1999-05-061-1062/+1062
| | | | chars at the end of each line.
* lint and better documentation of the character vs. byte oriented commandsstanton1999-05-051-2/+2
|
* fixed memory leaksurles1999-05-051-1048/+1062
|
* * doc/string.n:stanton1999-05-041-7/+20
| | | | | | | * tests/cmdMZ.test: * tests/string.test: * generic/tclCmdMZ.c (Tcl_StringObjCmd): Changed "string length" to avoid regenerating the string rep of a ByteArray object.
* * tests/cmdIL.test:stanton1999-05-042-71/+331
| | | | | | | | | | | | | * tests/cmdMZ.test: * tests/error.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/string.test: * generic/tclCmdMZ.c (Tcl_StringObjCmd): * generic/tclUtil.c (TclGetIntForIndex): Applied Jeff Hobbs's string patch which includes the following changes [Bug: 1845]:
* * generic/tclParse.c (Tcl_ParseCommand): Changed to avoidstanton1999-05-041-4/+10
| | | | | modifying eval'ed strings that are already null terminated. [Bug: 1793]
* * tests/binary.test:stanton1999-05-031-1/+3
| | | | | * generic/tclBinary.c (DupByteArrayInternalRep): Fixed bug where type was not being set in duplicated object.
* * Changed version to 8.1.1.stanton1999-04-301-3/+3
|
* * Merged changes from 8.1.0 branchstanton1999-04-305-23/+40
|
* Tcl_UtfToUpper and Tcl_UtfToTitle now works on badly formed Utf strings.hershey1999-04-301-6/+23
|
* fixed part of bug 1791: Tcl_UtfToUpper and Tcl_UtfToLower now work onhershey1999-04-291-8/+88
| | | | badly formed Utf strings.
* * mac/tclMacResource.c:stanton1999-04-283-14/+14
| | | | | | | | | * generic/tclListObj.c: * generic/tclObj.c: * generic/tclStringObj.c: Changed to avoid freeing the string representation before freeing the internal rep. This helps with debugging since the string rep will still be valid when the free proc is invoked.
* * generic/tclLiteral.c (TclHideLiteral): Fixed so hidden literalsstanton1999-04-281-6/+10
| | | | | get duplicated to avoid accidental sharing in the global object table.
* merged 8.1.0 changes into mainlinestanton1999-04-241-251/+248
|
* * generic/tclPort.h: Added include of tcl.h since it definesstanton1999-04-231-1/+3
| | | | | various Windows macros that are needed before deciding which platform porting file to use.
* * generic/tclEvent.c: lintstanton1999-04-231-2/+2
|
* * generic/tclInt.h:stanton1999-04-226-56/+269
| | | | | | | | | | | * generic/tclInt.decls: * generic/tclCompile.c: Added TclSetByteCodeFromAny that takes a hook procedure to invoke after compilation but before the byte codes are emitted. This makes it possible to do postprocessing on the compiled byte codes before the ByteCode is generated. * generic/tclLiteral.c: Added TclHideLiteral and TclAddLiteralObj to make it possible to create local unshared literal objects.