edit_distance: Rename ED_STACK_ELEMS ED_STACK_DIST_VALS
[ccan] / ccan / edit_distance / edit_distance_lcs.c
index e612c73c031e27d45f791910f8f43fd53ae61ca4..4bc867e6716fe3f278fc63f254ce65c1397909a3 100644 (file)
@@ -16,10 +16,10 @@ ed_dist edit_distance_lcs(const ed_elem *src, ed_size slen,
        /* Optimization: Avoid malloc when row of distance matrix can fit on
         * the stack.
         */
        /* Optimization: Avoid malloc when row of distance matrix can fit on
         * the stack.
         */
-       ed_dist stackdist[ED_STACK_ELEMS];
+       ed_dist stackdist[ED_STACK_DIST_VALS];
 
        /* One row of the Wagner-Fischer distance matrix. */
 
        /* One row of the Wagner-Fischer distance matrix. */
-       ed_dist *dist = slen < ED_STACK_ELEMS ? stackdist :
+       ed_dist *dist = slen < ED_STACK_DIST_VALS ? stackdist :
            malloc((slen + 1) * sizeof(ed_dist));
 
        /* Initialize row with cost to delete src[0..i-1] */
            malloc((slen + 1) * sizeof(ed_dist));
 
        /* Initialize row with cost to delete src[0..i-1] */