summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2004-08-23 22:50:10 +0000
committerStef Walter <stef@thewalter.net>2004-08-23 22:50:10 +0000
commit82d27b14e9e3ac81e7fd37092806ef6ad685683b (patch)
tree0d6402dca7099f16865f19577786e8a8a581bdb8
parentff26b4137c6dc3d622336e725bd6f5630b301027 (diff)
Fixes for windows
-rw-r--r--ChangeLog3
-rw-r--r--common/binfile.c2
-rw-r--r--config.win32.h9
-rw-r--r--configure.in6
-rw-r--r--lib/rlib.c2
5 files changed, 15 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 17fb089..3129cd8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+Version 2.3.2e
+ - Use <stdlib.h> instead of <malloc.h>
+
Version 2.3.1b
- Use reallocf instead of realloc
- Unbuffered mode works with nonseekable files (stdin)
diff --git a/common/binfile.c b/common/binfile.c
index fa0a120..778b50e 100644
--- a/common/binfile.c
+++ b/common/binfile.c
@@ -18,7 +18,7 @@
*/
#include <stdio.h>
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "binfile.h"
#define BF_FILE 0x00000010
diff --git a/config.win32.h b/config.win32.h
index 13a057a..011f67b 100644
--- a/config.win32.h
+++ b/config.win32.h
@@ -188,13 +188,13 @@
#define PACKAGE_NAME "rep"
/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "rep 2.1.2b"
+#define PACKAGE_STRING "rep 2.3.2e"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "rep"
/* Define to the version of this package. */
-#define PACKAGE_VERSION "2.1.2b"
+#define PACKAGE_VERSION "2.3.2e"
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
@@ -208,7 +208,10 @@
#define STDC_HEADERS 1
/* Version number of package */
-#define VERSION "2.1.1b"
+#define VERSION "2.3.2e"
+
+/* PCRE header path */
+#define PCRE_H "pcre/pcre.h"
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
diff --git a/configure.in b/configure.in
index b1edc18..785ca07 100644
--- a/configure.in
+++ b/configure.in
@@ -35,9 +35,11 @@ dnl CONTRIBUTORS
dnl Nate Nielsen <nielsen@memberwebs.com>
dnl
-AC_INIT(rep, 2.3.2c, nielsen@memberwebs.com)
-AM_INIT_AUTOMAKE(rep, 2.3.2c)
+AC_INIT(rep, 2.3.2e, nielsen@memberwebs.com)
+AM_INIT_AUTOMAKE(rep, 2.3.2e)
+CFLAGS="$CFLAGS -I/usr/local/include"
+CPPFLAGS="$CPPFLAGS -I/usr/local/include"
LDFLAGS="$LDFLAGS -L/usr/local/lib"
AC_CONFIG_SRCDIR([src/rep.c])
diff --git a/lib/rlib.c b/lib/rlib.c
index d973613..faca2b8 100644
--- a/lib/rlib.c
+++ b/lib/rlib.c
@@ -497,7 +497,7 @@ int repFile(r_context* ctx, FILE* fIn)
ctx->stream.availIn = 0;
/* While we either have more data to put in or more output... */
- while(!feof(fIn) || r == R_DONE)
+ while(r != R_DONE)
{
/* If rlib wants data then give it */
if(r == R_IN)