Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of generic/tclexpat.c

2019-03-02
02:28
Removed #define and code for a tcl version (8.0) that isn't support for a long time. file: [57f37c0029] check-in: [0efaef90de] user: rolf branch: schema, size: 138365
2019-02-17
23:18
More work on text types. Added automatic schema reset after using schema command during dom building or sax event parsing. file: [748a644e11] check-in: [bd8b0eecee] user: rolf branch: schema, size: 141820
2019-01-09
00:47
Enable validation features by default (with easy configure disable switch). file: [d34a9d251d] check-in: [589a5b2a86] user: rolf branch: schema, size: 141496
2019-01-07
16:15
(This and the previous 2 wip commits:) Fixed mem-leak in schemaReset(). Attribute validation: More work and fixes. <schemacmd validate> and xml::parser SAX parser now check non-namespaced attributes and detect unknown attributes and missing required attributes (namespaced and non-namespaced). Verifying namespaced attributes for this parsers tbd. [dom parse -validateCmd] now fully checks schema attribute constrains (non-namespaced and namespaced). This is at the same time a major step towards post-validation of a DOM subtree or document. file: [5763fcae54] check-in: [80f15f0bb6] user: rolf branch: schema, size: 141406
2018-12-06
22:13
Renamed structure to schema. file: [c3160ec4ed] check-in: [084cbc63a1] user: rolf branch: schema, size: 141107
2018-11-22
01:16
Completed the new -validateCmd of the dom command with text probing. Added a -validateCmd option to expat parsers (with weakness on the namespace side). file: [593a082e88] check-in: [51f75c38db] user: rolf branch: structure, size: 141125
00:16
Merged from trunk. file: [d45703ad4e] check-in: [e309c8106a] user: rolf branch: structure, size: 140633
00:13
Removed unnecessary code. The handler pair for start and end tag is enough for bookkeeping about nesting. file: [f2538fa6d0] check-in: [22bb3a056f] user: rolf branch: trunk, size: 139682
2018-11-21
23:44
Lesser #ifdef. file: [05174eedcb] check-in: [e4c7f3f52f] user: rolf branch: structure, size: 140975
2018-07-10
22:25
More typo fixes. Thanks goes to Gustaf Neumann. file: [d0878eac72] check-in: [26cf441c85] user: rolf branch: trunk, size: 140024
2018-05-02
15:12
Removed "support" for Tcl 8.0 - it probably doesn't even build any more. Eventually it's time prune out this #ifdefery. file: [ddbb28dde0] check-in: [d729de4c39] user: rolf branch: abandon80, size: 140029
2018-04-06
15:57
Merged from trunk. file: [02a14d770a] check-in: [7b9d2c1ea6] user: rolf branch: deCONST, size: 140413
2018-03-07
00:45
Added method delete to [expat] push parsers, made the up to now method free an alias of that. To have at least for deletion some consistence about the obj cmds that tDOM creates. file: [8bc2f0cb70] check-in: [c5d89835b8] user: rolf branch: trunk, size: 140423
00:13
Removed more of this obsolete comments. This is handled in TclExpatHandlerResult(). file: [65370a7f2f] check-in: [71598843fd] user: rolf branch: trunk, size: 140365
00:06
Removed obsolete comment. It is already possible to terminate parsing with certain result codes. This is handled in TclExpatHandlerResult(). file: [7846697bc6] check-in: [fdc4fb29f3] user: rolf branch: trunk, size: 141533
00:03
This is an important but hard to explain bug fix. The symptom was: using expat in a certain way (triggering the "Welch dispatch" method of calling handler scripts behind the scene) suffered from a dramatic slowdown with 8.6, while it was the fastest method of using expat with all other versions < 8.6. This changes adapts tDOM to the relevant core changes. file: [5335807bf7] check-in: [32df86b4d4] user: rolf branch: trunk, size: 141705
2018-02-22
01:46
More pruning out history: all that CONST and even CONST84 business. file: [4c8cce778a] check-in: [659134bc9a] user: rolf branch: deCONST, size: 141578
00:57
A bit modernizing and gardening of the code base (e.g. pruning out pre-ansi stuff). Work mostly done by Gustaf Neumann. file: [ddcae4c997] check-in: [da20a637cf] user: rolf branch: trunk, size: 141588
2018-02-09
11:17
Spell fix. file: [6d91b06377] check-in: [661363f318] user: rolf branch: trunk, size: 143510
2018-02-01
00:11
Expose the SAX parser buffer size a bit. file: [23f0eb9633] check-in: [bf23a5e2b3] user: rolf branch: trunk, size: 143509
2016-10-08
23:11
Introduced due an editing mistake in [df00b99009] parsing of external entities, that are feeded back into the parsing engine as channel by the scripted external entities resolver, raised wrongly error for well-formed entities and vice versa. Fixed. file: [0691802127] check-in: [1d978619f5] user: rolf branch: trunk, size: 143417
2016-10-01
22:38
Fixed [b7fcebac73]. file: [22886bc784] check-in: [df00b99009] user: rolf branch: trunk, size: 143418
2016-05-12
16:45
If not on windows include unistd.h unconditional. Fixes a warning on FreeBSD. file: [ad5e78e670] check-in: [f163795f4d] user: rolf branch: trunk, size: 143921
2015-04-01
03:01
Handle calls from -characterdatacommand. Added tests. file: [b4f9075830] check-in: [4bb38582f8] user: rolf branch: parser-defaultcurrent, size: 143944
2014-10-16
21:58
Saved work in progress. file: [3033e0ac79] check-in: [3cc840358e] user: rolf branch: parser-defaultcurrent, size: 143658
2014-10-08
00:45
Renamend method defaultcurrent to currentmarkup. file: [160a30a6e9] check-in: [0337e934ea] user: rolf branch: parser-defaultcurrent, size: 143341
00:06
Merged from trunk. file: [d9e53d0c6b] check-in: [fb8b793fef] user: rolf branch: parser-defaultcurrent, size: 143353
2014-10-07
23:50
Reworked parser cmd method defaultcurrent to work much simpler. Instead of getting the result of the method by another handler, which may be, since its there, get called otherwise also (so you may have to flag, that this handler is called by defaultcurrent) just return currentdefault. file: [0fbb629964] check-in: [f5b29530ef] user: rolf branch: parser-defaultcurrent, size: 143365
2014-10-02
23:09
Editorial change. file: [b23fa4b7c5] check-in: [4afd32f535] user: rolf branch: trunk, size: 142493
22:57
added a "parser defaultcurrent" subcommand that calls XML_DefaultCurrent file: [611d6a2c7a] check-in: [0cb35638d1] user: evilotto branch: parser-defaultcurrent, size: 142692
21:45
Fixed seg fault, if expat parser cmd method get is called without argument. file: [8338f95790] check-in: [a5417947d1] user: rolf branch: trunk, size: 142505
2013-12-20
13:48
Documented behaviour of the new, special handled handler script return code -return. Added some test. file: [51492eae3c] check-in: [55c9bb1681] user: rolf branch: abortableParse, size: 142600
03:45
Handler script return codes other than -code ok, -code continue or -code break causes parse abort (via XML_StopParser). New feature: If a handler script returns -code return, then parsing is aborted, but no error is raised. file: [d76a148338] check-in: [f8cab49830] user: rolf branch: abortableParse, size: 142512
2008-03-04
20:34
Editorial changes. file: [ac9139ffa6] check-in: [ed2de2fd5c] user: rolf branch: trunk, size: 142270
2007-08-07
17:54
Compiler pacifying. file: [d977e9c835] check-in: [6bb6d68fde] user: rolf branch: trunk, size: 142212
2007-08-06
23:55
Still problems on 64bit /w -externalentitycommand. This health the biggest pain. file: [4925e6af5f] check-in: [577fa61eff] user: rolf branch: trunk, size: 142183
2007-07-31
00:23
Update to expat 2.0.1; minor build cosmetic. file: [5c7c8dfc1e] check-in: [8ef882fd3e] user: rolf branch: trunk, size: 142192
2005-05-02
13:18
Bug fix: expat parser method parsechannel didn't (depending on the encoding of the channel) reported parsing errors. file: [1b2fa68347] check-in: [71c78179db] user: rolf branch: trunk, size: 141967
2005-01-07
15:08
Clean up, to decrease (innocuous) compiler warnings (thanks to Pat Thoyts for triggering input and patch). file: [02f7be81d9] check-in: [557cc56ed2] user: rolf branch: trunk, size: 141588
2004-12-10
18:56
Don't allow the methods parse, parsechannel, parsefile, free and reset from within a callback of the parser be used but raise a tcl error. file: [d8f699c9b8] check-in: [a3f7814234] user: rolf branch: trunk, size: 141573
2004-07-28
03:52
Reworked internal base URI handling, to fix a bug of the old approach and to be closer to (though not fully support) what DOM 3 say about base URI handling. Better error msg in case of 'filename' and not valid file name. file: [93a3d4c933] check-in: [a62f1de836] user: rolf branch: trunk, size: 139741
2003-12-11
13:35
Bug fix: Don't quash white space of non white space only content in trim mode. file: [92384e204a] check-in: [44db286071] user: rolf branch: trunk, size: 139049
2003-11-24
10:24
Changed parserObj behavior: parser don't need a reset call after a final parse or parsing error. Fixed memeory problem, if handler script return TCL_ERROR. Made the cget method work for the parser related options, even if there are no handler scripts set. Always use domPanic as panic function. file: [b3f4dc4f7c] check-in: [325c92cf38] user: rolf branch: trunk, size: 139802
2003-10-17
08:45
Attempt to enforce (where feasible) the right 78-char margin file: [85dab47ea7] check-in: [f06a133591] user: zoran branch: trunk, size: 137037
2003-10-12
01:57
Merged domCreateEmptyDoc() and domCreateDoc(), now there is only one API proc: domCreateDoc(). file: [3f02d30faa] check-in: [7f2fefd0c2] user: rolf branch: trunk, size: 137458
2003-09-28
00:34
Removed two unused vars. file: [07e5fab1b7] check-in: [615337ddc0] user: rolf branch: trunk, size: 137464
2003-09-16
22:54
Enhanced the new cget method of parserObjs to also report the state of -noexpand, -useForeignDTD, -paramentityparsing (those by doing the bookkeeping with an enhanced TclGenExpatInfo struct, because the expat parser do not proived an API to request this settings) and -namespace. Improved argument check of the parser obj method calls. Optimization for calling handler scripts. file: [d4cd61e7fa] check-in: [46291ef738] user: rolf branch: trunk, size: 137509
2003-09-14
01:16
Included 0.7.8 fixes from the rel-0-7-branch file: [7631c91ce6] check-in: [63b1313111] user: rolf branch: trunk, size: 133019
00:17
Added cget method implementation for all parser options with the exceptions of -namespace, -useForeignDTD and -paramentityparsing. Revamped behind the scene code for handling of the -elementstartcommand, -elementendcommand and -characterdatacommand options. Up to now, the arguments to this options must have been the name of an already defined tcl proc. This allowed a special high performance calling of that procs. The new code behaves exactly the same way for every script, which worked with previous versions. Additionally it allows, to specify a not already defined tcl proc and, probably more important, allows 'arbitrary' tcl scripts as argument to that options. All in this checkin in the work of Harry Moreau (hmoreau@online.ie). Many thanks for this contribution. file: [e02830a8d3] check-in: [2117d656ff] user: rolf branch: trunk, size: 133019
2003-07-06
22:36
Fixed bug in the subtree skipping feature of event handlers. Should be merged with HEAD. file: [d187ceef04] check-in: [d21e076a81] user: rolf branch: rel-0-7-branch, size: 119061
2003-05-16
11:52
Switched to use XML_ParserCreate_MM(), to be able (at tDOM build time) to make the expat parser use custom *alloc/free() functions (macro MEM_SUITE in dom.h). For TCL_MEM_DEBUG and NS_AOLSERVER builds the mem functions, used by the parser default now to Tcl_Alloc()/Tcl_Realloc()/Tcl_Free(). Switched to XML_FreeContentModel(), for freeing stored element content models. file: [c42fe2f39a] check-in: [9afca81854] user: rolf branch: trunk, size: 118813
2003-04-09
20:05
Fixed a bug in the value parsing of the -paramentityparsing option. file: [e08727e8e2] check-in: [34abc1809a] user: rolf branch: trunk, size: 119061
2003-04-05
17:46
Bug fix: If the parsing state is already not TCL_OK return in the notstandalonehandler immediately success, otherwise the error msg will be overwritten with a false diagnostic. A few editorial changes. file: [b82c1af8cd] check-in: [8cecf9b419] user: rolf branch: trunk, size: 119040
2003-03-19
13:52
Added option -useForeignDTD to dom parse and expat. file: [98e58998ee] check-in: [10d8023a21] user: rolf branch: trunk, size: 118985
2003-02-22
21:01
Better eContents cleanup. Bug fix: of course we have to call the parserResetProcs of the registered C handler sets while reseting the expat parser command. file: [8b9f2c9ff7] check-in: [155f101390] user: rolf branch: trunk, size: 118241
2003-01-11
00:21
Editorial change (Typo in comment). file: [1849f2380a] check-in: [43b3931c21] user: rolf branch: trunk, size: 117162
2002-10-31
00:31
Corrected text of an error msg. file: [59ef95feef] check-in: [ab30ad2ee4] user: rolf branch: trunk, size: 117161
2002-09-08
20:10
mpatrol'ed and valgrind'ed the tests and fixed a closed a few memory leaks. file: [5920f376d9] check-in: [1f8a0f0d11] user: rolf branch: trunk, size: 117163
2002-09-06
21:20
Fix. file: [070347c4ee] check-in: [711bc77d57] user: rolf branch: trunk, size: 117018
2002-09-01
00:05
Fixed a couple of bugs related too the usage of multiple tcl scripted handler sets and the tdom command. See stackedhdl.test. file: [25e598f172] check-in: [399d6e7a5b] user: rolf branch: trunk, size: 117018
2002-07-28
08:27
Moved to new memory allocation macros. file: [d4febc4e5b] check-in: [6eb6a47711] user: zoran branch: trunk, size: 116544
2002-07-17
01:34
Fixed both a memory leak and seg fault problem (depending on circumstances). file: [138577ab8c] check-in: [f8d7ad35d7] user: rolf branch: trunk, size: 116559
2002-07-03
13:47
Cosmetic changes, to pacify some compilers (compile warnings). file: [fade191e6b] check-in: [791f0f1c94] user: rolf branch: trunk, size: 116507
2002-07-02
22:52
Fixed a compilation error on AIX. file: [74c2baf09d] check-in: [e8d68632ba] user: rolf branch: trunk, size: 117714
19:25
Fixed references to CONS'ified Tcl API (8.4 and later) Also, fixed (disappeared) NODE_NO references which broke the threaded build (mainly in the dom.c) file: [6ced18a20d] check-in: [cf121768d4] user: zoran branch: trunk, size: 117715
2002-06-20
12:58
fixed compile warnings file: [e41789d04a] check-in: [2ea744e7bd] user: loewerj branch: trunk, size: 117683
2002-06-02
06:36
Added thread safety with capability of sharing DOM trees between threads and ability to read/write-lock DOM documents file: [9abbd41c60] check-in: [7077725403] user: zoran branch: trunk, size: 117655
2002-05-22
16:40
Fixed a memory leak (handling of element content models). file: [d1cc997b43] check-in: [6b68d7b876] user: rolf branch: trunk, size: 117269
2002-03-01
01:16
Changed behavior of [<parserObj> parse <data>] and [<parserObj> parsechannel <Tcl channel>]. The method 'parse' now uses Tcl_GetStringFromObj(), the method 'parsechannel' now respects the encoding of the channel. file: [d8a3bcd6d3] check-in: [7f6fbcaa63] user: rolf branch: trunk, size: 116885
2002-02-23
01:13
Some code tweaking for a mostly warning free MS build file: [d92a1ba340] check-in: [64a4af89f8] user: rolf branch: trunk, size: 115776
2002-02-22
01:05
Initial revision file: [8e2938794d] check-in: [98cd4affb5] user: rolf branch: trunk, size: 115826 Added