Re: [PATCH] Lose perl dependency. (fwd)
On Thursday 2007 January 18 13:57, Johannes Schindelin wrote:
I think this would be clearer if next were renamed...
Show 10 quoted lines
> +struct commit_list *reverse_commit_list(struct commit_list *list)
> +{
> + struct commit_list *prev = NULL, *current, *backup;
> + for (current = list; current; current = backup) {
> + backup = current->next;
> + current->next = prev;
> + prev = current;
> + }
> + return next;
> +}--
Dr Andy Parkins, M Eng (hons), MIEE
andyparkins@gmail.com