* Honor CFLAGS.

* Include proper prototypes; fixes dire warnings on alpha.
This commit is contained in:
Christian Weisgerber 2002-07-21 01:56:56 +00:00
parent 0b11a525c5
commit 8d5699d7ad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63295
7 changed files with 93 additions and 0 deletions

View file

@ -16,6 +16,8 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= ports@FreeBSD.org
ALL_TARGET=
MAKE_ARGS= CFLAGS="${CFLAGS}"
MAN1= agrep.1
do-install:

View file

@ -0,0 +1,18 @@
$FreeBSD$
--- agrep.h.orig Fri Jan 17 20:15:13 1992
+++ agrep.h Sun Jul 21 03:50:47 2002
@@ -1,10 +1,10 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <math.h>
#include <ctype.h>
#include "re.h"
-extern unsigned char *strcpy(), *strncpy(), *strcat();
-extern int strlen();
#define CHAR unsigned char
#define MAXPAT 128
#define MAXPATT 256

View file

@ -0,0 +1,22 @@
$FreeBSD$
--- follow.c.orig Fri Jan 17 20:14:42 1992
+++ follow.c Sun Jul 21 03:50:47 2002
@@ -3,14 +3,12 @@
construction. */
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "re.h"
-extern char *strncpy(), *strcat(), *strcpy();
-extern int strlen();
-
#define TRUE 1
-extern char *malloc();
extern Pset pset_union();
extern int pos_cnt;
extern Re_node parse();

View file

@ -0,0 +1,13 @@
$FreeBSD$
--- mgrep.c.orig Sat Apr 11 00:12:27 1992
+++ mgrep.c Sun Jul 21 03:50:47 2002
@@ -1,6 +1,7 @@
/* Copyright (c) 1991 Sun Wu and Udi Manber. All Rights Reserved. */
/* multipattern matcher */
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#define MAXPAT 256
#define MAXLINE 1024

View file

@ -0,0 +1,13 @@
$FreeBSD$
--- parse.c.orig Fri Jan 17 20:14:43 1992
+++ parse.c Sun Jul 21 03:50:47 2002
@@ -3,6 +3,7 @@
tree for that regular expression. */
#include <stdio.h>
+#include <stdlib.h>
#include "re.h"
#define FALSE 0

View file

@ -0,0 +1,12 @@
$FreeBSD$
--- sgrep.c.orig Sat Apr 11 00:12:02 1992
+++ sgrep.c Sun Jul 21 03:50:47 2002
@@ -1,5 +1,6 @@
/* Copyright (c) 1991 Sun Wu and Udi Manber. All Rights Reserved. */
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#define MAXSYM 256
#define MAXMEMBER 8192

View file

@ -0,0 +1,13 @@
$FreeBSD$
--- utilities.c.orig Fri Jan 17 20:14:43 1992
+++ utilities.c Sun Jul 21 03:50:47 2002
@@ -2,6 +2,7 @@
and manipulating regular expression syntax trees. */
#include <stdio.h>
+#include <stdlib.h>
#include "re.h"
/************************************************************************/