summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update component version for releaseHEADrelease/0.3.8masterVincent Sanders2023-12-271-1/+1
|
* tests/tokenizer[23]: fix handling of CHARACTER tokensJohn-Mark Bell2023-09-162-4/+4
| | | | | | | | | | Where a CHARACTER token is emitted but the expected data is shorter than the data in the token, we want to consume the expected data and then process the remaining token data as if it were emitted separately. Sadly this didn't happen as we never initialised the replacement token correctly. Make this so, and also tell the compiler that the recursive call is actually a tail call so it can optimise it appropriately.
* 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.
* Perf tester: Optimise tree node data structure with last child pointer.Michael Drake2021-05-151-37/+49
| | | | | | | | | | | | For loading the html5 single page spec: * This reduces append_child callback self time from 21% to 0.6% of total runtime. * Total instruction fetch cost is reduced from 7,085,287,214 to 5,652,755,136. This makes it more useful for observing where hubbub itself is slow, rather than the tester's simple treebuilder implementation.
* Tests: Squash comparison of signed vs unsigned warnings.Michael Drake2021-05-152-8/+8
|
* Tests: libjson-c does not provide is_error any more.Michael Drake2021-05-152-2/+2
|
* Perf tester: Add sample build commands and clean target.Michael Drake2021-05-131-0/+12
|
* Perf tester: Hubbub doesn't support client allocation callback now.Michael Drake2021-05-131-9/+1
|
* Perf tester: Remove bogus library initialisation/finalisation calls.Michael Drake2021-05-131-9/+4
|
* Perf tester: Add change_encoding stub to tree callbacks.Michael Drake2021-05-131-0/+10
|
* Perf tester: Tree handler callbacks return hubbub_error, not int.Michael Drake2021-05-131-51/+51
|
* Perf tester: Squash duplicate const qualifier warning.Michael Drake2021-05-131-1/+1
|
* Example: Add sample build instructions.Michael Drake2021-05-131-0/+6
|
* Example: Add debugXML.h for xmlDebugDumpDocument().Michael Drake2021-05-131-0/+1
|
* Move makefiles that break main build on case-insensitive filesystems.Michael Drake2021-05-122-0/+0
|
* Update component version to 0.3.7 for releaserelease/0.3.7Vincent Sanders2020-05-241-2/+2
| | | | Signed-off-by: Vincent Sanders <vince@kyllikki.org>
* 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>
* Update Component version for releaserelease/0.3.6Vincent Sanders2019-06-261-1/+1
|
* Consume insert_buf when resuming a parseDaniel Silverstone2019-05-061-0/+18
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Update component version for releaserelease/0.3.5Vincent Sanders2018-08-221-1/+1
|
* Tests: Squash leaked chunks allocations.Michael Drake2018-07-281-0/+1
|
* Tests: Squash leak of hubbub parser.Michael Drake2018-07-281-2/+12
| | | | Found by address sanitizer.
* Tests: Fix passing NULL to qsort.Michael Drake2018-07-281-3/+6
| | | | test/tree2.c:882:3: runtime error: null pointer passed as argument 1, which is declared to never be null
* Tests: Squash json object leak in tests.Michael Drake2018-07-281-0/+2
|
* Tests: Squash implicit fallthrough error.Michael Drake2018-07-281-0/+1
| | | | test/tree2.c:239:10: error: this statement may fall through [-Werror=implicit-fallthrough=]
* Update component version for releaserelease/0.3.4Vincent Sanders2017-10-131-1/+1
|
* 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
* Update component version for releaserelease/0.3.3Vincent Sanders2016-02-161-1/+1
|
* make unused variable macro more portableVincent Sanders2016-02-061-1/+1
|
* Update Component version for releaserelease/0.3.2Vincent Sanders2015-12-181-2/+2
|
* Fix doxygen warningsVincent Sanders2015-09-015-8/+7
|
* Update doxygen config ready for automatic document generationVincent Sanders2015-06-243-1859/+1065
|
* Update CFLAGS to avoid deprication warning for glibc 2.21 and later.Vincent Sanders2015-03-221-2/+10
|
* The json library used for tests has changed name.Anthony J. Bentley2015-03-211-4/+4
| | | | Closes #2191
* Fix include dirs for Haiku.Adrien Destugues2015-03-212-2/+2
|
* Update the component version for releaserelease/0.3.1Vincent Sanders2015-03-081-1/+1
|
* Fix up for new buildsystem. Remove unused compat hacks.John-Mark Bell2014-11-162-15/+2
|
* strncasecmp definition is in strings.h which was not being includedVincent Sanders2014-09-042-0/+2
|
* Update component version for releaserelease/0.3.0Vincent Sanders2014-04-181-1/+1
|
* add support for multilibDavid Tardon2014-01-132-3/+3
| | | | Signed-off-by: John-Mark Bell <jmb@netsurf-browser.org>
* Remove client allocation function and update for new lpu API.Michael Drake2013-12-1417-207/+59
|
* Correct various warnings in the test suiteCraig Barnes2013-05-046-14/+14
|