summaryrefslogtreecommitdiff
path: root/libguile/eval.h
diff options
context:
space:
mode:
authorDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2003-04-22 23:32:40 +0000
committerDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2003-04-22 23:32:40 +0000
commitd339981a5a1dd88fabbf02d72503d8c819a6f199 (patch)
tree13e9171797f073a2d92f3792022166e00bf0a335 /libguile/eval.h
parent2d2f76fc5fb75f894881ea10a6223ee52dc333e5 (diff)
downloadguile-d339981a5a1dd88fabbf02d72503d8c819a6f199.tar.gz
* test-suite/tests/sort.test: Added. Both tests in that file did
fail (one even with a segfault) with CVS guile before the recent changes to libguile/sort.c. * libguile/sort.c: Replaced hand-made trampline code by the new official mechanism from eval.c. This fixes a segfault in the new test file test-suite/tests/sort.test. (quicksort, compare_function, scm_restricted_vector_sort_x, scm_sorted_p, scm_merge, scm_merge_list_x, scm_merge_x, scm_merge_list_step, scm_sort_x, scm_sort, scm_merge_vector_x, scm_merge_vector_step, scm_stable_sort_x, scm_stable_sort, scm_sort_list_x, scm_sort_list): Use trampoline mechanism from eval.c. (subr2less, lsubrless, closureless, applyless, scm_cmp_function, cmp_fun_t): Removed. (compare_function): Added. * libguile/sort.c (quicksort, SWAP, stack_node): Replaced pointer arithmetics with index arithmetics. Changed quicksort to work on an array of SCM values instead of an array of characters. Avoid bytewise copying of SCM elements. Avoid allocating memory on the stack with alloca. Fixed some comments.
Diffstat (limited to 'libguile/eval.h')
0 files changed, 0 insertions, 0 deletions