aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-11-02 20:21:46 +0200
committerArnold D. Robbins <arnold@skeeve.com>2020-11-02 20:21:46 +0200
commit0c075409a9a17bbc774880fdf1110251493f5f57 (patch)
tree342aa6ad703d6cc8bb8b34cda04dffb277204c16 /node.c
parentba3fd3d4ab19184a84720772b861c10ffb595cf0 (diff)
downloadegawk-0c075409a9a17bbc774880fdf1110251493f5f57.tar.gz
egawk-0c075409a9a17bbc774880fdf1110251493f5f57.tar.bz2
egawk-0c075409a9a17bbc774880fdf1110251493f5f57.zip
Rework scalar comparisons to be (more) like in C.
Diffstat (limited to 'node.c')
-rw-r--r--node.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/node.c b/node.c
index 707d106d..772131a2 100644
--- a/node.c
+++ b/node.c
@@ -25,7 +25,7 @@
*/
#include "awk.h"
-#include "math.h"
+#include <math.h>
#include "floatmagic.h" /* definition of isnan */
static int is_ieee_magic_val(const char *val);
@@ -367,7 +367,7 @@ int
cmp_awknums(const NODE *t1, const NODE *t2)
{
/*
- * This routine is also used to sort numeric array indices or values.
+ * This routine is used to sort numeric array indices or values.
* For the purposes of sorting, NaN is considered greater than
* any other value, and all NaN values are considered equivalent and equal.
* This isn't in compliance with IEEE standard, but compliance w.r.t. NaN
@@ -387,7 +387,6 @@ cmp_awknums(const NODE *t1, const NODE *t2)
return 1;
}
-
/* make_str_node --- make a string node */
NODE *