git-svn: understand grafts when doing dcommit
[git/builtin-gsoc.git] / interpolate.h
blob77407e67dca97eb85274c69e2e7469e1d4d40b3b
1 /*
2 * Copyright 2006 Jon Loeliger
3 */
5 #ifndef INTERPOLATE_H
6 #define INTERPOLATE_H
8 /*
9 * Convert a NUL-terminated string in buffer orig,
10 * performing substitutions on %-named sub-strings from
11 * the interpretation table.
14 struct interp {
15 const char *name;
16 char *value;
19 extern void interp_set_entry(struct interp *table, int slot, const char *value);
20 extern void interp_clear_table(struct interp *table, int ninterps);
22 extern unsigned long interpolate(char *result, unsigned long reslen,
23 const char *orig,
24 const struct interp *interps, int ninterps);
26 #endif /* INTERPOLATE_H */