aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-05-05 21:26:26 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-05-05 21:26:26 +0300
commitf22f1d89719351c5a1164ef47f24aacdca76cd41 (patch)
tree3618bc7737f28aaa1a6dec44657d50164d2a34ad /eval.c
parent1387c9a6046ba3a3e9ce8343daac42e1086efa6b (diff)
downloadegawk-f22f1d89719351c5a1164ef47f24aacdca76cd41.tar.gz
egawk-f22f1d89719351c5a1164ef47f24aacdca76cd41.tar.bz2
egawk-f22f1d89719351c5a1164ef47f24aacdca76cd41.zip
PROCINFO sorting only if not posix. Doc updates.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/eval.c b/eval.c
index 8e0eff99..02ca13e3 100644
--- a/eval.c
+++ b/eval.c
@@ -2197,8 +2197,11 @@ post:
sorted_in = make_string("sorted_in", 9);
sort_str = NULL;
- /* if there's no PROCINFO[], there's no ["sorted_in"], so no sorting */
- if (PROCINFO_node != NULL)
+ /*
+ * If posix, or if there's no PROCINFO[],
+ * there's no ["sorted_in"], so no sorting
+ */
+ if (! do_posix && PROCINFO_node != NULL)
sort_str = in_array(PROCINFO_node, sorted_in);
if (sort_str != NULL) {
@@ -2209,9 +2212,11 @@ post:
list = assoc_list(array, how_to_sort, SORTED_IN);
- list[num_elems] = array; /* actual array for use in
- * lint warning in Op_arrayfor_incr
- */
+ /*
+ * Actual array for use in lint warning
+ * in Op_arrayfor_incr
+ */
+ list[num_elems] = array;
arrayfor:
getnode(r);