*
* Copyright (C) 2005 Neil Brown <neilb@cse.unsw.edu.au>
* Copyright (C) 2010-2013 Neil Brown <neilb@suse.de>
+ * Copyright (C) 2014-2020 Neil Brown <neil@brown.name>
*
*
* This program is free software; you can redistribute it and/or modify
* along with this program.
*
* Author: Neil Brown
- * Email: <neilb@suse.de>
+ * Email: <neil@brown.name>
*/
#include "wiggle.h"
}
int wiggle_isolate_conflicts(struct file af, struct file bf, struct file cf,
- struct csl *csl1, struct csl *csl2, int words,
- struct merge *m, int show_wiggles,
- int *wigglesp)
+ struct csl *csl1, struct csl *csl2, int words,
+ struct merge *m, int show_wiggles,
+ int *wigglesp)
{
/* A Conflict indicates that something is definitely wrong
* and so we need to be a bit suspicious of nearby apparent matches.
}
struct ci wiggle_make_merger(struct file af, struct file bf, struct file cf,
- struct csl *csl1, struct csl *csl2, int words,
- int ignore_already, int show_wiggles)
+ struct csl *csl1, struct csl *csl2, int words,
+ int ignore_already, int show_wiggles)
{
/* find the wiggles and conflicts between csl1 and csl2
*/
rv.merger[i].type = Conflict;
}
rv.conflicts = wiggle_isolate_conflicts(af, bf, cf, csl1, csl2, words,
- rv.merger, show_wiggles, &rv.wiggles);
+ rv.merger, show_wiggles, &rv.wiggles);
return rv;
}
"", " border"," conflict"," wiggle" };
int wiggle_print_merge(FILE *out, struct file *a, struct file *b, struct file *c,
- int words, struct merge *merger,
- struct merge *mpos, int streampos, int offsetpos)
+ int words, struct merge *merger,
+ struct merge *mpos, int streampos, int offsetpos)
{
struct merge *m;
int lineno = 1;
/* Nothing more to report */
break;
if (cm->in_conflict == 1 &&
- (cm->type == Extraneous ||
- cm->type == Unmatched ||
- cm->type == Unchanged))
+ (cm->type == Extraneous ||
+ cm->type == Unmatched ||
+ cm->type == Unchanged))
/* border between conflicts, but
* still nothing to report.
*/