cubicdaiya / dtl

diff template library written by C++
Other
281 stars 50 forks source link

Made DTL_SEPARATE_SIZE and DTL_CONTEXT_SIZE dynamic. #5

Open wingunder opened 4 years ago

wingunder commented 4 years ago

This patch replaces the DTL_SEPARATE_SIZE and DTL_CONTEXT_SIZE constants. The API however stays backwards compatible. The user now has the option to set the separateSize amd contextSize, when calling composeUnifiedHunks().

eg. diff.composeUnifiedHunks(20, 5);

yohooyohoo commented 2 years ago

Can we merge this PR? I think this is useful feature.