diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-11-02 20:21:46 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-11-02 20:21:46 +0200 |
commit | 0c075409a9a17bbc774880fdf1110251493f5f57 (patch) | |
tree | 342aa6ad703d6cc8bb8b34cda04dffb277204c16 /node.c | |
parent | ba3fd3d4ab19184a84720772b861c10ffb595cf0 (diff) | |
download | egawk-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 * |