Project

General

Profile

Bug #1318 ยป undo.patch

joelkp, 03/22/2009 03:22 PM

View differences:

undo.fixonly/undo.c 2009-03-22 13:57:32 +0000
static void doiterate(const char *filename, const char *outFileName,
const char *outFilePostfix, int flags,
struct hammer_ioc_hist_entry ts1,
struct hammer_ioc_hist_entry ts2,
enum undo_cmd cmd, enum undo_type type);
static void dogenerate(const char *filename, const char *outFileName,
const char *outFilePostfix,
......
while (ac) {
doiterate(*av, outFileName, outFilePostfix,
flags, ts1, cmd, type);
flags, ts1, ts2, cmd, type);
++av;
--ac;
}
......
doiterate(const char *filename, const char *outFileName,
const char *outFilePostfix, int flags,
struct hammer_ioc_hist_entry ts1,
struct hammer_ioc_hist_entry ts2,
enum undo_cmd cmd, enum undo_type type)
{
struct undo_hist_entry_rb_tree dir_tree;
struct undo_hist_entry_rb_tree tse_tree;
struct undo_hist_entry *tse1;
struct undo_hist_entry *tse2;
struct hammer_ioc_hist_entry ts2, tid_max;
struct hammer_ioc_hist_entry tid_max;
char *path = NULL;
int i;
int fd;
    (1-1/1)