* of the GNU Lesser General Public License.
*/
-#include "ucw/lib.h"
-#include "ucw/chartype.h"
-#include "ucw/hashfunc.h"
-#include "ucw/regex.h"
+#include <ucw/lib.h>
+#include <ucw/chartype.h>
+#include <ucw/hashfunc.h>
+#include <ucw/regex.h>
#include <stdio.h>
#include <string.h>
-#if defined(CONFIG_OWN_REGEX) || defined(CONFIG_POSIX_REGEX)
+#ifdef CONFIG_UCW_POSIX_REGEX
/* POSIX regular expression library */
-#ifdef CONFIG_OWN_REGEX
-#include "lib/regex/regex-sh.h"
-#else
#include <regex.h>
-#endif
struct regex {
regex_t rx;
return 1;
}
-#elif defined(CONFIG_PCRE)
+#elif defined(CONFIG_UCW_PCRE)
/* PCRE library */
uns j = *by++ - '0';
if (j < r->real_matches && r->matches[2*j] >= 0)
{
- char *s = src + r->matches[2*j];
+ const char *s = src + r->matches[2*j];
uns i = r->matches[2*j+1] - r->matches[2*j];
if (dest + i >= end)
return -1;