* [PATCH 0/2] Argument order shouldn't matter
@ 2006-01-11 20:42 Andreas Ericsson
0 siblings, 0 replies; only message in thread
From: Andreas Ericsson @ 2006-01-11 20:42 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-11 20:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-11 20:42 [PATCH 0/2] Argument order shouldn't matter Andreas Ericsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).