Lift 16kB limit of log message output
[git/git.git] / interpolate.h
CommitLineData
49ba83fb
JL
1/*
2 * Copyright 2006 Jon Loeliger
3 */
4
5#ifndef INTERPOLATE_H
6#define INTERPOLATE_H
7
4dafd7d2
AR
8/*
9 * Convert a NUL-terminated string in buffer orig,
10 * performing substitutions on %-named sub-strings from
11 * the interpretation table.
12 */
49ba83fb
JL
13
14struct interp {
3a55602e 15 const char *name;
49ba83fb
JL
16 char *value;
17};
18
a2838377 19extern void interp_set_entry(struct interp *table, int slot, const char *value);
eb30aed7
JL
20extern void interp_clear_table(struct interp *table, int ninterps);
21
80583c0e
JH
22extern unsigned long interpolate(char *result, unsigned long reslen,
23 const char *orig,
24 const struct interp *interps, int ninterps);
49ba83fb
JL
25
26#endif /* INTERPOLATE_H */