From 5b405827a2fa4c928c488f3e7b0197dfec60dcc2 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 29 Mar 2014 18:11:00 -0500 Subject: Group headers by standard (POSIX or LSB) or function (internationalization, networking). Move headers standards ignore (but which have been there >15 years) to lib/portability.h. Fold xregcomp into lib since it's posix. --- lib/xregcomp.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 lib/xregcomp.c (limited to 'lib/xregcomp.c') diff --git a/lib/xregcomp.c b/lib/xregcomp.c deleted file mode 100644 index ec7d1b79..00000000 --- a/lib/xregcomp.c +++ /dev/null @@ -1,22 +0,0 @@ -/* Call regcomp() and handle errors. - * - * Copyright 2007 Rob Landley - * - * This is a separate file so environments that haven't got regular expression - * support can configure this out and avoid a build break. - */ - -#include "toys.h" -#include "xregcomp.h" - -void xregcomp(regex_t *preg, char *regex, int cflags) -{ - int rc = regcomp(preg, regex, cflags); - - if (rc) { - char msg[256]; - regerror(rc, preg, msg, 255); - msg[255]=0; - error_exit("xregcomp: %s", msg); - } -} -- cgit v1.2.3