Added support for ignoring '-g' per GNU ls, thanks to David Vrabel
[oweals/busybox.git] / regexp.h
index e8880fb4fbb52101411629f6751f8707d8518a09..9e0cb40223f43a573ba98c1fff9297c328f3ba10 100644 (file)
--- a/regexp.h
+++ b/regexp.h
@@ -1,3 +1,4 @@
+/* vi: set sw=4 ts=4: */
 /*
  * Busybox regexp header file
  *
 #define        _REGEXP_H_
 
 
-
-
-#define NSUBEXP  10
-typedef struct regexp {
-       char    *startp[NSUBEXP];
-       char    *endp[NSUBEXP];
-       int     minlen;         /* length of shortest possible match */
-       char    first;          /* first character, if known; else \0 */
-       char    bol;            /* boolean: must start at beginning of line? */
-       char    program[1];     /* Unwarranted chumminess with compiler. */
-} regexp;
-
-
-
-extern regexp *regcomp(char* text);
-extern int regexec(struct regexp* re, char* str, int bol, int ignoreCase);
-extern void regsub(struct regexp* re, char* src, char* dst);
-
 extern int find_match(char *haystack, char *needle, int ignoreCase);
 extern int replace_match(char *haystack, char *needle, char *newNeedle, int ignoreCase);