diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-04-06 00:50:58 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-04-06 00:50:58 +0800 |
commit | ed47c1557915bb2472f6959e723cd76155312a98 (patch) | |
tree | 85bc451630ebaa4f5ffce3043b4cbf948a912a66 /deduper/libpuzzle/src/puzzle.c | |
parent | 0a094f28c2e2ebfaac91398ae62e40f00f09221b (diff) | |
download | oddities-ed47c1557915bb2472f6959e723cd76155312a98.tar.xz |
Add deduper (unfinished tool for finding image duplicates).
Diffstat (limited to 'deduper/libpuzzle/src/puzzle.c')
-rw-r--r-- | deduper/libpuzzle/src/puzzle.c | 22 |
1 files changed, 22 insertions, 0 deletions
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(); +} + |