Revision a4eba020f96e1b85f856a992782b8bb2bab6a719 authored by Han-Wen Nienhuys on 23 July 2007, 22:51:49 UTC, committed by Simon Hausmann on 02 August 2007, 07:40:25 UTC
processing

P4 change outputs the changes sorted for each directory separately. We
want the global ordering on the changes, hence we sort.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Simon Hausmann <simon@lst.de>
1 parent 68d4229
Raw File
interpolate.h
/*
 * Copyright 2006 Jon Loeliger
 */

#ifndef INTERPOLATE_H
#define INTERPOLATE_H

/*
 * Convert a NUL-terminated string in buffer orig,
 * performing substitutions on %-named sub-strings from
 * the interpretation table.
 */

struct interp {
	const char *name;
	char *value;
};

extern void interp_set_entry(struct interp *table, int slot, const char *value);
extern void interp_clear_table(struct interp *table, int ninterps);

extern unsigned long interpolate(char *result, unsigned long reslen,
				 const char *orig,
				 const struct interp *interps, int ninterps);

#endif /* INTERPOLATE_H */
back to top