diff options
author | Nicolas Pitre <nico@cam.org> | 2007-02-26 14:55:56 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-27 01:34:21 -0800 |
commit | 2b87c45ba6f8950ffc44cb6a3c861ad2e5f176a8 (patch) | |
tree | 34eb60eb9067ed846e08579f5d8be11451e123e6 /builtin-add.c | |
parent | d65a16f6c45c9b2a16f3abc45f727dc6507c853d (diff) | |
download | git-2b87c45ba6f8950ffc44cb6a3c861ad2e5f176a8.tar.gz |
sha1_file.c: cleanup "offset" usage
First there are too many offsets there and it is getting confusing.
So 'offset' is now 'curpos' to distinguish from other offsets like
'obj_offset'.
Then structures like x = foo(x, &y) are now done as y = foo(&x).
It looks more natural that the result y be returned directly and
x be passed as reference to be updated in place. This has the effect
of reducing some line length and removing a few, needing a bit less
stack space, and it even reduces the compiled code size.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-add.c')
0 files changed, 0 insertions, 0 deletions