summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Applied patch from Peter Hardie (with modifications) to fixredman1999-06-281-1/+10
| | | | | Tcl_GetIndexFromObj when the key is "". Added test cases and doc note.
* Documented 2 more files that need to be updated when the Tcl versionwart1999-06-281-1/+3
| | | | number changes.
* Export functions for TclHandleredman1999-06-261-5/+5
|
* Changed so unix always maps ckalloc to Tcl_Alloc or Tcl_DbCkAlloc to avoidredman1999-06-261-15/+8
| | | | problems with mixed TCL_MEM_DEBUG modes.
* Added note about win/configure.in needing a version changewelch1999-06-251-1/+2
|
* Changed to Tcl 8.2b1welch1999-06-251-4/+4
|
* * tests/reg.test:stanton1999-06-251-27/+52
| | | | * generic/regexec.c: Fixed bugs in non-greedy quantifiers.
* * unix/Makefile.in: Changed install-doc to install-man.stanton1999-06-243-691/+809
| | | | | | | | | | | | | * tools/uniParse.tcl: * tools/uniClass.tcl: * tools/README: * tests/string.test: * generic/regc_locale.c: * generic/tclUniData.c: * generic/tclUtf.c: * doc/string.n: Updated Unicode character tables to reflect latest Unicode 2.1 data. Also rationalized "regexp" and "string is" definitions of character classes.
* * generic/tclTest.c:stanton1999-06-177-128/+188
| | | | | | | | | | | | * generic/tclRegexp.h: * generic/tclRegexp.c: * generic/tcl.h: * generic/tcl.decls: Renamed Tcl_RegExpMatchObj to Tcl_RegExpExecObj and added a new Tcl_RegExpMatchObj that is equivalent to Tcl_RegExpMatch. Added public macros for the regexp compile/execute flags. Changed to store either an object pointer or a string pointer in the TclRegexp structure. Changed to avoid adding a reference to the object or copying the string.
* * tests/regexp.test:stanton1999-06-172-22/+44
| | | | | | * generic/tclCmdMZ.c: * generic/tclCmdIL.c: Changed to use new regexp interfaces. Added -expanded, -line, -linestop, and -lineanchor switches to regsub.
* * generic/regcomp.c: lintstanton1999-06-173-1/+8
| | | | | | | | * tests/reg.test: * generic/regex.h: * generic/regc_lex.c: Added REG_BOSONLY flag to allow Expect to iterate through a string an only find matches that start at the current position within the string.
* * generic/tclVar.c (Tcl_VariableObjCmd): fixed premature incrementhershey1999-06-171-3/+3
| | | | in loop that was causing out-of-bounds reads on array "varName".
* * tests/execute.test:stanton1999-06-161-4/+4
| | | | | | * generic/tclExecute.c (TclExecuteByteCode): Fixed crash caused by a bug in INST_LOAD_SCALAR1 where the scalar index was read as a signed 1 byte value instead of unsigned. [Bug: 2243]
* 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.