Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | treebuilder: Fix debug build variant with new element_type_to_name(). | Michael Drake | 2021-05-27 | 3 | -19/+27 |
| | | | | This uses the gperf-generated wordlist. | ||||
* | treebuilder: Add global table option to allow reuse of wordlist. | Michael Drake | 2021-05-27 | 1 | -0/+1 |
| | |||||
* | treebuilder: Return to running gperf at build time. | Michael Drake | 2021-05-27 | 5 | -728/+45 |
| | | | | Now we include the generated C file directly, in a new C file. | ||||
* | treebuilder: Include generated element type lookup source. | Michael Drake | 2021-05-24 | 2 | -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 Drake | 2021-05-24 | 1 | -2/+2 |
| | |||||
* | Treebuilder: Allow element_type_from_name to be inlined. | Michael Drake | 2021-05-15 | 3 | -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 Drake | 2021-05-15 | 5 | -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 Drake | 2020-05-22 | 3 | -15/+28 |
| | |||||
* | Treebuilder: Reorganise name_type_map[] src to be easier to change. | Michael Drake | 2020-05-22 | 1 | -48/+96 |
| | |||||
* | treebuilder: Add some asserts to hopefully quieten scan-build | Daniel Silverstone | 2020-02-21 | 1 | -4/+10 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Consume insert_buf when resuming a parse | Daniel Silverstone | 2019-05-06 | 1 | -0/+18 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Support falling back to space separated charset | Daniel Silverstone | 2017-09-09 | 1 | -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 portable | Vincent Sanders | 2016-02-06 | 1 | -1/+1 |
| | |||||
* | Fix doxygen warnings | Vincent Sanders | 2015-09-01 | 3 | -6/+6 |
| | |||||
* | Fix up for new buildsystem. Remove unused compat hacks. | John-Mark Bell | 2014-11-16 | 1 | -13/+0 |
| | |||||
* | strncasecmp definition is in strings.h which was not being included | Vincent Sanders | 2014-09-04 | 2 | -0/+2 |
| | |||||
* | Remove client allocation function and update for new lpu API. | Michael Drake | 2013-12-14 | 7 | -85/+47 |
| | |||||
* | Fix uninitialised pause variable | Vincent Sanders | 2012-07-13 | 1 | -0/+2 |
| | |||||
* | Add ability to pause tokenisation | Vincent Sanders | 2012-07-10 | 4 | -2/+42 |
| | |||||
* | Remove unused and unneeded extraneous_chunk API | Vincent Sanders | 2012-07-07 | 1 | -35/+0 |
| | |||||
* | Insert data at correct point in input stream. | John-Mark Bell | 2012-07-05 | 3 | -8/+51 |
| | |||||
* | Only call script complete callback if scripting is enabled | Vincent Sanders | 2012-07-05 | 1 | -1/+2 |
| | |||||
* | Add Script complete callback | Vincent Sanders | 2012-07-05 | 3 | -1/+18 |
| | |||||
* | add hubbub_parser_insert_chunk | Vincent Sanders | 2012-07-03 | 1 | -0/+27 |
| | |||||
* | Update to new NSBUILD infrastructure | Daniel Silverstone | 2012-06-29 | 5 | -5/+5 |
| | | | | svn path=/trunk/hubbub/; revision=14006 | ||||
* | Fix handling of xmlns attributes on foreign content root elements | John Mark Bell | 2011-10-27 | 1 | -2/+3 |
| | | | | svn path=/trunk/hubbub/; revision=13083 | ||||
* | Fix build with GCC 4.6 | John Mark Bell | 2011-07-26 | 17 | -179/+68 |
| | | | | svn path=/trunk/hubbub/; revision=12628 | ||||
* | Fix profile and coverage targets | John Mark Bell | 2010-12-06 | 1 | -1/+3 |
| | | | | svn path=/trunk/hubbub/; revision=11021 | ||||
* | Remove init/final and embed entity trie at build time. r=vince | Daniel Silverstone | 2010-12-04 | 9 | -2540/+78 |
| | | | | svn path=/trunk/hubbub/; revision=10976 | ||||
* | Make locale-agnostic | John Mark Bell | 2009-07-12 | 1 | -2/+13 |
| | | | | svn path=/trunk/hubbub/; revision=8474 | ||||
* | Hand off comparison to utility string comparisons. | John Mark Bell | 2009-07-12 | 1 | -1/+2 |
| | | | | svn path=/trunk/hubbub/; revision=8473 | ||||
* | Fix string comparisons. | John Mark Bell | 2009-07-12 | 2 | -34/+7 |
| | | | | svn path=/trunk/hubbub/; revision=8472 | ||||
* | Better guard for the Norcroft hackery. | John Mark Bell | 2009-07-02 | 1 | -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 Bell | 2009-06-20 | 3 | -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 Bell | 2009-05-27 | 1 | -3/+3 |
| | | | | svn path=/trunk/hubbub/; revision=7583 | ||||
* | Make assignment of doctype component pointers clearer. Also removes a ↵ | John Mark Bell | 2009-05-27 | 1 | -9/+6 |
| | | | | | | redundant pointer increment. svn path=/trunk/hubbub/; revision=7581 | ||||
* | Remove redundant code. | John Mark Bell | 2009-05-27 | 1 | -13/+0 |
| | | | | svn path=/trunk/hubbub/; revision=7580 | ||||
* | Initialise variables to stop GCC 4.4 complaining (credit: Jeroen Habraken) | John Mark Bell | 2009-05-05 | 1 | -4/+4 |
| | | | | svn path=/trunk/hubbub/; revision=7398 | ||||
* | Lose trailing commas. | John Mark Bell | 2009-04-15 | 3 | -3/+3 |
| | | | | | | GCC 2.95 compatibility. svn path=/trunk/hubbub/; revision=7095 | ||||
* | Merged revisions 7071-7082 via svnmerge from | John Mark Bell | 2009-04-15 | 2 | -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 trunk | John Mark Bell | 2009-04-15 | 24 | -788/+1338 |
| | | | | svn path=/trunk/hubbub/; revision=7082 | ||||
* | Improve error handling in the tokeniser | John Mark Bell | 2009-04-06 | 1 | -62/+154 |
| | | | | svn path=/trunk/hubbub/; revision=7052 | ||||
* | Remove hubbub_parser_parse_extraneous_chunk -- this is not supported yet. ↵ | John Mark Bell | 2009-04-04 | 1 | -0/+2 |
| | | | | | | Surround implementation with #if 0 pending its reintroduction svn path=/trunk/hubbub/; revision=7045 | ||||
* | Constify | John Mark Bell | 2009-04-04 | 1 | -2/+2 |
| | | | | svn path=/trunk/hubbub/; revision=7044 | ||||
* | hubbub_alloc -> hubbub_allocator_fn | John Mark Bell | 2009-04-04 | 11 | -18/+22 |
| | | | | svn path=/trunk/hubbub/; revision=7043 | ||||
* | Move hubbub_error_from_string into testutils.h and remove it from the library. | John Mark Bell | 2009-04-04 | 1 | -25/+0 |
| | | | | svn path=/trunk/hubbub/; revision=7041 | ||||
* | First cut at porting hubbub's buildsystem to the core tools | John Mark Bell | 2009-03-24 | 5 | -225/+10 |
| | | | | svn path=/trunk/hubbub/; revision=6837 | ||||
* | Fix typo | John Mark Bell | 2009-03-11 | 1 | -1/+1 |
| | | | | svn path=/trunk/hubbub/; revision=6770 | ||||
* | Fix form association. It kinda helps to associate the form-related object, ↵ | John Mark Bell | 2009-03-10 | 1 | -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 spec | John Mark Bell | 2009-03-10 | 19 | -563/+528 |
| | | | | svn path=/trunk/hubbub/; revision=6764 |