summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdAH.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7jan.nijtmans2019-08-141-1/+0
|\
| * Document that the *Backslash parsing functions output maximum 4 bytes, ↵jan.nijtmans2019-08-021-1/+0
| | | | | | | | | | irrespectable of the TCL_UTF_MAX setting: It could be 4 for the "\Uxxxxxx" construct, but never more. Move <stddef.h> and <locale.h> to tclInt.h, so the can be removed from various other places.
* | Eliminate "register" keyword _everywhere_ in Tcl. This keyword is deprecated ↵jan.nijtmans2019-07-171-5/+5
|/ | | | in C++ (removed in C++17, even), and essentially does nothing with most modern compilers.
* Merge 8.6jan.nijtmans2019-07-051-9/+9
|\
| * Fix [4718b41c56d8c135]: windows x86 & x64: file mtime overflows in ↵jan.nijtmans2019-07-051-9/+9
| |\ | | | | | | | | | modification date. Only fixed for x64, because for x86 it isn't possible without breaking API compatibility
| | * Fix [4718b41c56d8c135]: windows x86 & x64: file mtime overflows in ↵jan.nijtmans2019-07-051-4/+4
| | | | | | | | | | | | | | | modification date. Only fixed for x64, because for x86 it isn't possible without breaking API compatibility.
* | | Implementation of [file tempdir]; hand-tested on OSX...dkf2019-04-301-0/+1
| | |
* | | Modify testbytestring such that is only produces pure byte-arrays, if not it ↵jan.nijtmans2019-04-011-3/+3
| | | | | | | | | | | | | | | errors out. Modify Tcl_NewIntObj/Tcl_NewBooleanObj -> Tcl_NewWideIntObj. Less references to "long" datatype.
* | | If compiled with -DTCL_NO_DEPRECATED, remove ↵jan.nijtmans2018-12-121-12/+12
| | | | | | | | | | | | | | | Tcl_NewIntObj/Tcl_NewLongObj/Tcl_DbNewLongObj from stub table, as they will be gone in 9.0 (converted to a macro) Use Tcl_WideInt's directly in more places, diminishing the possibility of inadvent overflow.
* | | merge 8.6sebres2018-11-221-1/+1
|\ \ \ | |/ /
| * | merge 8.5: fixes segfault [7a9dc52b29] and wrong normalization (inside ↵sebres2018-11-221-1/+1
| |\ \ | | |/ | | | | | | TclJoinPath) for pure relative path-segments; test-cases extended and several windows-related are fixed.
| | * Eliminate a few gcc compiler warnings, when using -Wwrite-strings (tested ↵jan.nijtmans2015-10-011-4/+4
| | | | | | | | | | | | with the brand-new gcc 5.2.0)
* | | Centralise the de-fanging of standard ensembles in safe interpreters. Doing ↵dkf2018-10-071-276/+30
| | | | | | | | | | | | it right once is easier than repeating hacks...
* | | Fix [540bed4bde]: binary format can result in "integer value too large to ↵jan.nijtmans2018-09-041-4/+4
| | | | | | | | | | | | | | | | | | | | | represent". Implemented a new utility function TclGetWideBitsFromObj(), which handles the overflowing of integers using bignums. This function can be used in a _LOT_ of other places, preventing code duplication. Done that as well. Those changes have no effect on other commands, only two new "binary format" test-cases for this specific situation: binary-44.5 and binary-44.6
* | | merge 8.6jan.nijtmans2018-07-311-57/+0
|\ \ \ | |/ /
| * | Remove some actually dead codejan.nijtmans2018-07-311-57/+0
| | |
* | | TIP #485 implementation: "Remove Deprecated API". Based on Tcl 8.7 ↵jan.nijtmans2017-11-081-1/+1
| | | | | | | | | | | | (core-8-branch).
* | | redundant end-of-line spacingjan.nijtmans2017-03-151-7/+7
|\ \ \ | |/ /
| * | redundant end-of-line spacingjan.nijtmans2017-03-151-7/+7
| | |
* | | Make 'clock' and 'encoding' into compilable ensembles that play with safe ↵Kevin B Kenny2017-03-141-64/+342
|\ \ \ | |/ / | | | | | | interps
| * | Make 'clock' and 'encoding' into compilable ensembles that play with safe ↵Kevin B Kenny2017-03-141-1/+111
| | | | | | | | | | | | interps
| * | Make 'clock' and 'encoding' into proper compilable ensemblesKevin B Kenny2017-03-141-66/+234
| | |
* | | If TCL_NO_DEPRECATED is defined, remove the "case" statement, and use much ↵jan.nijtmans2017-01-251-1/+2
|/ / | | | | | | less interp->result. Implementation mostly taken over from "novem". If TCL_NO_DEPRECATED is not defined, nothing changes.
* | Allow additional optional "interp" argument for testinterpresolver command. ↵jan.nijtmans2016-09-051-1/+1
| | | | | | | | | | | | Not used yet in any test-case. Protect panic in tclLiteral.c for possible null-pointer access. (cherry-picked from Gustaf Neuman's interpresolver patch). Eliminate some unecessary spacing.
* | Fix "file owned" for Cygwin: st_uid is only 16-bit there.jan.nijtmans2016-07-121-1/+6
| |
* | Bugfix [3613671]. file owned implementation for Windows.ashok2016-07-091-11/+6
| |
* | Bugfix [ae61a67192]. file {stat, type, size} etc. support for built-in ↵ashok2016-07-091-0/+19
| | | | | | | | special Windows files/devices like CON.
* | Align comment. Remove some end-of-line spacing. No functional changes.jan.nijtmans2015-09-281-1/+1
|\ \ | |/
* | 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]
* | Use more portable TclIsSpaceProc() in stead of isspace().jan.nijtmans2013-06-171-4/+3
|\ \ | |/
| * 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.
* | Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>jan.nijtmans2013-02-101-1/+0
|\ \ | |/
| * Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>.jan.nijtmans2013-02-101-1/+0
| |
* | 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
| * 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
| * 3595576 Tests/fix for mem corruption: [catch] fails to store options in a var.dgp2012-12-131-1/+0
| |
* | 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.
* | Fix for [Bug 3595576], found by andrewshmig2012-12-131-1/+2
| |
* | compilation code adjusteddkf2012-10-051-28/+45
| |
* | merge trunkdkf2012-09-041-19/+25
|\ \
| * | more result generation conversiondkf2012-08-031-17/+22
| | |
| * | converting to using Tcl_Obj API for error message generation; part donedkf2012-08-031-2/+3
| | |
* | | Rename 'mapeach' to 'lmap' per preferred alternative in TIP #405.twylite2012-08-081-3/+3
| | |
* | | Back-out 'foreacha' implementation but leave code cleanup of 'mapeach' and ↵twylite2012-08-081-47/+11
| | | | | | | | | | | | 'dict map'.
* | | [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').
* | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-2/+2
| |
* | [Bug 3537605]: Make [encoding dirs ? ?] report the right error message.dkf2012-06-251-7/+9
|\ \ | |/
| * [Bug 3537605]: Make [encoding dirs ? ?] report the right error message.dkf2012-06-251-7/+11
| |
| * make some more internal tables constjan.nijtmans2012-04-181-23/+23
| |\ | | | | | | a few CONST -> const changes
* | | [Bug 3445787]: Improve the compatibility of safe interpreters' version ofdkf2012-05-161-2/+40
| | | | | | | | | 'file' with that of unsafe interpreters.