edit_distance: Rename ED_STACK_ELEMS ED_STACK_DIST_VALS
authorKevin Locke <kevin@kevinlocke.name>
Sun, 27 Nov 2016 00:44:01 +0000 (17:44 -0700)
committerKevin Locke <kevin@kevinlocke.name>
Sun, 27 Nov 2016 00:44:01 +0000 (17:44 -0700)
commit346058c002415e57c6ed36efcfacb6813150aaa7
tree600a37840a5edef2ed058cae6787deb859b89084
parent18cbdae86fd7d387a625f1140b8288ed634658e1
edit_distance: Rename ED_STACK_ELEMS ED_STACK_DIST_VALS

The previous name was misleading, since it does not define the number of
elements (ed_elem) on the stack, but rather the number of distance
values (ed_dist).  Rename to make this more clear and add more
documentation about what it does and how best to define it.

Note:  This is an API change for custom-compiled versions, but since the
module has only been included for a couple days I don't think it's worth
a back-compat #ifdef at this point.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
ccan/edit_distance/edit_distance-params.h
ccan/edit_distance/edit_distance_dl.c
ccan/edit_distance/edit_distance_lcs.c
ccan/edit_distance/edit_distance_lev.c
ccan/edit_distance/edit_distance_rdl.c
ccan/edit_distance/test/run-weights.c