summaryrefslogtreecommitdiff
path: root/interpolate.h
diff options
context:
space:
mode:
authorJon Loeliger <jdl@jdl.com>2006-09-27 16:16:10 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-28 01:00:53 (GMT)
commiteb30aed7c69190fd648947d54bbb9ebe53c67715 (patch)
tree0301c0ce863a89a9878a169504ce2240491cc1df /interpolate.h
parentdd4676299dde0a4c6f8a471e6353170f86a78c8a (diff)
downloadgit-eb30aed7c69190fd648947d54bbb9ebe53c67715.zip
git-eb30aed7c69190fd648947d54bbb9ebe53c67715.tar.gz
git-eb30aed7c69190fd648947d54bbb9ebe53c67715.tar.bz2
Removed memory leaks from interpolation table uses.
Clarified that parse_extra_args()s results in interpolation table entries. Removed a few trailing whitespace occurrences. Signed-off-by: Jon Loeliger <jdl@jdl.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'interpolate.h')
-rw-r--r--interpolate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/interpolate.h b/interpolate.h
index d16f924..a55fb8e 100644
--- a/interpolate.h
+++ b/interpolate.h
@@ -16,6 +16,9 @@ struct interp {
char *value;
};
+extern void interp_set_entry(struct interp *table, int slot, char *value);
+extern void interp_clear_table(struct interp *table, int ninterps);
+
extern int interpolate(char *result, int reslen,
const char *orig,
const struct interp *interps, int ninterps);