summaryrefslogtreecommitdiffstats
path: root/generic/tclCompExpr.c
Commit message (Collapse)AuthorAgeFilesLines
* merge core-8-6-branchjan.nijtmans2017-08-181-1/+1
|\
| * Better UTF-8 surrogate handling, only functional when TCL_UTF_MAX>3jan.nijtmans2017-06-081-1/+1
| |
* | merge core-8-6-branchjan.nijtmans2017-05-291-2/+2
|\ \ | |/
| * Tcl_UtfToUniChar() -> TclUtfToUniChar() in various places: No change in ↵jan.nijtmans2017-05-291-2/+2
| | | | | | | | functionality, just faster if ASCII only strings are involved.
* | Fix [d4e7780ca1681cd095dbd81fe264feff75c988f7|d4e7780ca1]: "global" cmd ↵jan.nijtmans2016-09-071-9/+9
|\ \ | |/ | | | | literal sharing vs. per-interp resolvers
* | No longer need to create Tcl_Obj just to make some bytecode.dgp2016-04-291-5/+2
|/
* More signed/unsigned type correction.dgp2016-03-221-3/+3
|\
| * (cherry-pick): Fix signed-unsigned-compare warning (reported by François ↵jan.nijtmans2016-03-221-1/+1
|/ | | | Vogel on Windows, but gcc can trigger it as well)
* [3e7eca8c8c] Prevent overflow in the size value passed to ckrealloc().dgp2015-07-291-1/+3
|\
| * [3e7eca8c8c] Prevent overflow in the size value passed to ckrealloc().dgp2015-07-291-1/+3
| |
* | Fix some gcc compiler warnings (probably cygwin-only)jan.nijtmans2014-12-081-20/+20
|\ \ | |/
| * Fix some gcc compiler warnings (probably cygwin-only)jan.nijtmans2014-12-081-3/+3
| |
* | [d2ffcca163] Limit parsing results that are documented to accept only ASCII ↵dgp2014-12-051-27/+24
|\ \ | |/ | | | | chars to actually follow that constraint. This requires not trusting isalnum(.) and isalpha(.) to deliver portable identical results.
| * Limit isalpha(.) calls in the expr parser to only apply to known ASCIIbug_d2ffcca163dgp2014-12-041-3/+4
| | | | | | arguments to make the results portable.
| * Stop using isalnum(.). Its results are not portable. Replace with ourdgp2014-12-041-5/+10
| | | | | | own private routine TclIsBareword() that does exactly what we want.
| * Same issue in expr parser also tested and fixed.dgp2014-11-261-20/+12
| |
* | Working towards better handling of stack balance with break and continue ↵dkf2013-10-081-2/+2
| | | | | | | | exceptions.
* | More macro use.dgp2013-09-131-3/+1
| |
* | Push fixup on the stack only when needed.dgp2013-09-121-12/+6
| |
* | Swap the two fixups used when compiling the ternary operator.dgp2013-09-121-17/+16
| | | | | | Push them on the stack only when needed, and pop as soon as possible.
* | Stop allocating JumpFixups for jumps that can never need any fixing up.dgp2013-09-121-22/+15
| |
* | Eliminate another surplus storage field. Make a(n ab)use of the existingdgp2013-09-111-5/+7
| | | | | | JumpFixup fields instead.
* | Make use of the existing JumpFixup fields. Eliminate extra storagedgp2013-09-111-5/+2
| | | | | | field 'offset' in JumpList that we don't require.
* | Stop the save and restore of currStackDepth. Just manage it correctly sodgp2013-09-111-7/+1
| | | | | | it doesn't need correcting.
* | Make more use of the CompileTokens() macro.dgp2013-06-251-2/+1
| |
* | Select improvements in stack depth estimates brought over from mig-review.dgp2013-06-111-0/+1
| | | | | | | | | | Mostly these are just simplifications, removing code that wasn't needed. Some changes make the stack depth estimate more accurate instruction by instruction.
* | New internal routine TclFetchLiteral() for better CompileEnv encapsulation.dgp2013-03-051-8/+5
| |
* | merge core-8-5-branchjan.nijtmans2013-01-311-1/+1
|\ \ | |/
| * Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-1/+1
| | | | | | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
* | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-1/+1
| |
* | make some more internal tables constjan.nijtmans2012-04-181-1/+1
|\ \ | |/ | | a few CONST -> const changes
| * make some more internal tables constjan.nijtmans2012-04-181-1/+1
| |\ | | | | | | a few CONST -> const changes
| | * * generic/tclBasic.c: More replacements of Tcl_UtfBackslash() callsdgp2011-03-061-2/+2
| | | | | | | | | | | | | | | | | | * generic/tclCmdMZ.c: with TclParseBackslash() where possible. * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclUtil.c:
* | | Experimental compilation of the [dict with] subcommand. No tests yet, and notdkf2011-10-021-154/+186
| | | | | | | | | | | | yet certain that the added bytecode opcodes are correct; evaluation is still needed (but the test suite does pass...)
* | | 3408408 Partial improvement by sharing as literals the computed values ofdgp2011-09-151-2/+24
| | | | | | | | | | | | constant subexpressions when we can do so without incurring the cost of string rep generation.
| | |
| \ \
*-. \ \ 3401704 Allow function names like influence(), nanobot(), and 99bottles()dgp2011-09-071-45/+73
|\ \ \ \ | | |/ / | | | | | | | | | | | | that have been parsed as missing operator syntax errors before with the form NUMBER + FUNCTION. ***POTENTIAL INCOMPATIBILITY***
| | * | missing 'break'dgp2011-09-071-0/+1
| |/ /
| * | Tidiness, comments, and tests.dgp_3401704dgp2011-09-071-5/+28
| | |
| * | Don't extend numbers with non-alphanumeric characters into barewords.dgp2011-09-061-0/+6
| | |
| * | 3401704 New patch to enable nancy(), influence(), 99bottles().dgp2011-09-061-43/+38
| | |
* | | Reduce the number of casts used to manage Tcl_Obj internal representations.dkf2011-03-261-1/+1
| | |
* | | Generate errorCode information on failure to parse expressions.dkf2011-03-171-67/+103
| | |
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-7/+9
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | MINOR: Formatting fixes, mainly to comments, so code better fits the style indkf2011-03-101-4/+2
| | | | | | | | | the Engineering Manual.
* | | Renamed struct TEOV_callback to the more descriptive NRE_callback.Miguel Sofer2011-03-051-1/+1
| | |
* | | 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).
| * | 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.
| | * 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.
| | * style revisions to latest commitdgp2008-04-171-2/+2
| | |
| | * * generic/tclCompExpr.c (CompileMathFuncCall): Addedandreas_kupries2008-04-171-1/+2
| | | | | | | | | | | | | | | | | | | | | * tests/compile.test (compile-16.0): Tcl_ResetResult before appending error message, to clear out possible sharing. Added test case demonstrating the crash (abort on shared object) without the fix.