aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-03-05 14:26:15 +0200
committerArnold D. Robbins <arnold@skeeve.com>2021-03-05 14:26:15 +0200
commitb9931e852ba21180c380639135f96cdcd0a3015f (patch)
treef9941c423cacfcdbeec956dfd6d1150ad7e17bf6 /builtin.c
parent09887734833d47e9c2ea1203689a9bc7bccae723 (diff)
downloadegawk-b9931e852ba21180c380639135f96cdcd0a3015f.tar.gz
egawk-b9931e852ba21180c380639135f96cdcd0a3015f.tar.bz2
egawk-b9931e852ba21180c380639135f96cdcd0a3015f.zip
Start on a bool type for gawk.
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/builtin.c b/builtin.c
index 1b612f4a..67a89bd1 100644
--- a/builtin.c
+++ b/builtin.c
@@ -4112,7 +4112,10 @@ do_typeof(int nargs)
}
break;
case Node_val:
- switch (fixtype(arg)->flags & (STRING|NUMBER|USER_INPUT|REGEX)) {
+ switch (fixtype(arg)->flags & (STRING|NUMBER|USER_INPUT|REGEX|BOOL)) {
+ case BOOL:
+ res = "bool";
+ break;
case NUMBER:
res = "number";
break;