diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2011-11-27 12:47:41 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2011-11-27 12:47:41 +0000 |
commit | afcd9bf461ee813bd17c0718ef3211b5d09fc890 (patch) | |
tree | fefa270e267f6810de6521f1804e0f4e468613e5 /textproc/agrep/files/patch-preprocess.c | |
parent | - Update to 0.16 (diff) |
- add missing prototypes
- add missing includes
- fix build with clang
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=286502
Diffstat (limited to 'textproc/agrep/files/patch-preprocess.c')
-rw-r--r-- | textproc/agrep/files/patch-preprocess.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/textproc/agrep/files/patch-preprocess.c b/textproc/agrep/files/patch-preprocess.c new file mode 100644 index 000000000000..e663b3bb06ff --- /dev/null +++ b/textproc/agrep/files/patch-preprocess.c @@ -0,0 +1,20 @@ +--- preprocess.c.orig 1992-01-17 20:14:43.000000000 +0100 ++++ preprocess.c 2011-11-27 12:47:32.000000000 +0100 +@@ -14,6 +14,8 @@ + /* D_pattern contains transformed D_pattern */ + + #include "agrep.h" ++ ++extern int init(char *s, int table[32][32]); + + extern int SIMPLEPATTERN, WHOLELINE, REGEX, RE_ERR, DELIMITER, TAIL, WORDBOUND; + extern int HEAD; +@@ -21,7 +23,7 @@ + extern int D_length; + extern int table[WORD][WORD]; + +-preprocess(D_pattern, Pattern) /* need two parameters */ ++void preprocess(D_pattern, Pattern) /* need two parameters */ + CHAR *D_pattern, *Pattern; + { + CHAR temp[Maxline], *r_pat, *old_pat; /* r_pat for r.e. */ |