diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-05-05 21:26:26 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-05-05 21:26:26 +0300 |
commit | f22f1d89719351c5a1164ef47f24aacdca76cd41 (patch) | |
tree | 3618bc7737f28aaa1a6dec44657d50164d2a34ad /eval.c | |
parent | 1387c9a6046ba3a3e9ce8343daac42e1086efa6b (diff) | |
download | egawk-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.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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); |