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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to