aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-10-24 09:42:51 -0400
committerArnold D. Robbins <arnold@skeeve.com>2019-10-24 09:42:51 -0400
commit961eec1fb550c90fa9ae09eebc42dd072f1b7718 (patch)
tree39af0e374a2e5805a5d15dfdc5d5bec0983ec3d5
parent6589208eaf7e7da73a5a3fe8420c37c970206edc (diff)
downloadone-true-awk-961eec1fb550c90fa9ae09eebc42dd072f1b7718.tar.gz
Additional fixes after merge of PR 53.
-rw-r--r--FIXES4
-rw-r--r--awk.h1
-rw-r--r--main.c2
-rw-r--r--makefile2
4 files changed, 7 insertions, 2 deletions
diff --git a/FIXES b/FIXES
index 3bb1e4b..1e8e2f4 100644
--- a/FIXES
+++ b/FIXES
@@ -25,6 +25,10 @@ THIS SOFTWARE.
This file lists all bug fixes, changes, etc., made since the AWK book
was sent to the printers in August, 1987.
+October 24, 2019:
+ Import second round of code cleanups from NetBSD. Much thanks
+ to Christos Zoulas (Github user zoulasc). Merges PR 53.
+
October 17, 2019:
Import code cleanups from NetBSD. Much thanks to Christos
Zoulas (Github user zoulasc). Merges PR 51.
diff --git a/awk.h b/awk.h
index c7bfacc..fa76ffc 100644
--- a/awk.h
+++ b/awk.h
@@ -23,6 +23,7 @@ THIS SOFTWARE.
****************************************************************/
#include <assert.h>
+#include <stdint.h>
typedef double Awkfloat;
diff --git a/main.c b/main.c
index fc0dd7b..27dd6cf 100644
--- a/main.c
+++ b/main.c
@@ -22,7 +22,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
****************************************************************/
-const char *version = "version 20191017";
+const char *version = "version 20191024";
#define DEBUG
#include <stdio.h>
diff --git a/makefile b/makefile
index afaa02f..1843444 100644
--- a/makefile
+++ b/makefile
@@ -30,7 +30,7 @@ CFLAGS = -O2
#CC = gcc -Wall -g -Wwrite-strings
#CC = gcc -O4 -Wall -pedantic -fno-strict-aliasing
#CC = gcc -fprofile-arcs -ftest-coverage # then gcov f1.c; cat f1.c.gcov
-HOSTCC = gcc -g -Wall -pedantic
+HOSTCC = gcc -g -Wall -pedantic -Wcast-qual
CC = $(HOSTCC) # change this is cross-compiling.
# yacc options. pick one; this varies a lot by system.