aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-10-17 17:42:51 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-10-17 17:42:51 +0300
commit5c7402f68fb31d70f78243c4d6d9c30a8e8aa9da (patch)
tree13b1674f1f5a5e40c5f1cd43f40bf102f35636d9 /awkgram.c
parentb5f87dcdaff84e5e72684bb1a8fe0160981a66ae (diff)
downloadegawk-5c7402f68fb31d70f78243c4d6d9c30a8e8aa9da.tar.gz
egawk-5c7402f68fb31d70f78243c4d6d9c30a8e8aa9da.tar.bz2
egawk-5c7402f68fb31d70f78243c4d6d9c30a8e8aa9da.zip
Distinguish print $0 from print. Doc updates. Fix case and default.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/awkgram.c b/awkgram.c
index ba43d802..171f1892 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -2882,7 +2882,7 @@ regular_loop:
* which is faster for these two cases.
*/
- if ((yyvsp[-3])->opcode == Op_K_print &&
+ if (do_optimize && (yyvsp[-3])->opcode == Op_K_print &&
((yyvsp[-1]) == NULL
|| ((yyvsp[-1])->lasti->opcode == Op_field_spec
&& (yyvsp[-1])->nexti->nexti->nexti == (yyvsp[-1])->lasti