summaryrefslogtreecommitdiffstats
path: root/generic/tclIndexObj.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | * generic/tclCmdAH.c: Fix minor compiler warnings when compilingnijtmans2008-10-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdMZ.c: with -Wwrite-strings * generic/tclIndexObj.c: * generic/tclProc.c: * generic/tclStubLib.c: * generic/tclUtil.c: FossilOrigin-Name: 675e88f6494cc9ecd7a2b3c7560a836f3c38dc5b
* | | fix warningdas2008-10-101-2/+2
| | | | | | | | | FossilOrigin-Name: 9c2baab05601b328894c76d379df68a3ad84f9fa
* | | Fix [Bug 2144595]dkf2008-10-051-5/+9
| | | | | | | | | FossilOrigin-Name: a484fe5df582171c066a646cdbf27ad39d8e9518
* | | * doc/GetIndex.3: CONSTified the tablePtr argumentnijtmans2008-10-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.decls: of Tcl_GetIndexFromObj. * generic/tclIndexObj.c * ChangeLog * generic/tclDecls.h: regenerated This change complies with TIP #27. FossilOrigin-Name: 4d465df046adaf0e332707c5d24be53f07c51398
* | | Tidying up formattingdkf2008-10-031-73/+73
| | | | | | | | | FossilOrigin-Name: 754b252ed32f89a5e46e0523a0c7a61b3f534b9b
* | | typofixdkf2008-10-031-4/+4
| | | | | | | | | FossilOrigin-Name: 098e39bd8b25ea383341215cb83a921efdf0f13f
* | | Implemented TIP#195 - tcl::prefix command. [Patch 1040206]dkf2008-10-031-9/+406
| | | | | | | | | FossilOrigin-Name: b99e7f3d7afd8b3691d541885adc6a6c40e2365b
* | | Implement TIP #265. [FRQ 1446696]dkf2008-10-021-2/+380
|/ / | | | | FossilOrigin-Name: 020acd659d37270854b515d6f176b25ea57292c6
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* | Reduce cast count.dkf2007-11-191-19/+20
| | | | | | FossilOrigin-Name: a350e972df8217ab33dc859e857a33e38bc6a3bc
* | [Patch 1830038]: Increased usage of macros to detect and take advantage of ↵msofer2007-11-111-3/+3
| | | | | | | | | | objTypes. FossilOrigin-Name: 11e8f3151249a669790af1ab8897b1451aa5b47b
* | * generic/tclInt.decls: Revised the interfaces of the routinesdgp2007-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: TclStackAlloc and TclStackFree to make them easier for callers to use (or more precisely, harder to misuse). TclStackFree now takes a (void *) argument which is the pointer intended to be freed. TclStackFree will panic if that's not actually the memory the call will free. TSA/TSF also now tolerate receiving (interp == NULL), in which case they simply fall back to be calls to Tcl_Alloc/Tcl_Free. * generic/tclIntDecls.h: make genstubs * generic/tclBasic.c: Updated callers * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclFCmd.c: * generic/tclFileName.c: * generic/tclIOCmd.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclProc.c: * generic/tclTrace.c: * unix/tclUnixPipe.c: FossilOrigin-Name: 4ea644b0decea73815d69d6a1d3767ed27191491
* | Silence a 'const'ness warning.dkf2007-06-121-2/+2
| | | | | | FossilOrigin-Name: a5edb8803febc503f435dd1dfcf19cd8b6258c5e
* | Improve the argument substitution behaviour of Tcl_WrongNumArgs when faced withdkf2007-06-121-5/+24
| | | | | | | | | | | | ensemble and interp-alias rewrites. FossilOrigin-Name: 5acd0e47b4a741393e833e1ed4d1a54661e1dfc2
* | * generic/tclBasic.c: Replace arrays on the C stack and ckallocdgp2007-04-021-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: calls with TclStackAlloc calls to use memory * generic/tclFCmd.c: on Tcl's evaluation stack. * generic/tclFileName.c: * generic/tclIOCmd.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclTrace.c: * unix/tclUnixPipe.c: FossilOrigin-Name: fbe8c8af9f9e911a208ffc73968ed27691b54367
* | * 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: 0652206ff0a0d41de8ff5d68ef6917c6ab05e42e
* | * 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: d86bf5b78aa65c9872581801e88e38a284b56cc6
* | Nail [Bug 1464039] by allowing the empty string to be exactly matched bydkf2006-04-051-19/+15
| | | | | | | | | | | | Tcl_GetIndexFromObj. Also added tests. FossilOrigin-Name: 2ec45a041bc48f5d03b9fdb9960de7fd8d36d290
* | * generic/tclIndexObj.c: Disallow the "ambiguous" error messagedgp2006-02-161-3/+3
| | | | | | | | | | | | | | * tests/indexObj.test: when TCL_EXACT matching is requested. * tests/ioCmd.test: FossilOrigin-Name: 9d1bf7f856fa96e8dba44ff457f92883691f5faa
* | ANSIfy. Also converted some deeply nested code to a less nested form for ↵dkf2005-11-011-54/+51
| | | | | | | | | | easier reading. FossilOrigin-Name: a3b0b6f1d981da1fe106445a90860a30e0c63d29
* | fix compile errordgp2005-07-211-2/+2
| | | | | | FossilOrigin-Name: dbbcf9b7f65fede6fac3a78be73729921cb4e913
* | Systematizing the formattingdkf2005-07-211-161/+210
| | | | | | FossilOrigin-Name: ac613e6b948e9387516ecc1f16a35824c93ab347
* | * generic/tclInt.h: Reduced the Tcl_ObjTypes "index",dgp2005-06-071-8/+8
| | | | | | | | | | | | | | | | | | * generic/tclIndexObj.c: "enembleCmd", "localVarName", and * generic/tclNamesp.c: "levelReference" to file static scope. * generic/tclProc.c: * generic/tclVar.c: FossilOrigin-Name: 9c1c8c316670f1e278bfb74c180b063246f8f2cb
* | Clean up tests in chan.test and add mechanism for chaining Tcl_WrongNumArgsdkf2005-06-071-2/+7
| | | | | | | | | | | | messages (used in [read] implementation) FossilOrigin-Name: b3487bb8b81d80e8d373e29358e8173c871162bd
* | Fix [Bug 1066837] without reopening other bugs... What a horrid hack! :^/dkf2004-11-251-3/+21
| | | | | | FossilOrigin-Name: 457eb30a98b4a6771b61e22b660af4cca7286d38
* | Allow ensembles to rewrite their subcommands' error messages to be moredkf2004-10-291-5/+82
| | | | | | | | | | | | | | | | relevant to users. [Patch 1056864] Also patches to core to take advantage of this Also other general cleaning up of Tcl_WrongNumArgs usage FossilOrigin-Name: 7162a54053e53f6f469b5d978fca906c9880d363
* | * generic/tclBasic.c:dgp2004-10-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompExpr.c: * generic/tclDictObj.c: * generic/tclEncoding.c: * generic/tclExecute.c: * generic/tclFCmd.c: * generic/tclHistory.c: * generic/tclIndexObj.c: * generic/tclInterp.c: It is a poor practice to directly set or append to the value of the objResult of an interp, because that value might be shared, and in that circumstance a Tcl_Panic() will be the result. Searched for example of this practice and replaced with safer alternatives, often using the Tcl_AppendResult() routine that dkf just rehabilitated. FossilOrigin-Name: ee7c709e65fd0e2df636a6d1467bc907a2104da0