[PATCH 0/2] Argument order shouldn't matter

From: Andreas Ericsson <ae@op5.se>
Date: 2006-01-12 07:43:10
Many of the C-programs in the git suite are sensitive to argument
ordering. That's a bit backwards for a modern tool-kit.

The first of these two patches provides some simple library code
to handle arbitrary pointers in a stack-like manner, although in
addition to stack_push() and stack_pop(), with their obvious meanings,
there's also stack_pull() which fetches from the bottom of the stack.
Err... that is, it fetches the least recently pushed item first.

The second patch is just an example of its implementation so we can
get the discussions going.

--
 Makefile   |    4 ++--
 describe.c |   15 ++++++++++-----
 stack.c    |   42 ++++++++++++++++++++++++++++++++++++++++++
 stack.h    |    9 +++++++++
 4 files changed, 63 insertions(+), 7 deletions(-)
--
git version 1.1.0
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Jan 12 07:43:10 2006

This archive was generated by hypermail 2.1.8 : 2006-01-12 07:43:19 EST