Commits
- 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:
9d65b1d9ae3209a8a2bc8e8c376dede4f71290ce
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move util.c declarations in utils.h
it's not spelled `util.h' because otherwise it'd get included instead
of /usr/include/util.h
- Commit:
95a8c791ec85e7b79a1975e82a22f7c07dbb9107
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt (some missing space -> tab conversion)
- Commit:
6c739557ef552609512f2d7d7cf8ce42600b76d7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[gopher] prevent crash on malformed item lines
initialize selector, address and port to "" to prevent a NUL
deferencing on emit_line
- Commit:
32ac17a4ea1ad4c2f9e8c8d78dd5738958883291
- From:
- Omar Polo <op@omarpolo.com>
- Date:
replace TAILQ_EMPTY/INSERT_HEAD/TAIL dance with a single TAILQ_INSERT_TAIL
Now that all the queues are correctly initialised, there's no need for
that dance.
- Commit:
78894e73ecf5d7a2039e4eb6bd6e9a47fa9baa72
- From:
- Omar Polo <op@omarpolo.com>
- Date:
initialize all the queues
- Commit:
81839fee39ad184c28b20b13297027be9d10f200
- From:
- Omar Polo <op@omarpolo.com>
- Date:
initial gophermaps support