Date: Sat, 5 Dec 2015 02:23:44 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291837 - head/lib/libc/regex/grot Message-ID: <201512050223.tB52Nijn071820@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sat Dec 5 02:23:44 2015 New Revision: 291837 URL: https://svnweb.freebsd.org/changeset/base/291837 Log: split.ih: - Create automatically generated include header for split.c main.c: - Use function definitions from debug.ih and split.ih instead of externs Sponsored by: EMC / Isilon Storage Division Modified: head/lib/libc/regex/grot/Makefile head/lib/libc/regex/grot/main.c head/lib/libc/regex/grot/split.c Modified: head/lib/libc/regex/grot/Makefile ============================================================================== --- head/lib/libc/regex/grot/Makefile Sat Dec 5 02:18:36 2015 (r291836) +++ head/lib/libc/regex/grot/Makefile Sat Dec 5 02:23:44 2015 (r291837) @@ -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 Modified: head/lib/libc/regex/grot/main.c ============================================================================== --- head/lib/libc/regex/grot/main.c Sat Dec 5 02:18:36 2015 (r291836) +++ head/lib/libc/regex/grot/main.c Sat Dec 5 02:23:44 2015 (r291837) @@ -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 */ Modified: head/lib/libc/regex/grot/split.c ============================================================================== --- head/lib/libc/regex/grot/split.c Sat Dec 5 02:18:36 2015 (r291836) +++ head/lib/libc/regex/grot/split.c Sat Dec 5 02:23:44 2015 (r291837) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512050223.tB52Nijn071820>