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

Re: [PATCH 10/14] revert: Persist data for continuation

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:33

Jonathan Nieder [off-list ref] writes:
 /*
  * Example:
  *
  *	struct commit_list *list;
  *	struct commit_list **next = &list;
  *
  *	next = commit_list_append(c1, next);
  *	next = commit_list_append(c2, next);
  *	*next = NULL;
  *	assert(commit_list_count(list) == 2);
  *	return list;
  *
  * Don't forget to NULL-terminate!
  */
I wonder if the optimization to allow omitting unnecessary NULL
termination inside a tight loop by the caller is really worth the
potential trouble, though.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help