Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Mar 9, 2006
  1. Use #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))

    Junio C Hamano authored
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jan 25, 2006
  1. Add compat/unsetenv.c .

    Jason Riedy authored Junio C Hamano committed
    Implement a (slow) unsetenv() for older systems.
    
    Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jan 7, 2006
  1. [PATCH] Compilation: zero-length array declaration.

    Junio C Hamano authored
    ISO C99 (and GCC 3.x or later) lets you write a flexible array
    at the end of a structure, like this:
    
    	struct frotz {
    		int xyzzy;
    		char nitfol[]; /* more */
    	};
    
    GCC 2.95 and 2.96 let you to do this with "char nitfol[0]";
    unfortunately this is not allowed by ISO C90.
    
    This declares such construct like this:
    
    	struct frotz {
    		int xyzzy;
    		char nitfol[FLEX_ARRAY]; /* more */
    	};
    
    and git-compat-util.h defines FLEX_ARRAY to 0 for gcc 2.95 and
    empty for others.
    
    If you are using a C90 C compiler, you should be able
    to override this with CFLAGS=-DFLEX_ARRAY=1 from the
    command line of "make".
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Dec 29, 2005
  1. ?alloc: do not return NULL when asked for zero bytes

    Junio C Hamano authored
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Dec 20, 2005
  1. xread/xwrite: do not worry about EINTR at calling sites.

    Junio C Hamano authored
    We had errno==EINTR check after read(2)/write(2) sprinkled all
    over the places, always doing continue.  Consolidate them into
    xread()/xwrite() wrapper routines.
    
    Credits for suggestion goes to HPA -- bugs are mine.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Dec 14, 2005
  1. define MAXPATHLEN for hosts that don't support it

    Martin Atukunda authored Junio C Hamano committed
    [jc: Martin says syllable (www.syllable.org) wants this.]
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Dec 5, 2005
  1. Clean up compatibility definitions.

    Junio C Hamano authored
    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>
Something went wrong with that request. Please try again.