about summary refs log tree commit diff stats
path: root/encode.c
Commit message (Collapse)AuthorAgeFilesLines
* introduce gemtext_list_encode_to_html class of functionsAli Fardan2020-11-051-16/+18
| | | | | | | - add gemtext_list_encode_html, gemtext_list_encode_to_html_fd and gemtext_list_encode_to_html_file - add gemtext_link_has_label - update gemtext_list_encode class of functions to use size_t instead of int for text size calculation - update manpages
* change parsing and encoding for strict compliance with the spec ↵Ali Fardan2020-10-241-2/+2
| | | | (https://lists.orbitalfox.eu/archives/gemini/2020/002908.html)
* couple of bugfixes in encode.c, and additional tests for gemtext_encode()Ali Fardan2020-10-231-7/+23
|
* allow passing NULL pointer to gemtext_encode() lenAli Fardan2020-10-231-8/+16
|
* encode: fix garbage in gemtext_encode outputAli Fardan2020-10-231-0/+4
|
* - rename previous gemtext_decode() family of functions to gemtext_list_decode()Ali Fardan2020-10-231-114/+115
| | | | | | | | | | - change behavior of gemtext_decode family of functions to handle struct gemtext* only - introduce new gemtext_list_decode() family of functions to handle lists of struct gemtext* - rename previous gemtext_encode() family of functions to gemtext_list_encode() - change behavior of gemtext_encode family of functions to handle struct gemtext* only - introduce new gemtext_list_encode() family of functions to handle lists of struct gemtext* - reexport gemtext_free() - update manpages
* gemtext_encode_fd(): fix memory leakAli Fardan2020-10-231-0/+1
|
* - implement the rest of decode.c functions: gemtext_decode_fd() and ↵Ali Fardan2020-10-221-0/+365
gemtext_decode_file() - introduce gemtext_encode() with helper functions gemtext_encode_fd() and gemtext_encode_file() - simplify handling of unordered lists in decode.c - add test.c rule to makefile