* Honor CFLAGS.
* Include proper prototypes; fixes dire warnings on alpha.
This commit is contained in:
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
|
@ -16,6 +16,8 @@ EXTRACT_SUFX= .tar.Z
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
|
|
||||||
ALL_TARGET=
|
ALL_TARGET=
|
||||||
|
MAKE_ARGS= CFLAGS="${CFLAGS}"
|
||||||
|
|
||||||
MAN1= agrep.1
|
MAN1= agrep.1
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
|
|
18
textproc/agrep/files/patch-agrep.h
Normal file
18
textproc/agrep/files/patch-agrep.h
Normal 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
|
22
textproc/agrep/files/patch-follow.c
Normal file
22
textproc/agrep/files/patch-follow.c
Normal 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();
|
13
textproc/agrep/files/patch-mgrep.c
Normal file
13
textproc/agrep/files/patch-mgrep.c
Normal 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
|
13
textproc/agrep/files/patch-parse.c
Normal file
13
textproc/agrep/files/patch-parse.c
Normal 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
|
12
textproc/agrep/files/patch-sgrep.c
Normal file
12
textproc/agrep/files/patch-sgrep.c
Normal 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
|
13
textproc/agrep/files/patch-utilities.c
Normal file
13
textproc/agrep/files/patch-utilities.c
Normal 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"
|
||||||
|
|
||||||
|
/************************************************************************/
|
Loading…
Reference in a new issue