AmendHub

jcs

/

detritus

/

amendments

Amendments on October 30, 2025

settings: C nits

jcs made amendment 69 4 months ago

Amendments on March 4, 2025

html: Put all of this behind HTML_ENABLE

jcs made amendment 68 about 1 year ago

Amendments on December 27, 2024

util: Add strcaseidx

When trying to case-insensitively match a string to a list of char
pointers, having to call into strcasecmp for every list entry and
start the indexing into the string over again every time is quite
expensive.
 
strcaseidx takes a string and a pointer to an array of char pointers
and walks the list and indexes the string only once, advancing
through the list as each next character matches or not. This
requires the list to be sorted.
jcs made amendment 67 about 1 year ago

util: Reduce data section where we can

jcs made amendment 66 about 1 year ago

Amendments on December 23, 2024

html_tokenize: Implement remaining character reference states

NUMERIC_CHARACTER_REFERENCE_END does not consume a character, so
although the spec doesn't say to reconsume to get there, do that in
states that switch to that state so we don't consume one character
too many.
jcs made amendment 65 about 1 year ago

Amendments on December 22, 2024

html_tokenize: Add missing token emitting in *_END_TAG_NAME

jcs made amendment 64 about 1 year ago

Amendments on December 21, 2024

html_tree: If styling is off, ignore text in <style> tags

jcs made amendment 63 about 1 year ago

Amendments on December 20, 2024

http+html: Start on outputting fields

jcs made amendment 62 about 1 year ago

Amendments on December 14, 2024

html_output: Honor <center> and <p align="center">

Support for this was added to TextView
jcs made amendment 61 about 1 year ago

browser: Reorganize go functions, use http:// fallback from URL bar

This is 2024, after all.
jcs made amendment 60 about 1 year ago

Amendments on December 12, 2024

request: Add gopher port

jcs made amendment 55 about 1 year ago

gopher: Zero leading

jcs made amendment 54 about 1 year ago

util: Disable MALLOC_DEBUG

jcs made amendment 53 about 1 year ago

Amendments on November 21, 2024

util: Do an initial xorshift32 at util_init time

jcs made amendment 51 about 1 year ago

focusable: Add mouse_move callback

jcs made amendment 50 about 1 year ago