summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* treebuilder: Fix debug build variant with new element_type_to_name().Michael Drake2021-05-273-19/+27
| | | | This uses the gperf-generated wordlist.
* treebuilder: Add global table option to allow reuse of wordlist.Michael Drake2021-05-271-0/+1
|
* treebuilder: Return to running gperf at build time.Michael Drake2021-05-275-728/+45
| | | | Now we include the generated C file directly, in a new C file.
* treebuilder: Include generated element type lookup source.Michael Drake2021-05-242-7/+706
| | | | | | | | | Previously this source was generated at build time, however there was variance in the versions of gperf on all the platforms that we support. The comment at the top of the generated source file contains a command that can be used to regenerate it manually.
* tokeniser: Constify token through hubbub_tokeniser_emit_token().Michael Drake2021-05-241-2/+2
|
* Treebuilder: Allow element_type_from_name to be inlined.Michael Drake2021-05-153-26/+26
| | | | | | | | Now it is mostly a wrapper for the gperf-generated hubbub_element_type_lookup. This reduces total instruction fetch cost from 4,523,112,517 to 4,511,919,445.
* Treebuilder: Massively optimise element type from name with gperf.Michael Drake2021-05-155-161/+194
| | | | | | | | | | Loading the html5 single page spec: * We were spending 10.81% of total runtime in element_type_from_name. Now it takes 0.66% of total runtime. * Total instruction fetch cost is reduced from 5,660,475,511 to 4,523,112,517.
* Treebuilder: Add some new element names.Michael Drake2020-05-223-15/+28
|
* Treebuilder: Reorganise name_type_map[] src to be easier to change.Michael Drake2020-05-221-48/+96
|
* treebuilder: Add some asserts to hopefully quieten scan-buildDaniel Silverstone2020-02-211-4/+10
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Consume insert_buf when resuming a parseDaniel Silverstone2019-05-061-0/+18
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Support falling back to space separated charsetDaniel Silverstone2017-09-091-2/+17
| | | | | | | | | | | | | | | | In some cases, for example, Apple Mail, programs generate HTML with apallingly bad meta tags such as: <meta content="text/html charset=utf-8"> This is bad because *a* no http-equiv="Content-Type" and *b* because the content type and charset do not have a separating semi-colon. Sadly, Chrome et-al support this, so we need to in Hubbub. This change adjusts the content="" parser to retry if it cannot find a semicolon, and work forwards to first whitespace instead. Fixes: #2549
* make unused variable macro more portableVincent Sanders2016-02-061-1/+1
|
* Fix doxygen warningsVincent Sanders2015-09-013-6/+6
|
* Fix up for new buildsystem. Remove unused compat hacks.John-Mark Bell2014-11-161-13/+0
|
* strncasecmp definition is in strings.h which was not being includedVincent Sanders2014-09-042-0/+2
|
* Remove client allocation function and update for new lpu API.Michael Drake2013-12-147-85/+47
|
* Fix uninitialised pause variableVincent Sanders2012-07-131-0/+2
|
* Add ability to pause tokenisationVincent Sanders2012-07-104-2/+42
|
* Remove unused and unneeded extraneous_chunk APIVincent Sanders2012-07-071-35/+0
|
* Insert data at correct point in input stream.John-Mark Bell2012-07-053-8/+51
|
* Only call script complete callback if scripting is enabledVincent Sanders2012-07-051-1/+2
|
* Add Script complete callbackVincent Sanders2012-07-053-1/+18
|
* add hubbub_parser_insert_chunkVincent Sanders2012-07-031-0/+27
|
* Update to new NSBUILD infrastructureDaniel Silverstone2012-06-295-5/+5
| | | | svn path=/trunk/hubbub/; revision=14006
* Fix handling of xmlns attributes on foreign content root elementsJohn Mark Bell2011-10-271-2/+3
| | | | svn path=/trunk/hubbub/; revision=13083
* Fix build with GCC 4.6John Mark Bell2011-07-2617-179/+68
| | | | svn path=/trunk/hubbub/; revision=12628
* Fix profile and coverage targetsJohn Mark Bell2010-12-061-1/+3
| | | | svn path=/trunk/hubbub/; revision=11021
* Remove init/final and embed entity trie at build time. r=vinceDaniel Silverstone2010-12-049-2540/+78
| | | | svn path=/trunk/hubbub/; revision=10976
* Make locale-agnosticJohn Mark Bell2009-07-121-2/+13
| | | | svn path=/trunk/hubbub/; revision=8474
* Hand off comparison to utility string comparisons.John Mark Bell2009-07-121-1/+2
| | | | svn path=/trunk/hubbub/; revision=8473
* Fix string comparisons.John Mark Bell2009-07-122-34/+7
| | | | svn path=/trunk/hubbub/; revision=8472
* Better guard for the Norcroft hackery.John Mark Bell2009-07-021-5/+11
| | | | | | When building for Windows, replace strncasecmp with calls to _strnicmp svn path=/trunk/hubbub/; revision=8266
* 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