Re: [PATCH 1/2] xdiff-interface: export comparing and hashing strings

2017-10-27 Thread Stefan Beller
On Fri, Oct 27, 2017 at 12:12 AM, Junio C Hamano wrote: > René Scharfe writes: > >> Am 25.10.2017 um 20:49 schrieb Stefan Beller: >>> +/* >>> + * Compare the strings l1 with l2 which are of size s1 and s2 respectively. >>> + * Returns 1 if the strings are deemed equal, 0 otherwise. >>> + * The `f

Re: [PATCH 1/2] xdiff-interface: export comparing and hashing strings

2017-10-27 Thread Junio C Hamano
René Scharfe writes: > Am 25.10.2017 um 20:49 schrieb Stefan Beller: >> +/* >> + * Compare the strings l1 with l2 which are of size s1 and s2 respectively. >> + * Returns 1 if the strings are deemed equal, 0 otherwise. >> + * The `flags` given as XDF_WHITESPACE_FLAGS determine how white spaces >>

Re: [PATCH 1/2] xdiff-interface: export comparing and hashing strings

2017-10-26 Thread René Scharfe
Am 25.10.2017 um 20:49 schrieb Stefan Beller: > +/* > + * Compare the strings l1 with l2 which are of size s1 and s2 respectively. > + * Returns 1 if the strings are deemed equal, 0 otherwise. > + * The `flags` given as XDF_WHITESPACE_FLAGS determine how white spaces > + * are treated for the compa

[PATCH 1/2] xdiff-interface: export comparing and hashing strings

2017-10-25 Thread Stefan Beller
This will turn out to be useful in a later patch. xdl_recmatch is exported in xdiff/xutils.h, to be used by various xdiff/*.c files, but not outside of xdiff/. This one makes it available to the outside, too. While at it, add documentation. Signed-off-by: Stefan Beller --- xdiff-interface.c |

Re: [PATCH 1/2] xdiff-interface: export comparing and hashing strings

2017-10-24 Thread Eric Sunshine
On Tue, Oct 24, 2017 at 7:42 PM, Stefan Beller wrote: > This will turn out to be useful in a later patch. > > xdl_recmatch is exported in xdiff/xutils.h, to be used by various > xdiff/*.c files, but not outside of xdiff/. This one makes it available > to the outside, too. > > While at it, add docu

[PATCH 1/2] xdiff-interface: export comparing and hashing strings

2017-10-24 Thread Stefan Beller
This will turn out to be useful in a later patch. xdl_recmatch is exported in xdiff/xutils.h, to be used by various xdiff/*.c files, but not outside of xdiff/. This one makes it available to the outside, too. While at it, add documentation. Signed-off-by: Stefan Beller --- xdiff-interface.c |