From e2a48d8701f91b8e24fbe9e99e91eb72a87bb749 Mon Sep 17 00:00:00 2001 From: horchi Date: Sun, 5 Mar 2017 16:39:28 +0100 Subject: git init --- epglv/src/epglv.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 epglv/src/epglv.h (limited to 'epglv/src/epglv.h') diff --git a/epglv/src/epglv.h b/epglv/src/epglv.h new file mode 100644 index 0000000..39554b8 --- /dev/null +++ b/epglv/src/epglv.h @@ -0,0 +1,52 @@ +/* + +EPG2VDR Levenshtein Distance UDF for MySQL +Supports UTF-8 throught iconv. + +Copyright (C) 2013 Jörg Wendel + +*/ + +#ifndef __EPGLV_H +#define __EPGLV_H + +#ifdef STANDARD +# include +#else +# include +# include +#endif + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define LENGTH_MAX 1000 + +#define debug_print(fmt, ...) \ + do { if (DEBUG_MYSQL) fprintf(stderr, "%s():%d> " fmt "\n", \ + __func__, __LINE__, __VA_ARGS__); fflush(stderr); } while (0) + +#define print(fmt, ...) \ + do { fprintf(stderr, "%s():%d> " fmt "\n", \ + __func__, __LINE__, __VA_ARGS__); fflush(stderr); } while (0) + +#define MIN(a,b) (((a)<(b))?(a):(b)) + +#endif // __EPGLV_H + +my_bool base_epglv_init(UDF_INIT* init, UDF_ARGS* args, char* message); +void base_epglv_deinit(UDF_INIT* init); +long long base_epglv(UDF_INIT* init, UDF_ARGS* args, char* is_null, + char* error, long long* l1, long long* l2); -- cgit v1.2.3