author | Junio C Hamano <junkio@cox.net> | |
Mon, 5 Dec 2005 19:54:29 +0000 (11:54 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 5 Dec 2005 23:50:29 +0000 (15:50 -0800) | ||
commit | 4050c0df8ec7043315e2192695de432875239775 | |
tree | 36ea762082320aae037a95157c6c7f0ffc383046 | tree | snapshot |
parent | cd8c4589473d2a6669cf882ebcd708a2d81e9168 | commit | diff |
Clean up compatibility definitions.
This attempts to clean up the way various compatibility
functions are defined and used.
- A new header file, git-compat-util.h, is introduced. This
looks at various NO_XXX and does necessary function name
replacements, equivalent of -Dstrcasestr=gitstrcasestr in the
Makefile.
- Those function name replacements are removed from the Makefile.
- Common features such as usage(), die(), xmalloc() are moved
from cache.h to git-compat-util.h; cache.h includes
git-compat-util.h itself.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This attempts to clean up the way various compatibility
functions are defined and used.
- A new header file, git-compat-util.h, is introduced. This
looks at various NO_XXX and does necessary function name
replacements, equivalent of -Dstrcasestr=gitstrcasestr in the
Makefile.
- Those function name replacements are removed from the Makefile.
- Common features such as usage(), die(), xmalloc() are moved
from cache.h to git-compat-util.h; cache.h includes
git-compat-util.h itself.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | diff | blob | history | |
cache.h | diff | blob | history | |
compat/mmap.c | diff | blob | history | |
compat/strcasestr.c | diff | blob | history | |
git-compat-util.h | [new file with mode: 0644] | blob |
git.c | diff | blob | history | |
mailinfo.c | diff | blob | history | |
usage.c | diff | blob | history |