diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2015-12-05 02:23:44 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2015-12-05 02:23:44 +0000 |
commit | e3bc7f4da8b6b8b070f79471abd6d9681a9ed519 (patch) | |
tree | eba40fdfcca561a7c57ecc410dd90861af535d04 | |
parent | 16c284eca2edbac9c4e427ed98aeff60045aa3ac (diff) |
Notes
-rw-r--r-- | lib/libc/regex/grot/Makefile | 3 | ||||
-rw-r--r-- | lib/libc/regex/grot/main.c | 5 | ||||
-rw-r--r-- | lib/libc/regex/grot/split.c | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/regex/grot/Makefile b/lib/libc/regex/grot/Makefile index 3e4172432f1c9..e715dd8399338 100644 --- a/lib/libc/regex/grot/Makefile +++ b/lib/libc/regex/grot/Makefile @@ -62,7 +62,8 @@ regexec.o: engine.c engine.ih regerror.o: regerror.ih regerror.o: utils.h debug.o: debug.ih -main.o: main.ih +main.o: debug.ih main.ih split.ih +split.o: split.ih r: re tests ./re <tests diff --git a/lib/libc/regex/grot/main.c b/lib/libc/regex/grot/main.c index 880e69eb6fff7..4ce9d879266d4 100644 --- a/lib/libc/regex/grot/main.c +++ b/lib/libc/regex/grot/main.c @@ -9,7 +9,9 @@ __FBSDID("$FreeBSD$"); #include <string.h> #include <unistd.h> +#include "debug.ih" #include "main.ih" +#include "split.ih" char *progname; int debug = 0; @@ -22,9 +24,6 @@ regoff_t startoff = 0; regoff_t endoff = 0; -extern int split(); -extern void regprint(); - /* - main - do the simple case, hand off to regress() for regression */ diff --git a/lib/libc/regex/grot/split.c b/lib/libc/regex/grot/split.c index 07ab8f1cdc28c..c5d5264ab711d 100644 --- a/lib/libc/regex/grot/split.c +++ b/lib/libc/regex/grot/split.c @@ -4,6 +4,8 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> #include <string.h> +#include "split.ih" + /* - split - divide a string into fields, like awk split() == int split(char *string, char *fields[], int nfields, char *sep); |