aboutsummaryrefslogtreecommitdiff
path: root/textproc/agrep/files/patch-agrep.h
blob: b32f8972c9e6c21d893624289aa1e92a6ed2fed7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- agrep.h.orig	1992-01-17 20:15:13.000000000 +0100
+++ agrep.h	2011-11-27 13:35:40.000000000 +0100
@@ -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
@@ -52,3 +52,37 @@
 #define NNLINE    239   /* special symbol for newline in begin of pattern*/
                        /* matches '\n' and NNLINE */
 
+/* asearch.c */
+void asearch(CHAR old_D_pat[], int text, register unsigned D);
+
+/* asearch1.c */
+void asearch1(char old_D_pat[], int text, register unsigned D);
+
+/* bitap.c */
+void bitap(char old_D_pat[], char *Pattern, int fd, int M, int D);
+int fill_buf(int fd, unsigned char *buf, int record_size);
+
+/* checkfile.c */
+int check_file(char *fname);
+
+/* compat.c */
+void compat(void);
+
+/* main.c */
+void output (register CHAR *buffer, int i1, int i2, int j);
+void re1(int Text, int M, int D);
+void re(int Text, int M, int D);
+
+/* maskgen.c */
+int maskgen(unsigned char *Pattern, int D);
+
+/* mgrep.c */
+void prepf(int fp);
+void mgrep(int fp);
+
+/* preprocess.c */
+void preprocess(CHAR *D_pattern, CHAR *Pattern);
+
+/* sgrep.c */
+void sgrep(CHAR *pat, int m, int fd, int D);
+