From ed47c1557915bb2472f6959e723cd76155312a98 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 6 Apr 2020 00:50:58 +0800 Subject: Add deduper (unfinished tool for finding image duplicates). --- deduper/libpuzzle/src/puzzle.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 deduper/libpuzzle/src/puzzle.c (limited to 'deduper/libpuzzle/src/puzzle.c') diff --git a/deduper/libpuzzle/src/puzzle.c b/deduper/libpuzzle/src/puzzle.c new file mode 100644 index 0000000..e21c252 --- /dev/null +++ b/deduper/libpuzzle/src/puzzle.c @@ -0,0 +1,22 @@ +#define DEFINE_GLOBALS 1 +#include "puzzle_common.h" +#include "puzzle_p.h" +#include "puzzle.h" +#include "globals.h" + +void puzzle_init_context(PuzzleContext * const context) +{ + *context = puzzle_global_context; +} + +void puzzle_free_context(PuzzleContext * const context) +{ + (void) context; +} + +void puzzle_err_bug(const char * const file, const int line) +{ + fprintf(stderr, "*BUG* File: [%s] Line: [%d]\n", file, line); + abort(); +} + -- cgit v1.2.3