summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken error checking and return in hubbub_parser_completed.John Mark Bell2009-06-203-53/+67
| | | | | | | | Avoid potentially broken passing of address of an enum where uint32_t * is expected. Pedantic casting for Norcroft. Particularly ugly #ifdef __CC_NORCROFT in utils.h to ensure we have a strncasecmp implementation with that compiler/libraries. svn path=/trunk/hubbub/; revision=7892
* Fix use of uninitialised variable caused by braindead variable naming.John Mark Bell2009-05-271-3/+3
| | | | svn path=/trunk/hubbub/; revision=7583
* Make assignment of doctype component pointers clearer. Also removes a ↵John Mark Bell2009-05-271-9/+6
| | | | | | redundant pointer increment. svn path=/trunk/hubbub/; revision=7581
* Remove redundant code.John Mark Bell2009-05-271-13/+0
| | | | svn path=/trunk/hubbub/; revision=7580
* Initialise variables to stop GCC 4.4 complaining (credit: Jeroen Habraken)John Mark Bell2009-05-051-4/+4
| | | | svn path=/trunk/hubbub/; revision=7398
* Lose trailing commas.John Mark Bell2009-04-153-3/+3
| | | | | | GCC 2.95 compatibility. svn path=/trunk/hubbub/; revision=7095
* Merged revisions 7071-7082 via svnmerge from John Mark Bell2009-04-152-262/+278
| | | | | | | | | | | | | | | | svn://source.netsurf-browser.org/branches/jmb/hubbub-errors ........ r7077 | jmb | 2009-04-15 11:32:43 +0100 (Wed, 15 Apr 2009) | 2 lines Don't bother attempting to allow restarting the parser after an error in the treebuilder. It's far too complicated. ........ r7078 | jmb | 2009-04-15 11:46:12 +0100 (Wed, 15 Apr 2009) | 2 lines Document what should happen in exceptional circumstances ........ svn path=/trunk/hubbub/; revision=7083
* Manually merge r7070 into trunkJohn Mark Bell2009-04-1524-788/+1338
| | | | svn path=/trunk/hubbub/; revision=7082
* Improve error handling in the tokeniserJohn Mark Bell2009-04-061-62/+154
| | | | svn path=/trunk/hubbub/; revision=7052
* Remove hubbub_parser_parse_extraneous_chunk -- this is not supported yet. ↵John Mark Bell2009-04-041-0/+2
| | | | | | Surround implementation with #if 0 pending its reintroduction svn path=/trunk/hubbub/; revision=7045
* ConstifyJohn Mark Bell2009-04-041-2/+2
| | | | svn path=/trunk/hubbub/; revision=7044
* hubbub_alloc -> hubbub_allocator_fnJohn Mark Bell2009-04-0411-18/+22
| | | | svn path=/trunk/hubbub/; revision=7043
* Move hubbub_error_from_string into testutils.h and remove it from the library.John Mark Bell2009-04-041-25/+0
| | | | svn path=/trunk/hubbub/; revision=7041
* First cut at porting hubbub's buildsystem to the core toolsJohn Mark Bell2009-03-245-225/+10
| | | | svn path=/trunk/hubbub/; revision=6837
* Fix typoJohn Mark Bell2009-03-111-1/+1
| | | | svn path=/trunk/hubbub/; revision=6770
* Fix form association. It kinda helps to associate the form-related object, ↵John Mark Bell2009-03-101-3/+2
| | | | | | rather than whatever happens to be on the top of the stack at the time. svn path=/trunk/hubbub/; revision=6768
* Sync treebuilder with specJohn Mark Bell2009-03-1019-563/+528
| | | | svn path=/trunk/hubbub/; revision=6764
* Sync tokeniser tests with html5lib.John Mark Bell2009-03-101-12/+19
| | | | | | | | Sync tokeniser implementation with the spec. Fix handling of \0 in the tag open state. The unicodeCharacters test is disabled, as json-c doesn't like it. svn path=/trunk/hubbub/; revision=6755
* Fix bug 2673645John Mark Bell2009-03-091-2/+5
| | | | | | <form><option>foo</option></form> => abort. svn path=/trunk/hubbub/; revision=6746
* Actually associate textareas with formsJohn Mark Bell2009-02-201-7/+10
| | | | svn path=/trunk/hubbub/; revision=6578
* Convert UTF-16 meta charsets to UTF-8, given we'll have auto-detected them ↵John Mark Bell2009-01-231-26/+31
| | | | | | as UTF-8 in the chardet stage. (Credit: Andi Sidwell) svn path=/trunk/hubbub/; revision=6180
* And another one. Now warning free. Huzzah.John Mark Bell2009-01-081-0/+1
| | | | svn path=/trunk/hubbub/; revision=6000
* Add documentation from a couple of missing parametersJohn Mark Bell2009-01-081-2/+4
| | | | svn path=/trunk/hubbub/; revision=5999
* And some moreJohn Mark Bell2009-01-082-3/+3
| | | | svn path=/trunk/hubbub/; revision=5998
* Squash more doxygen warnings. Don't use html tags in comments, folks.John Mark Bell2009-01-081-25/+23
| | | | svn path=/trunk/hubbub/; revision=5997
* Make doxygen produce API documentation. I guess it helps if you enable the ↵John Mark Bell2009-01-082-2/+2
| | | | | | | | right options. Fix a couple more doxygen warnings. svn path=/trunk/hubbub/; revision=5996
* Use doxygen to create API documentation.John Mark Bell2009-01-087-31/+53
| | | | | | Add a bunch of extra commentary to stop doxygen warning. svn path=/trunk/hubbub/; revision=5994
* Ok, let's actually compile the code before committing it.John Mark Bell2009-01-061-0/+1
| | | | svn path=/trunk/hubbub/; revision=5971
* Some kind of recovery from not supporting an auto-detected charset. We fall ↵John Mark Bell2009-01-062-2/+33
| | | | | | | | | | | back to Windows-1252 and hope for the best. Note that this only occurs when autodetecting. If the client has specified a charset, they get told about it immediately and get to decide what to do about it. If a meta charset is encountered after a successful autodetection, the client is informed in the usual way. As this requires the client to throw out the parser and start afresh, specifying the meta charset as the one to use, there's no problem as, again, the client will be informed immediately in that case. All of this ensures that charset autodetection is pretty well transparent as far as the client application is concerned. svn path=/trunk/hubbub/; revision=5970
* Fix potential read beyond available input data when processing \r in some ↵John Mark Bell2009-01-061-5/+5
| | | | | | | | | | states. What happened was that, given \rabc, we would advance past the \r, then read at current_offset + len (len == 1). I.E. read 'b' instead of 'a'. If the data in the inputstream's internal buffer happened to end immediately after the \r, then we'd read past the end of the buffer thanks to a bug in lpu_inputstream_peek which was fixed in r5965. In any case, we'd still be looking at the wrong character when looking for CRLF pairs. All regression tests now pass again. svn path=/trunk/hubbub/; revision=5967
* Port to changed lpu API.John Mark Bell2009-01-063-458/+637
| | | | | | | Drop HUBBUB_OOD and just use HUBBUB_NEEDDATA, instead. Currently aborts in bogus comment handling if it encounters a \r at the end of the inputstream's utf-8 buffer. svn path=/trunk/hubbub/; revision=5966
* Fix build breakageJohn Mark Bell2008-11-301-1/+3
| | | | svn path=/trunk/hubbub/; revision=5851
* lotsa C89, please check.François Revel2008-11-301-48/+91
| | | | svn path=/trunk/hubbub/; revision=5846
* Fix wrong prototype.François Revel2008-11-301-1/+1
| | | | svn path=/trunk/hubbub/; revision=5845
* C89François Revel2008-11-301-2/+5
| | | | svn path=/trunk/hubbub/; revision=5844
* C89François Revel2008-11-307-46/+58
| | | | svn path=/trunk/hubbub/; revision=5843
* Fix commentaryJohn Mark Bell2008-11-091-2/+3
| | | | svn path=/trunk/hubbub/; revision=5668
* Convert PARSERUTILS_BADENCODING into HUBBUB_BADENCODINGJohn Mark Bell2008-11-092-0/+5
| | | | svn path=/trunk/hubbub/; revision=5667
* Return errors from parser constructor/destructor. This changes the public API.John Mark Bell2008-11-091-27/+35
| | | | svn path=/trunk/hubbub/; revision=5666
* Return errors from treebuilder constructor/destructorJohn Mark Bell2008-11-093-22/+32
| | | | svn path=/trunk/hubbub/; revision=5665
* Return errors from tokeniser constructor/destructorJohn Mark Bell2008-11-093-19/+30
| | | | svn path=/trunk/hubbub/; revision=5664
* Return errors from dictionary constructor/destructor.John Mark Bell2008-11-094-22/+32
| | | | | | Fix commentary copied from libcss svn path=/trunk/hubbub/; revision=5663
* Port hubbub to new lpu APIJohn Mark Bell2008-11-082-5/+7
| | | | svn path=/trunk/hubbub/; revision=5656
* Fixup dubious charsetsJohn Mark Bell2008-10-144-3/+26
| | | | svn path=/trunk/hubbub/; revision=5575
* Report errors from libparserutils better.Andrew Sidwell2008-09-243-3/+49
| | | | svn path=/trunk/hubbub/; revision=5431
* Ensure we unref collect node if it still exists when we come to destroy the ↵John Mark Bell2008-09-181-0/+6
| | | | | | | | | treebuilder (this can occur if EOF is encountered when in generic_rcdata/script_collect modes). Note that the spec has since changed here, so we'll need to resync, anyway. This is simply to ensure the testsuite passes once more. svn path=/trunk/hubbub/; revision=5374
* Lose redundant todosJohn Mark Bell2008-09-082-5/+0
| | | | svn path=/trunk/hubbub/; revision=5290
* Squash memory leakJohn Mark Bell2008-09-081-0/+2
| | | | svn path=/trunk/hubbub/; revision=5285
* Fix build failures. Quite how these were missed before, I don't know.John Mark Bell2008-09-073-0/+11
| | | | svn path=/trunk/hubbub/; revision=5277
* Native RO buildsystem. Beware of the NOP.John Mark Bell2008-09-071-2/+2
| | | | svn path=/trunk/hubbub/; revision=5275