summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdAH.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate all usage of WIN32 and __WIN32__ macros: Some compilers (e.g. ↵jan.nijtmans2014-02-101-1/+1
| | | | | | | Clang/LLVM) don't define it, and _WIN32 is much more portable anyway. See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW] FossilOrigin-Name: 80cf092cc7b1b5761346f83ceb291580270caebe
* Use more portable TclIsSpaceProc() in stead of isspace().jan.nijtmans2013-06-171-4/+3
|\ | | | | FossilOrigin-Name: 4bfe3111b15faf3aef860431fd88ab5ab58df398
| * Use more portable TclIsSpaceProc() in stead of isspace(). jan.nijtmans2013-06-171-4/+3
| | | | | | | | | | Make sure that "string is space \u180e" continues to return 1 for whatever unicode version. FossilOrigin-Name: 571205495811b7c072968bd0605370dbe55603db
* | Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>jan.nijtmans2013-02-101-1/+0
|\ \ | |/ | | FossilOrigin-Name: 4ef9e636564510c7d3930a697c92346e741365f2
| * Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>.jan.nijtmans2013-02-101-1/+0
| | | | | | FossilOrigin-Name: 7725ffcfef05b6b690fe6864436b01970086fb76
* | revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-0/+1
|\ \ | |/ | | | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h FossilOrigin-Name: a1d2456c70788945263e4a3c0d7c5307298c07a1
| * revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-0/+1
| | | | | | | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h FossilOrigin-Name: 38228c756972ed2bc9299e0e4b0183bbaf24bb4e
| * 3595576 Tests/fix for mem corruption: [catch] fails to store options in a var.dgp2012-12-131-1/+0
| | | | | | FossilOrigin-Name: 747bcd52c10d3c1071db5f05d86bff11896ed078
* | Add super-simple compiler to many ensemble subcommands to allow better codedkf2013-01-041-34/+34
| | | | | | | | | | | | | | 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 for [Bug 3595576], found by andrewshmig2012-12-131-1/+2
| | | | | | FossilOrigin-Name: 5e873e324a9382a3c03fe4253feaaa4f6b4c924c
* | compilation code adjusteddkf2012-10-051-28/+45
| | | | | | FossilOrigin-Name: 726ad3d7767c52f0440242553c422c96d55f9e2d
* | merge trunkdkf2012-09-041-19/+25
|\ \ | | | | | | FossilOrigin-Name: b38773da767f406adf8eb0e760791316d2cd8ef9
| * | more result generation conversiondkf2012-08-031-17/+22
| | | | | | | | | FossilOrigin-Name: b3ccaec093ccefb47e906f080f96fad036eaf9fc
| * | converting to using Tcl_Obj API for error message generation; part donedkf2012-08-031-2/+3
| | | | | | | | | FossilOrigin-Name: 7fb86a29c9bfa1140ea3a8af6f65221ce4474e45
* | | Rename 'mapeach' to 'lmap' per preferred alternative in TIP #405.twylite2012-08-081-3/+3
| | | | | | | | | FossilOrigin-Name: 3bbaa5984ae742d8e73f5f6485cae731b6c741ee
* | | Back-out 'foreacha' implementation but leave code cleanup of 'mapeach' and ↵twylite2012-08-081-47/+11
| | | | | | | | | | | | | | | 'dict map'. FossilOrigin-Name: ef480167173bde8c65368890050ac841d0b819e7
* | | [Patch-3163961] Implementation of TIP #405 merged from private branch. ↵twylite2012-08-031-14/+96
|/ / | | | | | | | | Includes 'mapeach', 'dict map' and 'foreacha' commands, test suite (partial for 'foreacha') and man pages (except for 'foreacha'). FossilOrigin-Name: 252caf426a0086fa6e304eeb3c59ed9afc69bdc9
* | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-2/+2
| | | | | | FossilOrigin-Name: 4dd736c95fc5e333c574e4d23aeccb7e0bdd41ae
* | [Bug 3537605]: Make [encoding dirs ? ?] report the right error message.dkf2012-06-251-7/+9
|\ \ | |/ | | FossilOrigin-Name: 0d03fa5c04529c0ae61cb79cdcadb38c26b1a234
| * [Bug 3537605]: Make [encoding dirs ? ?] report the right error message.dkf2012-06-251-7/+11
| | | | | | FossilOrigin-Name: 59d8363bd7baa8a5193d2b0db9382b6058adb24f
| * make some more internal tables constjan.nijtmans2012-04-181-23/+23
| |\ | | | | | | | | | | | | a few CONST -> const changes FossilOrigin-Name: 24c0f42d9a4e469b1a9090fe0b035dc264c9da6d
* | | [Bug 3445787]: Improve the compatibility of safe interpreters' version ofdkf2012-05-161-2/+40
| | | | | | | | | | | | | | | 'file' with that of unsafe interpreters. FossilOrigin-Name: 35240baf0f4a245213ba4bf22e7310df06c6673d
* | | * generic/tclUtil.c (TclDStringToObj): Added internal function to makedkf2012-04-251-9/+3
| | | | | | | | | | | | | | | | | | the fairly-common operation of converting a DString into an Obj a more efficient one. FossilOrigin-Name: 2e12143e3906901f7fe95b8ce11211f9310e741f
* | | [Bug 3508771] Wrong Tcl_StatBuf used on MinGWjan.nijtmans2012-03-271-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | [Bug 2015723] duplicate inodes from file stat on windows (but now for cygwin as well) FossilOrigin-Name: cd7415d81d850238c4927b95b33bae8fd3ed6844
| * | [Bug 3508771] Wrong Tcl_StatBuf used on MinGWjan.nijtmans2012-03-271-1/+1
| |\ \ | | |/ | | | | | | | | | | | | [Bug 2015723] duplicate inodes from file stat on windows (but now for cygwin as well) FossilOrigin-Name: f9900bca57b9c8cbafb77ba13395de56d47bb85e
| | * fix gcc warning signed<->unsigned warning for cygwinjan.nijtmans2012-03-261-1/+1
| | | | | | | | | FossilOrigin-Name: eff5ac7172c39b4a220fe88013953d43aab3a233
| | * [Bug 2935503]: Windows: file mtime sets wrong timejan.nijtmans2011-11-221-0/+5
| | | | | | | | | FossilOrigin-Name: 18d103467f3575a2b760d473594a44607652e138
| | * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-0/+1
| | | | | | | | | | | | | | | | | | n mingw, sys/stat.h must be included before winsock2.h, so make sure of that FossilOrigin-Name: 008181d7a65e611c4f5a9a7e2404ceabdd9d5b77
* | | 3479689 New internal routine TclJoinPath().dgp2012-01-271-1/+1
| | | | | | | | | | | | | | | | | | Refactor all the *Join*Path* routines to give them more useful interfaces that are easier to manage getting the refcounts right. FossilOrigin-Name: 55c8c6c1552f0cd51a3b76c0ca7a6ddf3e514ad0
* | | Make [file] itself be safe, to reduce breakage in existing code. [Bug 3211758]dkf2011-09-261-0/+11
| | | | | | | | | FossilOrigin-Name: 08c372827446954b301b25a77150d0108aaa2f4b
* | | Fix eval's faulty objProc, it was actually an nreProc [Bug 3399564]. Thanks ↵mig2011-08-291-0/+10
| | | | | | | | | | | | | | | to Joe Mistachkin for detection and analysis. FossilOrigin-Name: 6fde6aa738636d36cc0568bf01d9c784d68d8fea
* | | More generation of error codes (miscellaneous commands mostly already handled).dkf2011-04-041-0/+10
| | | | | | | | | FossilOrigin-Name: 3085894b659c77653cf99c05c01d6e459883a5ec
* | | Better error-message in case of errors related to setting a variablejan.nijtmans2011-04-041-8/+2
| | | | | | | | | FossilOrigin-Name: 0b4ce29050f3a92481c073d03bae5e44ec4bf790
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-1/+1
| | | | | | | | | | | | | | | 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/tclBasic.c: Extended the existing TIP #280 system (infoandreas_kupries2008-07-211-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: frame), added the ability to track the * generic/tclCompCmds.c: absolute location of literal procedure * generic/tclCompile.c: arguments, and making this information * generic/tclCompile.h: available to uplevel, eval, and * generic/tclInterp.c: siblings. This allows proper tracking of * generic/tclInt.h: absolute location through custom (Tcl-coded) * generic/tclNamesp.c: control structures based on uplevel, etc. * generic/tclProc.c: FossilOrigin-Name: 87a9c9155a383f7e221244f3b8caf28a85bd3b47
| | * * generic/tclBasic.c: TIP #280 implementation, conditional on the define ↵andreas_kupries2006-11-281-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TCL_TIP280. * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclProc.c: * tests/compile.test: * tests/info.test: * tests/platform.test: * tests/safe.test: FossilOrigin-Name: a88d79cbf88f04a3f3918625a36a4df1d75704a2
| | * * generic/tclBasic.c:msofer2005-10-231-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclExecute.c: * generic/tclLink.c: * generic/tclMain.c: * generic/tclProc.c: * generic/tclScan.c: * generic/tclTest.c: * generic/tclVar.c: * mac/tclMacInit.c: * unix/tclUnixInit.c: * win/tclWinInit.c: Insure that the core never calls TclPtrSetVar, Tcl_SetVar2Ex, Tcl_ObjSetVar2 or Tcl_SetObjErrorCode with a 0-ref new value. It is not possible to handle error returns correctly in that case [Bug 1334947], one has the choice of leaking the object in some cases, or else risk crashing in some others. FossilOrigin-Name: 8761ab798f625b66cadb3eaf8fafdedce6553a02
| | * Fix [Bug 1284178] and tweak tests to accommodate.dkf2005-10-131-2/+6
| | | | | | | | | FossilOrigin-Name: b41705eb6e842637c1238e3aa8c6dd0a243583ab
| | * * generic/tclCmdAH.c New "encoding" Tcl_ObjType (not registered)dgp2005-07-051-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEncoding.c that permits longer lifetimes of the * generic/tclInt.h Tcl_Encoding values kept as intreps of Tcl_Obj's. Reduces the need for repeated reading of encoding definition files from the filesystem. [Bug 1077262] FossilOrigin-Name: 9e0bc07fda2b8bda222792a35529fa77a26f0406
| | * Fix bug in [format %hx] handling on selected platforms. [Bug 1154163]dkf2005-06-171-16/+22
| | | | | | | | | FossilOrigin-Name: 7e05cf3e68c5e3660f375585a68b6a4f0f573a5f
| | * removed erroneous comment [Bug 1029518]msofer2004-10-301-7/+1
| | | | | | | | | FossilOrigin-Name: 837b2ba9c23146a64eb5a0f93f7437d888a10a0b
| | * * tests/socket.test (socket-13.1): Balanced [makeFile] anddgp2004-10-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [removeFile] commands. * generic/tclCmdAH.c (Tcl_FormatObjCmd): Restored missing line from yesterdays' 868486 backport that caused failed alloc's on LP64 systems. FossilOrigin-Name: 5950c15f8905e95f8e50b0b564ba57990a39a17d
| | * backport fixes for 868489 and 1026125kennykb2004-10-271-47/+13
| | | | | | | | | FossilOrigin-Name: eb071c665a5aa86897f8429c4e68b0ac59204462
| | * fix to 'file normalize ~nobody' crashvincentdarley2003-12-121-1/+4
| | | | | | | | | FossilOrigin-Name: 23ab3123aff583c06744723f7b3beff700ae03e0
| | * Changed FILE_ to FCMD_ to prevent symbol/#def collisions. [Bug 822528]dkf2003-10-221-45/+45
| | | | | | | | | FossilOrigin-Name: a90e1d2d1036aa13ccf90a1285db7f5cac55ea2a
| | * Consequent fixes from [Bug 699060]; [format] should not be too eager to demotedkf2003-05-141-2/+9
| | | | | | | | | | | | | | | | | | wides to ints, and should throw errors when appropriate. FossilOrigin-Name: 8630c78e33138662b36b68640d8adb20252b7d1c
| | * * generic/tcl.h Made changes so that the "wideInt" Tcl_ObjTypedgp2003-04-161-18/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclObj.c is defined on all platforms, even those where * generic/tclPort.h TCL_WIDE_INT_IS_LONG is defined. Also made the Tcl_Value struct have a wideValue field on all platforms. This is a ***POTENTIAL INCOMPATIBILITY*** for TCL_WIDE_INT_IS_LONG platforms because that struct changes size. This is the same TIP 72 incompatibility that was seen on other platforms at the 8.4.0 release, when this change should have happened as well. [Bug 713562] * generic/tclInt.h: New internal macros TclGetWide() and TclGetLongFromWide() to deal with both forms of the "wideInt" Tcl_ObjType, so that conditional TCL_WIDE_INT_IS_LONG code is confined to the header file. * generic/tclCmdAH.c: Replaced most coding that was conditional * generic/tclCmdIL.c: on TCL_WIDE_INT_IS_LONG with code that * generic/tclExecute.c: works across platforms, sometimes using * generic/tclTest.c: the new macros above to do it. * generic/tclUtil.c: * generic/tclVar.c: FossilOrigin-Name: 4657eb7ea0eed71ec0569f92079583a33c22ba62