Commits
- Commit:
1bcb8303e1b913df31980ca332a5619424a72b01
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move load_page_from_str to telescope.c
I'd like to use parser{,_gophermap,_gemtext}.c in standalone testing
programs, and this function is getting in the way since it depends on
ui.c
- Commit:
069c9a92f36df9d307d734ffa8903035c7181129
- From:
- Omar Polo <op@omarpolo.com>
- Date:
parsers: add serialize function
Add a parser_serialize function and an optional function `serialize' for
parsers. The default implementation just prints the text line, which is
suitable for parser_textplain and parser_textpatch; gemtext and
gophermap uses their own specific unparse functions.
This is intended for an incoming cache refactoring: we'll cache the page
serialized in the correct format, not once it has been translated to
gemtext. This will allow in the future to provide commands such as
``save page to disk'' or interface with an on-disk cache.
- Commit:
5a21e0eb51554d72c1b6465c2b4afc8cdef5dcf1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add fn pointer to the parser init function to struct parser
will come in handy in the future cache refactoring.
- Commit:
9eca3d7c1eac7c78577af884ba7bc954d2f8b969
- From:
- Omar Polo <op@omarpolo.com>
- Date:
delay erase_buffer until parser_init
The idea is to handle better non-displayable pages (like images), and
keeping the old page until the server replies is the first step. It
also simplifies the memory management btw.
- Commit:
dafcab64a97f5daea5add550e3d029faac3765aa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
update the misleading comment in parser_free
- Commit:
95a8c791ec85e7b79a1975e82a22f7c07dbb9107
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt (some missing space -> tab conversion)
- Commit:
a467be638fbb7bac5460772239ea6e8c5d865280
- From:
- Omar Polo <op@omarpolo.com>
- Date:
include compat first and our headers after system ones
- Commit:
1fce2e758fce1ba5d600301bb2b5fae29578adbc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move more stuff outta telescope.c
- Commit:
2fd6d754260a291d40eb2353ba2eb7453e348173
- From:
- Omar Polo <op@omarpolo.com>
- Date:
tilde-heuristics for titles
use `~username' as tab title if the page doesn't have any headings
- Commit:
08b9feb5df5a93ed2a422126736561588a59544a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix off-by-one
Thanks to the fact that we're using a bigger buffer in the net process,
and thanks to the way otto@' malloc works, it was easy to detect this
off-by-one in a large page (RFC3089 in particular).
- Commit:
8c1b0837f83e214cf4d8a02eb548a8061eaa0d0f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify parsers api; use domain name if no title
- Commit:
395b9f4e3ca29a4a162e3ce47a1bd9db738ff5a1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move parser declarations so parser.h
- Commit:
27dce34fb57e3639875005f21f7ed651fad9c2db
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop the in_body field and use a bit in the flags field
- Commit:
c0b634ddc444df1c2391e8262cf707e4422287a6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
deal with BOM -- that is, ignore it
- Commit:
be2ee49f5c6c8d9873d87298c0a8f988c28867a2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
style(9)