Thread (9 messages) flat view 9 messages, 4 authors, 2017-10-30

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

From: René Scharfe <hidden>
Date: 2017-10-26 17:12:33

Possibly related (same subject, not in this thread)

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 comparision.
+ */
+extern int xdiff_compare_lines(const char *l1, long s1,
+			       const char *l2, long s2, long flags);
With the added comment it's OK here.

Still, I find the tendency in libxdiff to use the shortest possible
variable names to be hard on the eyes.  That math-like notation may have
its place in that external library, but I think we should be careful
lest it spreads.

René
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help