Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH 6/7] include $PATH in generating list of commands for "help -a"

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:45

Scott R Parish [off-list ref] writes:
+	while (1) {
+		if ((colon = strchr(path, ':')))
+			*colon = 0;
+
+		len = list_commands_in_dir(&other_cmds, path);
+		longest = MAX(longest, len);
Where do we borrow this MAX() macro?

On Linux with glibc, /usr/include/sys/param.h which is included
by git-compat-util.h (meaning, for everybody) is where we find
it, but that somehow does not sound portable assumption.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help