From 77f4da2d6d2face3e97130fc672ab35140da4499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 23 Aug 2014 11:20:14 +0200 Subject: Share common macros in util.h --- text.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'text.c') diff --git a/text.c b/text.c index 31db71f..67d873e 100644 --- a/text.c +++ b/text.c @@ -12,16 +12,10 @@ #include #include "text.h" - -#define MAX(a, b) ((a) < (b) ? (b) : (a)) -#define MIN(a, b) ((a) > (b) ? (b) : (a)) -#define LENGTH(x) ((int)(sizeof (x) / sizeof *(x))) +#include "util.h" #define BUFFER_SIZE (1 << 20) -/* is c the start of a utf8 sequence? */ -#define isutf8(c) (((c)&0xC0)!=0x80) - struct Regex { const char *string; regex_t regex; -- cgit v1.2.3