djpnewton/kowhai — Issue #9: need merge routine
Author: othane
Created: 2011-12-04 05:58:55+00:00
State: open

Need a routine to merge two trees from dst in src. It should merge nodes (copy values from src into dst) that are common in path between dst and src. Unique items in dst should be left alone (ie retain their values). Unique items in src should be ignored. All array items should be merged accross.

Only matching types should be merged across from src to dst. It may be desirable to allow upcasting ie uint16_t to uint32_t ?

Arrays should be merged if they are the same length. It may be desireable to allow smaller arrays to merge into bigger ones if a uint8_t bitmap[2] can merge into a uint8_t bitmap[5] but not visa versa, or it may be desireable to merge as many elements as will fit ??