mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Removed some function decls (regex, regcomp, etc.) and put them in regexp.c
This commit is contained in:
parent
a44790f539
commit
0c96eba3de
18
regexp.h
18
regexp.h
@ -25,24 +25,6 @@
|
||||
#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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user