]> granicus.if.org Git - neomutt/commit
Support of relative paths sourcing and cyclic source detection
authorGuyzmo <guyzmo+github+pub@m0g.net>
Tue, 10 Jan 2017 12:59:40 +0000 (13:59 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 23 Jan 2017 11:40:57 +0000 (11:40 +0000)
commitd213300dedddb522c986d6ff397f15ad43325be7
tree9d6795fadd61c4caf3b2c959aedcc172a4438343
parent83f7558efab3dcd7b7e227a727ef95f711363f50
Support of relative paths sourcing and cyclic source detection

Added HEAP/FILO structure and global singleton to contain the the list
of config files that have been sourced, and detect cyclic sourcing.
Implemented with a simple heap API:

- `path_heap_push()`
- `path_heap_pop()`
- `path_heap_front()`
- `path_heap_find()`

Added a new method `to_absolute_path()` to convert a path into an absolute
path, relatively to another config file's path. Using POSIX methods to
do so, adding libgen's header in `mutt.h`.

Closes #282
Closes #290
init.c
mutt.h
muttlib.c