svn commit: r292171 - stable/9/lib/libc/regex/grot
Garrett Cooper
ngie at FreeBSD.org
Sun Dec 13 21:15:57 UTC 2015
Author: ngie
Date: Sun Dec 13 21:15:56 2015
New Revision: 292171
URL: https://svnweb.freebsd.org/changeset/base/292171
Log:
MFstable/10 r292170:
MFC r291837:
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:
stable/9/lib/libc/regex/grot/Makefile
stable/9/lib/libc/regex/grot/main.c
stable/9/lib/libc/regex/grot/split.c
Directory Properties:
stable/9/ (props changed)
stable/9/lib/ (props changed)
stable/9/lib/libc/ (props changed)
Modified: stable/9/lib/libc/regex/grot/Makefile
==============================================================================
--- stable/9/lib/libc/regex/grot/Makefile Sun Dec 13 21:15:03 2015 (r292170)
+++ stable/9/lib/libc/regex/grot/Makefile Sun Dec 13 21:15:56 2015 (r292171)
@@ -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: stable/9/lib/libc/regex/grot/main.c
==============================================================================
--- stable/9/lib/libc/regex/grot/main.c Sun Dec 13 21:15:03 2015 (r292170)
+++ stable/9/lib/libc/regex/grot/main.c Sun Dec 13 21:15:56 2015 (r292171)
@@ -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: stable/9/lib/libc/regex/grot/split.c
==============================================================================
--- stable/9/lib/libc/regex/grot/split.c Sun Dec 13 21:15:03 2015 (r292170)
+++ stable/9/lib/libc/regex/grot/split.c Sun Dec 13 21:15:56 2015 (r292171)
@@ -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);
More information about the svn-src-stable-9
mailing list