summaryrefslogtreecommitdiff
path: root/gfx/diff.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-03 22:55:29 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-03 23:11:45 -0300
commit9132d430693cfda5e0c046a902cab469f83418de (patch)
tree3ddfe6bb9b282f9b70464bb0a5016a1b3c55e8a2 /gfx/diff.c
parent1eebec29e302f07a77cfcfa6db5a08dedc727eda (diff)
downloadeeshow-9132d430693cfda5e0c046a902cab469f83418de.tar.gz
eeshow-9132d430693cfda5e0c046a902cab469f83418de.tar.bz2
eeshow-9132d430693cfda5e0c046a902cab469f83418de.zip
main/eediff.c: the big leap - use diff_process_file (WIP)
There is still some cleanup left to do, including doing something about -e and -1.
Diffstat (limited to 'gfx/diff.c')
-rw-r--r--gfx/diff.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gfx/diff.c b/gfx/diff.c
index 824b37f..bbb8142 100644
--- a/gfx/diff.c
+++ b/gfx/diff.c
@@ -150,7 +150,7 @@ static void *diff_init(void)
}
-static void *diff_process_file(struct diff *diff, struct file_names *file_names,
+void *diff_process_file(struct diff *diff, struct file_names *file_names,
int argc, char *const *argv, const char *opts)
{
struct file_names *fn = file_names;
@@ -242,10 +242,6 @@ static bool diff_args(void *ctx, int argc, char *const *argv, const char *opts)
diff->new_gfx = diff_process_file(diff, &file_names, argc, argv, opts);
free_file_names(&file_names);
- diff->gfx = gfx_init(&cro_img_ops);
- if (!diff->gfx)
- return 0;
-
return gfx_args(diff->gfx, argc, argv, opts);
}