aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-04-28 16:48:19 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-04-28 16:48:19 +0300
commit09c533438cd709076c29bb61585833e2c4d67f97 (patch)
treea1e120c585af7398bf991db9e298a2286a269df6 /builtin.c
parent6853b3e94c03194200c5a7c4450820a8eaa0920f (diff)
downloadegawk-09c533438cd709076c29bb61585833e2c4d67f97.tar.gz
egawk-09c533438cd709076c29bb61585833e2c4d67f97.tar.bz2
egawk-09c533438cd709076c29bb61585833e2c4d67f97.zip
Add lint warning for isarray.
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin.c b/builtin.c
index 0241c297..afa06e43 100644
--- a/builtin.c
+++ b/builtin.c
@@ -481,6 +481,12 @@ do_isarray(int nargs)
{
NODE *tmp;
int ret = 1;
+ static bool warned = false;
+
+ if (do_lint && ! warned) {
+ warned = true;
+ lintwarn(_("isarray is deprecated. Use typeof() instead"));
+ }
tmp = POP();
if (tmp->type != Node_var_array) {