From: Andy Parkins Date: Thu, 18 Jan 2007 15:00:16 GMT Subject: Re: [PATCH] Lose perl dependency. (fwd) Message-ID: <200701181500.17970.andyparkins@gmail.com> In-Reply-To: On Thursday 2007 January 18 13:57, Johannes Schindelin wrote: I think this would be clearer if next were renamed... > +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; > +} Andy -- Dr Andy Parkins, M Eng (hons), MIEE andyparkins@gmail.com