diff options
author | Heiko Voigt <hvoigt@hvoigt.net> | 2013-07-12 00:44:39 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-12 09:34:57 -0700 |
commit | 4d8dd1494e9f3af2e9738edaca40ada096f7bf10 (patch) | |
tree | 1baed31fe774d5ebc4c9c6013a0c11cf7ff9c538 /Documentation | |
parent | config: drop cf validity check in get_next_char() (diff) | |
download | tgif-4d8dd1494e9f3af2e9738edaca40ada096f7bf10.tar.xz |
config: make parsing stack struct independent from actual data source
To simplify adding other sources we extract all functions needed for
parsing into a list of callbacks. We implement those callbacks for the
current file parsing. A new source can implement its own set of callbacks.
Instead of storing the concrete FILE pointer for parsing we store a void
pointer. A new source can use this to store its custom data.
Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions