aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--Makefile.am2
-rw-r--r--Makefile.in3
-rw-r--r--awkgram.c4
-rw-r--r--awkgram.y4
-rw-r--r--cmd.h2
-rw-r--r--dfa.c1
-rw-r--r--extension/ChangeLog4
-rw-r--r--extension/gawkfts.c2
9 files changed, 22 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 22e45ff8..2e1592b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2013-01-25 Arnold D. Robbins <arnold@skeeve.com>
+
+ * awkgram.y (parms_shadow): Change int param to bool.
+ * cmd.h (output_is_tty): Sync type with rest of code (is bool).
+ * dfa.c (MALLOC): Undef first, for Irix.
+ * Makefile.am (LDADD): Use LIBREADLINE and LIBMPFR instead of
+ automake substitutions.
+
2013-01-23 Arnold D. Robbins <arnold@skeeve.com>
* awk.h (list_functions): Change parameter to bool.
diff --git a/Makefile.am b/Makefile.am
index 085eadfe..8d387e98 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -130,7 +130,7 @@ base_sources = \
gawk_SOURCES = $(base_sources)
# Get extra libs as needed, Automake will supply LIBINTL and SOCKET_LIBS.
-LDADD = $(LIBSIGSEGV) $(LIBINTL) $(SOCKET_LIBS) @LIBREADLINE@ @LIBMPFR@
+LDADD = $(LIBSIGSEGV) $(LIBINTL) $(SOCKET_LIBS) $(LIBREADLINE) $(LIBMPFR)
# Directory for gawk's data files. Automake supplies datadir.
pkgdatadir = $(datadir)/awk
diff --git a/Makefile.in b/Makefile.in
index 2c7e9489..40d0be95 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -117,6 +117,7 @@ gawk_OBJECTS = $(am_gawk_OBJECTS)
gawk_LDADD = $(LDADD)
am__DEPENDENCIES_1 =
gawk_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
DEFAULT_INCLUDES = -I.@am__isrc@
depcomp = $(SHELL) $(top_srcdir)/depcomp
@@ -458,7 +459,7 @@ base_sources = \
gawk_SOURCES = $(base_sources)
# Get extra libs as needed, Automake will supply LIBINTL and SOCKET_LIBS.
-LDADD = $(LIBSIGSEGV) $(LIBINTL) $(SOCKET_LIBS) @LIBREADLINE@ @LIBMPFR@
+LDADD = $(LIBSIGSEGV) $(LIBINTL) $(SOCKET_LIBS) $(LIBREADLINE) $(LIBMPFR)
# stuff for compiling gawk/pgawk
DEFPATH = '".$(PATH_SEPARATOR)$(pkgdatadir)"'
diff --git a/awkgram.c b/awkgram.c
index 07a6dce8..d15e5ac8 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -87,7 +87,7 @@ static char **check_params(char *fname, int pcount, INSTRUCTION *list);
static int install_function(char *fname, INSTRUCTION *fi, INSTRUCTION *plist);
static NODE *mk_rexp(INSTRUCTION *exp);
static void param_sanity(INSTRUCTION *arglist);
-static int parms_shadow(INSTRUCTION *pc, int *shadow);
+static int parms_shadow(INSTRUCTION *pc, bool *shadow);
#ifndef NO_LINT
static int isnoeffect(OPCODE type);
#endif
@@ -6530,7 +6530,7 @@ snode(INSTRUCTION *subn, INSTRUCTION *r)
/* parms_shadow --- check if parameters shadow globals */
static int
-parms_shadow(INSTRUCTION *pc, int *shadow)
+parms_shadow(INSTRUCTION *pc, bool *shadow)
{
int pcount, i;
bool ret = false;
diff --git a/awkgram.y b/awkgram.y
index a6dff9e0..71e70de5 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -46,7 +46,7 @@ static char **check_params(char *fname, int pcount, INSTRUCTION *list);
static int install_function(char *fname, INSTRUCTION *fi, INSTRUCTION *plist);
static NODE *mk_rexp(INSTRUCTION *exp);
static void param_sanity(INSTRUCTION *arglist);
-static int parms_shadow(INSTRUCTION *pc, int *shadow);
+static int parms_shadow(INSTRUCTION *pc, bool *shadow);
#ifndef NO_LINT
static int isnoeffect(OPCODE type);
#endif
@@ -3994,7 +3994,7 @@ snode(INSTRUCTION *subn, INSTRUCTION *r)
/* parms_shadow --- check if parameters shadow globals */
static int
-parms_shadow(INSTRUCTION *pc, int *shadow)
+parms_shadow(INSTRUCTION *pc, bool *shadow)
{
int pcount, i;
bool ret = false;
diff --git a/cmd.h b/cmd.h
index 382f1bd4..b321863a 100644
--- a/cmd.h
+++ b/cmd.h
@@ -38,7 +38,7 @@ extern int gprintf(FILE *fp, const char *format, ...);
extern jmp_buf pager_quit_tag;
extern bool pager_quit_tag_valid;
-extern int output_is_tty;
+extern bool output_is_tty;
extern int input_fd;
extern bool input_from_tty;
extern FILE *out_fp;
diff --git a/dfa.c b/dfa.c
index a7f69386..8782e468 100644
--- a/dfa.c
+++ b/dfa.c
@@ -480,6 +480,7 @@ static void regexp (void);
(sizeof (t) == 1 ? xzalloc (n) : xcalloc (n, sizeof (t)))
#define CALLOC(p, n) do { (p) = XCALLOC (n, *(p)); } while (0)
+#undef MALLOC /* Irix defines this */
#define MALLOC(p, n) do { (p) = XNMALLOC (n, *(p)); } while (0)
#define REALLOC(p, n) do {(p) = xnrealloc (p, n, sizeof (*(p))); } while (0)
diff --git a/extension/ChangeLog b/extension/ChangeLog
index e2490e92..4752e959 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,3 +1,7 @@
+2013-01-25 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawkfts.c: Make include of <limits.h> be unconditional.
+
2013-01-22 Arnold D. Robbins <arnold@skeeve.com>
Improve portability. We hope.
diff --git a/extension/gawkfts.c b/extension/gawkfts.c
index 2a03b4f1..e70a154b 100644
--- a/extension/gawkfts.c
+++ b/extension/gawkfts.c
@@ -41,12 +41,12 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#define _BSD_SOURCE
+#include <limits.h>
/* #include "namespace.h" */
#ifndef ZOS_USS
#include <sys/param.h>
#else
#include <stdio.h>
-#include <limits.h>
#endif /* ZOS_USS */
#include <sys/stat.h>