blob: 5e5e6a256a4010c4a83d15f7a21cce032d2af7be [file] [log] [blame]
"Vladimir N. Oleynik"23f62fc2005-09-14 16:59:11 +00001/* vi: set sw=4 ts=4: */
2/*
Rob Landley86b4d642006-08-03 17:58:17 +00003 * Busybox xregcomp utility routine. This isn't in libbb.h because the
4 * C library we're linking against may not support regex.h.
"Vladimir N. Oleynik"23f62fc2005-09-14 16:59:11 +00005 *
6 * Based in part on code from sash, Copyright (c) 1999 by David I. Bell
Denys Vlasenko0ef64bd2010-08-16 20:14:46 +02007 * Permission has been granted to redistribute this code under GPL.
Denis Vlasenko9213a9e2006-09-17 16:28:10 +00008 *
Denys Vlasenko0ef64bd2010-08-16 20:14:46 +02009 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
"Vladimir N. Oleynik"23f62fc2005-09-14 16:59:11 +000010 */
Denis Vlasenkof81e8db2009-04-09 12:35:13 +000011#ifndef BB_REGEX_H
12#define BB_REGEX_H 1
"Vladimir N. Oleynik"23f62fc2005-09-14 16:59:11 +000013
"Vladimir N. Oleynik"23f62fc2005-09-14 16:59:11 +000014#include <regex.h>
Denis Vlasenko98636eb2008-05-09 17:59:34 +000015
Denis Vlasenkof81e8db2009-04-09 12:35:13 +000016PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
Denis Vlasenko98636eb2008-05-09 17:59:34 +000017
Denis Vlasenkodefc1ea2008-06-27 02:52:20 +000018char* regcomp_or_errmsg(regex_t *preg, const char *regex, int cflags) FAST_FUNC;
19void xregcomp(regex_t *preg, const char *regex, int cflags) FAST_FUNC;
"Vladimir N. Oleynik"23f62fc2005-09-14 16:59:11 +000020
Denis Vlasenkof81e8db2009-04-09 12:35:13 +000021POP_SAVED_FUNCTION_VISIBILITY
Denis Vlasenko98636eb2008-05-09 17:59:34 +000022
"Vladimir N. Oleynik"23f62fc2005-09-14 16:59:11 +000023#endif