summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-12-08 21:20:11 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-12-08 21:20:11 +0200
commitc5da922b0486462028584e4568d6e00d1a4f2783 (patch)
treede1d17b273449e5aa03dcbf79d53edbc0bc3b157 /array.c
parent69239a8fd65ad7f55cc2d567c933a800d5d10fac (diff)
parentd586094c7c4a9a412a7633a32d2b92a8e1cfea1c (diff)
downloadgawk-c5da922b0486462028584e4568d6e00d1a4f2783.tar.gz
Merge branch 'gawk-4.0-stable'
Diffstat (limited to 'array.c')
-rw-r--r--array.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/array.c b/array.c
index 2a89a606..90679b72 100644
--- a/array.c
+++ b/array.c
@@ -1219,7 +1219,6 @@ sort_user_func(const void *p1, const void *p2)
NODE *idx1, *idx2, *val1, *val2;
AWKNUM ret;
INSTRUCTION *code;
- extern int exiting;
idx1 = *((NODE *const *) p1);
idx2 = *((NODE *const *) p2);
@@ -1244,9 +1243,6 @@ sort_user_func(const void *p1, const void *p2)
/* execute the comparison function */
(void) interpret(code);
- if (exiting) /* do not assume anything about the user-defined function! */
- gawk_exit(exit_val);
-
/* return value of the comparison function */
POP_NUMBER(ret);
@@ -1346,9 +1342,9 @@ assoc_list(NODE *symbol, const char *sort_str, SORT_CTXT sort_ctxt)
(code + 1)->expr_count = 4; /* function takes 4 arguments */
code->nexti = bcalloc(Op_stop, 1, 0);
- /* make non-local jumps `next' and `nextfile' fatal in
+ /* make non-redirected getline, exit, `next' and `nextfile' fatal in
* callback function by setting currule in interpret()
- * to undefined (0). `exit' is handled in sort_user_func.
+ * to undefined (0).
*/
save_rule = currule; /* save current rule */