Skip to content

Commit

Permalink
Add missing functions for call
Browse files Browse the repository at this point in the history
  • Loading branch information
hausdorff committed May 31, 2011
1 parent 54da253 commit 5ac186b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/libdiff/diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,27 @@ void p(struct record *r, struct diff_mem *d)
}


void insertion(struct edit **e, struct record *r, size_t y, size_t k)
{
(*e)++;
(*e)->edit = INSERTION;
(*e)->y = y;
(*e)->k = k;
(*e)->rcrd = r;
(*e)->next = *e - 1;
}


void deletion(struct edit **e, size_t x, size_t k)
{
(*e)++;
(*e)->edit = DELETION;
(*e)->x = x;
(*e)->k = k;
(*e)->next = *e - 1;
}


void build_script(int *v, int v_size, struct diff_env *env, int d, int m, int n, int k)
{
struct record *rcrds1, *rcrds2;
Expand Down

0 comments on commit 5ac186b

Please sign in to comment.