Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Box construction: Don't handle IMAGE specially. | Michael Drake | 2018-12-13 | 1 | -1/+0 |
| | |||||
* | check dom call return and improve handling of missing form type | Vincent Sanders | 2018-10-09 | 1 | -22/+30 |
| | |||||
* | rewrite form_successful_controls_dom as form_dom_to_data | Vincent Sanders | 2018-09-29 | 1 | -556/+883 |
| | | | | | | | | | | | | | | | | | | | | | | | | Trying to reason about error propagation and resource leakage within the form submission code was impossible because of the form_successful_controls_dom function. This function was over six hundred lines long, had twenty six top level local variables and six levels of indent in places. This commit splits it out into thirteen shorter and more obvious functions. The resulting operation is identical except errors are properly propagated (all failures were reported as out of memory) and resource management can be reasoned about. The compiler appears to inline the entirety of the code from form_submit() down excepting a handful of leaf functions. This results in similar code output size as previous implementation. The new implementation has a greater number of variables passed to sub functions than desirable because multiple character sets are required to encode names and values in the multipart data list. However as noted the compiler effectively inlines all these functions so this does not actually become a major problem. | ||||
* | gcc on openbsd is unable to reason about res variable usage and generates ↵ | Vincent Sanders | 2018-09-26 | 1 | -1/+1 |
| | | | | bogus warning | ||||
* | fix url encoding to be compatible with nsurl API changes. | Vincent Sanders | 2018-09-26 | 4 | -152/+165 |
| | | | | | As part of this fix the form submission error handling and reporting has been improved. | ||||
* | allow comments to supress implicit fallthrough warnings | Vincent Sanders | 2018-09-07 | 1 | -1/+1 |
| | |||||
* | HTML: Don't try to finish an HTML document's conversion twice. | Michael Drake | 2018-08-27 | 1 | -0/+16 |
| | |||||
* | remove warning by replacing sprintf snprintf | Vincent Sanders | 2018-08-24 | 1 | -1/+5 |
| | |||||
* | remove warning by replacing strcpy with safer strncpy | Vincent Sanders | 2018-08-24 | 1 | -5/+11 |
| | |||||
* | fix size_t format specifiers | Vincent Sanders | 2018-08-18 | 1 | -3/+4 |
| | |||||
* | Layout: Use box helper for first child checks.glenwalker/bug_0002428 | Michael Drake | 2018-06-29 | 1 | -2/+2 |
| | |||||
* | Box: Add helper to check if box is first child. | Michael Drake | 2018-06-29 | 1 | -0/+11 |
| | |||||
* | Layout: Tidy condition so it can be read. | Michael Drake | 2018-06-29 | 1 | -7/+6 |
| | |||||
* | Plotters: Expose array of font family strings to front ends. | Michael Drake | 2018-05-23 | 1 | -0/+1 |
| | |||||
* | Plotters: Change stroke width in the plot_style_t to fixed point. | Michael Drake | 2018-05-23 | 1 | -1/+1 |
| | |||||
* | Plotters: Add plot_style_fixed type, and use for font size. | Michael Drake | 2018-05-23 | 3 | -5/+5 |
| | |||||
* | clean up html content handler header use | Vincent Sanders | 2018-05-11 | 12 | -68/+180 |
| | | | | Improve header use in preperation for making browser window a corewindow | ||||
* | move html and text content handlers where they belong | Vincent Sanders | 2018-05-10 | 30 | -0/+27093 |