summaryrefslogtreecommitdiffstats
path: root/generic/tclParse.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Merge core-8-6-branchjan.nijtmans2017-03-071-1/+1
|\ \ | |/
| * Remove "makefile.bc". Not updated for many-many years, most likely it ↵jan.nijtmans2017-03-071-1/+1
| | | | | | | | doesn't work any more and it doesn't seem to care anyone. Let's see if someone complains ;-)
* | ParseTokens failed to fully respect its numBytes argument.dgp2017-02-271-1/+4
|\ \ | |/
| * ParseTokens failed to fully respect its numBytes argument.dgp2017-02-271-1/+4
| |\
| | * ParseTokens failed to fully respect its numBytes argument.dgp2017-02-271-1/+4
| | |
* | | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-2/+2
| | | | | | | | | | | | in many places where possible.
* | | Tcl_SetVar -> Tcl_SetVar2 and comparable replacements, eliminating functions ↵jan.nijtmans2016-06-291-1/+1
| | | | | | | | | | | | which are deprecated.
* | | Re-order loop for fewer gotos.dgp2016-06-271-46/+36
| | |
* | | Stop parsing white space where there cannot be any.dgp2016-06-271-41/+28
| | |
* | | Streamline comment parsing.dgp2016-06-271-34/+33
|/ /
* | typo in comment. Eliminate unnecessary end-of-line spacing.jan.nijtmans2015-10-191-2/+2
| |
* | Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-1/+1
|\ \ | |/
| * Eliminate unnessessary end-of-line spacing. No functional change.jan.nijtmans2015-10-041-1/+1
| |
| * With no callers left, TclIsLocalScalar() is removed.dgp2014-12-191-50/+0
| |
* | Eliminate TclIsLocalScalar(). No callers left.dgp2014-12-231-50/+0
| |
* | [d2ffcca163] Limit parsing results that are documented to accept only ASCII ↵dgp2014-12-051-17/+46
|\ \ | |/ | | | | chars to actually follow that constraint. This requires not trusting isalnum(.) and isalpha(.) to deliver portable identical results.
| * Stop using isalnum(.). Its results are not portable. Replace with ourdgp2014-12-041-4/+43
| | | | | | own private routine TclIsBareword() that does exactly what we want.
| * I like this patch better. Retain the byte orientation of the parser.dgp2014-11-261-17/+4
| |
| * One way to fix the parser of $-substitution accepting non-ASCII varnames.dgp2014-11-251-0/+3
| |
* | Error in order of #include lines broke some windows builds.dgp2013-09-051-1/+1
| |
* | Replace potentially memleak creating safety check of a "cannot happen"dgp2013-08-071-8/+6
| | | | | | condition with an assertion.
* | Demonstrate and fix memory leak in Tcl_ParseVar().dgp2013-07-241-0/+1
|\ \ | |/
| * Demonstrate and fix memory leak in Tcl_ParseVar().dgp2013-07-241-0/+1
| |
* | MODULE_SCOPE symbol names are suppoted to start with 'tcl' (data) or 'Tcl' ↵jan.nijtmans2012-12-041-1/+1
| | | | | | | | (code)
* | more result generation conversiondkf2012-08-031-2/+2
| |
* | converting to using Tcl_Obj API for error message generation; part donedkf2012-08-031-13/+16
| |
* | Refactor TclScanElement() part of list parsing to take advantage of tablesdgp2012-03-071-12/+2
| | | | | | | | | | constructed for the task of script parsing. Ought to speed generation of string representation of lists, though the effect is likely only noticeable on long lists made up primarily of simple elements (not needing quoting).
* | TIP 388 implementationjan.nijtmans2011-08-121-3/+12
| |
* | Change the signature of TclParseHex(), such that it can now parse up to 8 ↵jan.nijtmans2011-08-091-9/+11
| | | | | | | | hex characters
* | New internal routines TclScanElement() and TclConvertElement().dgp2011-05-101-1/+1
|\ \ | |/ | | Rewritten guts of machinery to produce string rep of lists. [Bug 3173086]
* | Revised TclFindElement() interface.dgp2011-05-021-24/+18
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The final argument had been bracePtr, the address of a boolean var, where the caller can be told whether or not the parsed list element was enclosed in braces. In practice, no callers really care about that. What the callers really want to know is whether the list element value exists as a literal substring of the string being parsed, or whether a call to TclCopyAndCollpase() is needed to produce the list element value. Now the final argument is changed to do what callers actually need. This is a better fit for the calls in tclParse.c, where now a good deal of post-processing checking for "naked backslashes" is no longer necessary. ***POTENTIAL INCOMPATIBILITY*** For any callers calling in via the internal stubs table who really do use the final argument explicitly to check for the enclosing brace scenario. Simply looking for the braces where they must be is the revision available to those callers, and it will backport cleanly. Tests for expanded literals quoting detection.
| * Tests for expanded literals quoting detection.dgp2011-05-021-3/+5
| |
| * Revised TclFindElement() interface.dgp2011-05-021-21/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The final argument had been bracePtr, the address of a boolean var, where the caller can be told whether or not the parsed list element was enclosed in braces. In practice, no callers really care about that. What the callers really want to know is whether the list element value exists as a literal substring of the string being parsed, or whether a call to TclCopyAndCollpase() is needed to produce the list element value. Now the final argument is changed to do what callers actually need. This is a better fit for the calls in tclParse.c, where now a good deal of post-processing checking for "naked backslashes" is no longer necessary. ***POTENTIAL INCOMPATIBILITY*** For any callers calling in via the internal stubs table who really do use the final argument explicitly to check for the enclosing brace scenario. Simply looking for the braces where they must be is the revision available to those callers, and it will backport cleanly.
* | New utility routines: TclIsSpaceProc() and TclCountSpaceRuns()dgp2011-04-281-1/+25
|\ \ | |/ | | Use to replace calls to isspace() and their /* INTL */ risk.
| * New utility routines: TclIsSpaceProc() and TclCountSpaceRuns()dgp2011-04-281-1/+25
| | | | | | Use to replace calls to isspace() and their /* INTL */ risk.
* | Rewrites to eliminate some isspace() calls.dgp2011-03-161-13/+8
|\ \ | |/
| * Rewrites to eliminate isspace() calls.dgp2011-03-161-13/+8
| |
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-4/+4
| | | | | | 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-8/+8
| | | | | | the Engineering Manual.
* | * generic/tclBasic.c: More replacements of Tcl_UtfBackslash() callsdgp2011-03-061-2/+2
|\ \ | |/ | | | | | | | | * generic/tclCompile.c: with TclParseBackslash() where possible. * generic/tclCompCmdsSZ.c: * generic/tclParse.c: * generic/tclUtil.c:
| * * generic/tclBasic.c: More replacements of Tcl_UtfBackslash() callsdgp2011-03-061-2/+2
| |\ | | | | | | | | | | | | * generic/tclCompile.c: with TclParseBackslash() where possible. * generic/tclParse.c: * generic/tclUtil.c:
* | \ * generic/tclParse.c (TclParseBackslash): Correct trunction checks indgp2011-03-061-2/+2
|\ \ \ | |/ / | | | * tests/parse.test: \x and \u substitutions. [Bug 3200987]
| * | * generic/tclParse.c (TclParseBackslash): Correct trunction checks indgp2011-03-061-2/+2
| |\ \ | | |/ | | | * tests/parse.test: \x and \u substitutions. [Bug 3200987]
| | * * generic/tclParse.c (TclParseBackslash): Correct trunction checks indgp2011-03-061-2/+2
| | | | | | | | | * tests/parse.test: \x and \u substitutions. [Bug 3200987]
* | | add missing comment terminatormig2011-03-021-1/+2
| | |
* | | 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.