summaryrefslogtreecommitdiffstats
path: root/generic/tclIndexObj.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow Tcl to be compiled even if Tcl_Eval, Tcl_GetVar, ... are macros.jan.nijtmans2013-02-281-0/+1
| | | FossilOrigin-Name: 03b46ac836729ae7fa1112d6f609d6b803095d59
* merge core-8-5-branchjan.nijtmans2013-01-311-13/+13
|\ | | | | FossilOrigin-Name: f9be79d94176fa1ebafa4f4e2fbce631e274882c
| * Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-13/+13
| | | | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes. FossilOrigin-Name: 17354de1e8bc0e45bed1021af07fb27ca6325337
* | Simplify STRING_AT macro.jan.nijtmans2013-01-241-5/+9
|\ \ | |/ | | | | | | Protect Tcl_GetIndexFromObjStruct from invalid "offset" values, like 0 or -1. Undocumented, because I don't want to promote people start using that. FossilOrigin-Name: 4d66f17ddbd1697c40dec36a20a9b4554aa9825e
| * Simplify STRING_AT macro.jan.nijtmans2013-01-241-5/+9
| |\ | | | | | | | | | | | | Protect Tcl_GetIndexFromObjStruct from invalid "offset" values, like 0 or -1. Undocumented, because I don't want to promote people start using that. FossilOrigin-Name: 8d90ad34d174691263098bd82e0879e39714a0b6
| | * Protect Tcl_GetIndexFromObjStruct from invalid "offset" values, like 0 or ↵jan.nijtmans2013-01-231-1/+5
| | | | | | | | | | | | | | | -1. Undocumented, because I don't want to promote people start using that. FossilOrigin-Name: d72e9c88d9532101c357302ed9a8ae5f31c22a23
* | | Add super-simple compiler to many ensemble subcommands to allow better codedkf2013-01-041-3/+3
| | | | | | | | | | | | | | | | | | | | | generation where we can detect that we're not in the WrongNumArgs case. The compiler just checks that the argument count is in the right range and issues a standard dispatch; that's enough to do an efficient job. FossilOrigin-Name: 40fef44a65f29ea07c5a90dc7bcff92820efb46a
* | | Fix bug reported by Brian Griffin:jan.nijtmans2012-11-221-4/+0
|\ \ \ | |/ / | | | | | | | | | <p>[http://code.activestate.com/lists/tcl-core/12524/] FossilOrigin-Name: 181caa1a57922cbed7abe49f1f4fa3ac781cc1d6
| * | Fix bug reported by Brian Griffin:jan.nijtmans2012-11-221-4/+0
| |\ \ | | |/ | | | | | | | | | <p>[http://code.activestate.com/lists/tcl-core/12524/] FossilOrigin-Name: 6509c9b57114f9d87d5bca569b5c96b885f9d8b0
| | * Fix bug reported by Brian Griffin:jan.nijtmans2012-11-221-4/+0
| | | | | | | | | | | | | | | <p>[http://code.activestate.com/lists/tcl-core/12524/] FossilOrigin-Name: b8a089f6e458605f83e7eb1cfc5c82b5ce75337b
* | | more result generation conversiondkf2012-08-031-41/+46
| | | | | | | | | FossilOrigin-Name: b3ccaec093ccefb47e906f080f96fad036eaf9fc
* | | protect Tcl_GetIndexFromObjStruct from empty strings in tablejan.nijtmans2012-07-051-7/+16
|\ \ \ | |/ / | | | FossilOrigin-Name: 9d3c7c6bdb9b75db244690e6495fb6f222f84538
| * | protect Tcl_GetIndexFromObjStruct from empty strings in tablejan.nijtmans2012-07-051-6/+15
| |\ \ | | |/ | | | FossilOrigin-Name: 002d03ef881e9259e10dc3a1b93f8f500bbbd77e
| | * protect Tcl_GetIndexFromObjStruct from empty strings in tablejan.nijtmans2012-07-051-6/+15
| | | | | | | | | FossilOrigin-Name: f645ace4cccb006686a1bfe468ed6a3be847998a
* | | make some more internal tables constjan.nijtmans2012-04-231-1/+1
|\ \ \ | |/ / | | | FossilOrigin-Name: 8f88d1071639b6ee81eafd84cf5d8131bce73a8a
* | | Unbreak TCL_ARGV_AUTO_REST macro, found during testing.dkf2011-09-271-1/+8
| | | | | | | | | FossilOrigin-Name: e670fd9be2e81bf89947f6d840be871a4087c102
* | | Proposed patch to fix [Bug 3413857]...dkf2011-09-261-24/+14
| | | | | | | | | FossilOrigin-Name: 8edb5ef770d0de1f32ba001970f32a71554f1197
* | | Small changes to quell gcc warnings and make message generation less ugly.dkf2011-08-161-23/+21
| | | | | | | | | FossilOrigin-Name: df6fb9a914fd80a4202414f387d789f9e2c5ace8
* | | 3366265 Allocate proper size buffer for TclConvertElement() to write to.dgp2011-07-141-2/+4
|\ \ \ | |/ / | | | FossilOrigin-Name: 828fc551b105c4bba980eafa978b3a57702118a2
| * | 3366265 Allocate proper size buffer for TclConvertElement() to write to.dgp2011-07-141-2/+4
| | | | | | | | | FossilOrigin-Name: edfd80bc20b9eddc9d117c7c81aceda7cc5ea01a
* | | New internal routines TclScanElement() and TclConvertElement().dgp2011-05-101-4/+6
|\ \ \ | |/ / | | | | | | | | | Rewritten guts of machinery to produce string rep of lists. [Bug 3173086] FossilOrigin-Name: 7720fbb825ec366737ab7e8c577ea25315c0a00e
| * | Completed patch with mucho comments. Merge 8.5.dgp2011-05-101-0/+3
| | | | | | | | | FossilOrigin-Name: 8de9137c517f4e52139263ea5addf53d2b10e2c6
| * | Significant rewrite of the Tcl*(Scan|Convert)*Element() system, and revisionsdgp2011-03-031-4/+6
| | | | | | | | | | | | | | | | | | to the callers. Needs more work on comments, and testing to check for any performance impact in either direction. Fixes reported bug. FossilOrigin-Name: a142b240b3d0fb1e0757f103fd6129e80d93f0b4
* | | TclFreeIntRep() cleanup.dgp2011-04-271-1/+0
| | | | | | | | | FossilOrigin-Name: 53b79ea68a8a27842e45d4b2badedb5cb20edeeb
* | | Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+2
|\ \ \ | | | | | | | | FossilOrigin-Name: 36b0307ba2ada5375598e444799d6f9fd0edb46b
| * \ \ Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+2
| |\ \ \ | | |/ / | |/| / | | |/ FossilOrigin-Name: 0da07d5b1e2189ddb3e03e53da787dc681cb46bc
| | * Make sure SetFooFromAny routines react reasonably when passed a NULL interp.dgp2011-04-211-0/+2
| | | | | | | | | FossilOrigin-Name: 2adc132d5223ca31015c197873552d9d7fd254ab
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-14/+12
| | | | | | | | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | | | | | | | cause more harm than good. Purged them (except in zlib files). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ \ | | |/ | | | | | | | | | more harm than good. Purged them. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | | | | | | | more harm than good. Purged them. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| | * * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): It seemsdgp2006-04-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/indexObj.test: there are extensions that rely on the prior * doc/GetIndex.3: behavior that the empty string cannot succeed as a unique prefix matcher, so I'm restoring Donal Fellow's solution. Added mention of this detail to the documentation. [Bug 1464039] FossilOrigin-Name: aac13e1a469e70a6d61c82fc810918c31c129d9d
| | * * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Allow emptydgp2006-04-051-7/+3
| | | | | | | | | | | | | | | | | | | | | strings to be matched by the Tcl_GetIndexFromObj machinery, in the same manner as any other key. [Bug 1464039] FossilOrigin-Name: 50a49e4b26f2195f5f11e6e255bc63295b79aab6
| | * Fix [Bug 1646039]dkf2006-04-051-13/+9
| | | | | | | | | FossilOrigin-Name: 352ca7cab352f1e6695c8a0f1f4f925b62fcb39b
| | * * generic/tclIndexObj.c: Disallow the "ambiguous" error messagedgp2006-02-161-3/+3
| | | | | | | | | | | | | | | | | | * generic/indexObj.test: when TCL_EXACT matching is requested. FossilOrigin-Name: 2a70498b7fc652f40a00726779ace576796e3608
| | * Fix shared object panics. [Bug 875395]dkf2004-01-131-3/+6
| | | | | | | | | FossilOrigin-Name: ce19ff118e32151ba644bcaaa7aee64c6a20a4eb
* | | Fix gcc -Wextra warning: missing initializernijtmans2010-12-101-5/+5
| | | | | | | | | FossilOrigin-Name: 38357311b7cdfca8de48d7e05269e3851746b31b
* | | [FRQ 2974744]: share exception codes (ObjType?):nijtmans2010-03-301-1/+52
| | | | | | | | | | | | | | | | | | further optimization, making use of indexType. FossilOrigin-Name: 416a8249cd027578bb7ec52fbf1639e8a22d333d
* | | Code Audit results:dkf2010-03-051-41/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations FossilOrigin-Name: 4d8a4f639d28df5b5dfabd407be8efbb44454601
* | | Improve error message for corner case in ::prefixferrieux2010-03-011-2/+2
| | | | | | | | | FossilOrigin-Name: 7f54d07f0ac029b0e77b739d665115cc875abe6c
* | | fix [AT 86258]: special-casing of empty tables when generating error ↵ferrieux2010-03-011-11/+15
| | | | | | | | | | | | | | | messages for [::tcl::prefix match]. FossilOrigin-Name: 6f9f9e629d0652c2ed0196b0680786d38d6cc1be
* | | Pure whitespace changes, changing to follow Engineering Manual style.dkf2010-02-241-9/+9
| | | | | | | | | FossilOrigin-Name: c81eddebbb969209a42ab4c210dd62f3080909d4
* | | - genStubs.tcl: No longer generate a space after "*" andnijtmans2010-01-291-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | immediately after a function name, so the format of function definitions in tcl*Decls.h matches all other tcl*.h header files. - Change Tcl_ArgvFuncProc, Tcl_ArgvGenFuncProc and GetFrameInfoValueProc to be function definitions, not pointers, for consistency with all other Tcl function definitions. FossilOrigin-Name: 92924901357b4846fa668b6f5122abf37979693a
* | | Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-181-5/+5
| | | | | | | | | FossilOrigin-Name: 8780faf488c79569934af0cd318800d73489137d
* | | * generic/tclDictObj.c: Updated freeIntRepProc routines sodgp2009-09-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: that they set the typePtr field to * generic/tclIO.c: NULL so that the Tcl_Obj is not left * generic/tclIndexObj.c: in an inconsistent state. * generic/tclInt.h: [Bug 2857044] * generic/tclListObj.c: * generic/tclNamesp.c: * generic/tclOOCall.c: * generic/tclObj.c: * generic/tclPathObj.c: * generic/tclProc.c: * generic/tclRegexp.c: * generic/tclStringObj.c: FossilOrigin-Name: c712d7d7bb31719fdaa59e4625f78e004c15dd4e
* | | Reset internal INTERP_ALTERNATE_WRONG_ARGSnijtmans2009-04-271-1/+2
| | | | | | | | | | | | | | | | | | | | | flag inside the Tcl_WrongNumArgs function, so the caller no longer has to do the reset. FossilOrigin-Name: e1dc3287730505e30fe86e18a24d47767c6674ee
* | | - eliminate some unnessary type castsnijtmans2009-02-101-7/+7
| | | | | | | | | | | | | | | | | | | | | - some internal const decorations - spacing FossilOrigin-Name: 160bcb11525977fb1ee14ae1e09ba9cb60b29920
* | | Generate errorcodes for more cases.dkf2009-01-081-1/+2
| | | | | | | | | FossilOrigin-Name: a12728cbb91807a88ca7e1a6e8d4678ca5eee07b
* | | fix 'make checkstubs' failure: make TclGetIndexFromObjList staticdas2008-12-151-4/+7
| | | | | | | | | FossilOrigin-Name: d173571652f8f7fc2aaa464c86321db37c6f923d
* | | Eliminate 3 calls to Tcl_SetResult, asnijtmans2008-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | examples how it should have been done. purpose: contribute in the TIP #340 discussion. FossilOrigin-Name: 8956424338db83843798b810325dcbd246489b5e