summaryrefslogtreecommitdiff
path: root/src/parse.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-07-11 14:03:21 +0200
committerGitHub <noreply@github.com>2019-07-11 14:03:21 +0200
commita6ad9e8a4edc75a3bcf404be636329082f80d1bb (patch)
tree5b60f577ce6de9f6e371684f707b1ef095f55529 /src/parse.h
parentba9725a28f351e52c8054e543298f78d4d5f2cf0 (diff)
parentdbeadf8a9e9cb66f65b894e4dfd1fb23f9f31d5b (diff)
downloadlibgit2-a6ad9e8a4edc75a3bcf404be636329082f80d1bb.tar.gz
Merge pull request #5134 from pks-t/pks/config-parser-separation
Config parser separation
Diffstat (limited to 'src/parse.h')
-rw-r--r--src/parse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse.h b/src/parse.h
index 21dcf9bd1..42a2aff1a 100644
--- a/src/parse.h
+++ b/src/parse.h
@@ -23,6 +23,8 @@ typedef struct {
size_t line_num;
} git_parse_ctx;
+#define GIT_PARSE_CTX_INIT { 0 }
+
int git_parse_ctx_init(git_parse_ctx *ctx, const char *content, size_t content_len);
void git_parse_ctx_clear(git_parse_ctx *ctx);