Commit Graph

6 Commits

Author SHA1 Message Date
Érico Rolim 1fc274535e Fix compilation under glibc.
Some feature macros behaved differently from the ones in musl.
2020-09-24 20:48:22 -03:00
Érico Rolim 72585a68ca Enable streams for read_from_mmap.
Not working, but also not used for now.

Required changing the API (for the better), now copies into the caller's buffer.
2020-09-24 03:40:38 -03:00
Érico Rolim 966fe83af7 Update gemini client.
- Add get_links_from_gmi: parse gemtext to get links. We'll get
  navigation, baby!
- Add CLI options.
- Add FILE backend to mmap_file, for simplicity (?). Very generic now.
  Also remove cursor from mmap_file struct.
- Avoid segfaulting (so much) in tests.

mmap
2020-09-24 03:29:59 -03:00
Érico Rolim 5226c3b534 Use (more) functions for mmap management.
Add free_mmap and allocate_mmap, which allow for easier changes to the
codebase, if desired, since it's now modularized.
2020-09-17 15:35:44 -03:00
Érico Rolim e01615adff Add test for mmap_file and simplify makefile.
Also fix typo in mmap_file.h.
2020-09-14 00:43:59 -03:00
Érico Rolim 06eb9d4222 Split mmap_file implementation.
Also add some useful definitions.
2020-09-14 00:32:16 -03:00