Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | (buffer): Initialise error to OKHEADmaster | Daniel Silverstone | 2022-11-27 | 1 | -1/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | (buffer): Add parserutils_buffer_appendv() | Daniel Silverstone | 2022-11-26 | 2 | -0/+35 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | (gitignore): Ignore aliases.inc | Daniel Silverstone | 2022-11-26 | 1 | -0/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Endian: Improve host endian detection for older GCCs. | Michael Drake | 2022-03-24 | 1 | -2/+2 |
| | | | | Co-authored-by: John-Mark Bell <jmb@netsurf-browser.org> | ||||
* | Buffer: Optimise to minimise memmove shuffles. | Michael Drake | 2021-05-16 | 2 | -16/+71 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the data in the linear buffer was always stored at the start of the allocation, pointed to by `buffer->data`. This was achieved by memmoving every time data was consumed from the front. Now the allocation is pointed to by `buffer->alloc`, and the start of the data is pointed to by `buffer->data` (as before). This means client code does not need to change to get at the data. The advantage comes when we discard the from the start of the buffer, when some data is consumed. We now simply advance the data pointer by the number of bytes to be discarded, and reduce the buffer length by the same amount. If the used portion of the buffer now fits between the start of the allocation and the current start of the data, it is memcpyed to the allocation start, otherwise it is left alone. This is a significant optimisation when the size of the chunk is large, such as when loading from disc. (When the first (only) "chunk" is just the whole file. | ||||
* | Update componnet version for releaserelease/0.2.4 | Vincent Sanders | 2018-08-22 | 1 | -1/+1 |
| | |||||
* | Tests: Fix memory leak. | Michael Drake | 2018-07-28 | 1 | -0/+1 |
| | |||||
* | Tests: Fix read before start of unused expected buffer. | Michael Drake | 2018-07-28 | 1 | -1/+1 |
| | |||||
* | Update component version for releaserelease/0.2.3 | Vincent Sanders | 2016-02-16 | 1 | -1/+1 |
| | |||||
* | make unused variable macro more portable | Vincent Sanders | 2016-02-06 | 1 | -1/+1 |
| | |||||
* | Update Component version for releaserelease/0.2.2 | Vincent Sanders | 2015-12-18 | 1 | -2/+2 |
| | |||||
* | Update CFLAGS to avoid deprication warning for glibc 2.21 and later. | Vincent Sanders | 2015-03-21 | 1 | -2/+9 |
| | |||||
* | Fix include directories for Haiku. | Adrien Destugues | 2015-03-21 | 2 | -5/+5 |
| | |||||
* | Update the component version for releaserelease/0.2.1 | Vincent Sanders | 2015-03-08 | 1 | -1/+1 |
| | |||||
* | Fix up for new buildsystem | John-Mark Bell | 2014-11-16 | 1 | -1/+1 |
| | |||||
* | Update component version for releaserelease/0.2.0 | Vincent Sanders | 2014-04-18 | 1 | -1/+1 |
| | |||||
* | Fix memmove beyond buffer length in parserutlis_buffer_discard. Thanks to ↵ | Michael Drake | 2014-03-28 | 1 | -1/+1 |
| | | | | Elie Roudninski. | ||||
* | Add test for memmove beyond buffer length, in parserutils_buffer_discard. | Michael Drake | 2014-03-28 | 3 | -1/+71 |
| | |||||
* | Replace use of abort() with assertions. | John-Mark Bell | 2014-01-13 | 7 | -36/+21 |
| | |||||
* | Fix non-iconv build. | John-Mark Bell | 2014-01-13 | 1 | -2/+1 |
| | |||||
* | add support for multilib | David Tardon | 2014-01-13 | 2 | -3/+3 |
| | | | | Signed-off-by: John-Mark Bell <jmb@netsurf-browser.org> | ||||
* | Fix bounds checking. Fixes CID 1152178, 1152179. | John-Mark Bell | 2014-01-12 | 2 | -2/+2 |
| | |||||
* | Fix leak. Thanks to Ralf Junker. | Michael Drake | 2014-01-10 | 1 | -1/+6 |
| | |||||
* | Remove client allocation function. | Michael Drake | 2013-12-14 | 28 | -223/+72 |
| | |||||
* | Don't use the nonportable alloca() during tests. | Anthony J. Bentley | 2013-04-27 | 4 | -10/+30 |
| | |||||
* | update component version for releaserelease/0.1.2 | Vincent Sanders | 2013-04-19 | 1 | -1/+1 |
| | |||||
* | add a .gitattributes so .gitignore is not exported | Vincent Sanders | 2013-04-18 | 1 | -0/+2 |
| | |||||
* | Fix input insertion. | Vincent Sanders | 2012-07-05 | 1 | -1/+1 |
| | | | | The gap in teh input was being created at the wrong insertion point! | ||||
* | add simple insert test when an a is found in teh input stream | Vincent Sanders | 2012-07-05 | 1 | -0/+5 |
| | |||||
* | Update to new NSBUILD infrastructure | Daniel Silverstone | 2012-06-29 | 9 | -11/+13 |
| | | | | svn path=/trunk/libparserutils/; revision=14003 | ||||
* | Remove unused origlen so tests run | Daniel Silverstone | 2012-06-29 | 1 | -2/+2 |
| | | | | svn path=/trunk/libparserutils/; revision=14001 | ||||
* | Basic gitignore | Daniel Silverstone | 2012-06-04 | 1 | -0/+3 |
| | | | | svn path=/trunk/libparserutils/; revision=13948 | ||||
* | Remove dead allocation which also isn't even usefully documenting | Daniel Silverstone | 2012-03-25 | 1 | -1/+0 |
| | | | | svn path=/trunk/libparserutils/; revision=13672 | ||||
* | Fix iconv disablement documentation | John Mark Bell | 2012-01-12 | 1 | -1/+1 |
| | | | | svn path=/trunk/libparserutils/; revision=13402 | ||||
* | Bump version number | John Mark Bell | 2011-09-18 | 1 | -1/+1 |
| | | | | svn path=/trunk/libparserutils/; revision=12813 | ||||
* | Actually handle byte order marks in streams marked as utf16 or utf32 | John Mark Bell | 2011-07-19 | 1 | -13/+48 |
| | | | | svn path=/trunk/libparserutils/; revision=12608 | ||||
* | Require iconv by default, as this is the most useful configuration | John Mark Bell | 2011-04-21 | 4 | -28/+22 |
| | | | | svn path=/trunk/libparserutils/; revision=12215 | ||||
* | Bump version number | John Mark Bell | 2011-04-07 | 1 | -1/+1 |
| | | | | svn path=/trunk/libparserutils/; revision=12162 | ||||
* | Given that some iconv() implementations define the input buffer pointer to ↵ | John Mark Bell | 2011-03-09 | 1 | -2/+2 |
| | | | | | | be a pointer to a pointer to const data, and some don't, hack around the issue by casting to void * svn path=/trunk/libparserutils/; revision=11950 | ||||
* | Internalise the internal symbol names. | Daniel Silverstone | 2011-01-26 | 10 | -64/+64 |
| | | | | svn path=/trunk/libparserutils/; revision=11493 | ||||
* | Fix profile and coverage targets | John Mark Bell | 2010-12-06 | 1 | -1/+3 |
| | | | | svn path=/trunk/libparserutils/; revision=11022 | ||||
* | Remove spurious assignment | John Mark Bell | 2010-12-05 | 1 | -1/+1 |
| | | | | svn path=/trunk/libparserutils/; revision=11015 | ||||
* | C89 | François Revel | 2010-12-05 | 1 | -1/+4 |
| | | | | svn path=/trunk/libparserutils/; revision=11013 | ||||
* | Remove Aliases file. | Michael Drake | 2010-12-04 | 1 | -302/+0 |
| | | | | svn path=/trunk/libparserutils/; revision=10984 | ||||
* | Remove Aliases file from test harnesses | John Mark Bell | 2010-12-04 | 10 | -40/+30 |
| | | | | svn path=/trunk/libparserutils/; revision=10979 | ||||
* | Sync Aliases file with hubbub | John Mark Bell | 2010-12-04 | 1 | -1/+2 |
| | | | | svn path=/trunk/libparserutils/; revision=10974 | ||||
* | Make sure we elide trailing non-characters when matching aliases | Daniel Silverstone | 2010-12-04 | 2 | -0/+12 |
| | | | | svn path=/trunk/libparserutils/; revision=10973 | ||||
* | Remove init/final code and turn aliases into static data structure. r=vince | Daniel Silverstone | 2010-12-04 | 27 | -721/+207 |
| | | | | svn path=/trunk/libparserutils/; revision=10961 | ||||
* | Sprinkle some C++ scoping around | John Mark Bell | 2010-10-23 | 12 | -0/+108 |
| | | | | svn path=/trunk/libparserutils/; revision=10901 | ||||
* | Fix bug where any encoding specified when creating an input stream would be ↵ | John Mark Bell | 2010-10-23 | 1 | -8/+18 |
| | | | | | | | | replaced by UTF-8 if there was no charset detection callback provided, too. Tidy up the logic in this area, and add more commentary so it's clear. svn path=/trunk/libparserutils/; revision=10899 |