<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-compat-util.h, branch v1.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2006-01-25T23:10:39Z</updated>
<entry>
<title>Add compat/unsetenv.c .</title>
<updated>2006-01-25T23:10:39Z</updated>
<author>
<name>Jason Riedy</name>
<email>ejr@EECS.Berkeley.EDU</email>
</author>
<published>2006-01-25T20:38:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=731043fd4d55b1561ebb5a53daa4b9ff6dfac046'/>
<id>urn:sha1:731043fd4d55b1561ebb5a53daa4b9ff6dfac046</id>
<content type='text'>
Implement a (slow) unsetenv() for older systems.

Signed-off-by: Jason Riedy &lt;ejr@cs.berkeley.edu&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Compilation: zero-length array declaration.</title>
<updated>2006-01-07T18:51:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-01-07T09:33:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8f1d2e6f49ee51ac062ab38337a6a70dd1998def'/>
<id>urn:sha1:8f1d2e6f49ee51ac062ab38337a6a70dd1998def</id>
<content type='text'>
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 &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>?alloc: do not return NULL when asked for zero bytes</title>
<updated>2005-12-29T09:33:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-29T09:31:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4e7a2eccc21c9029180585e43b3b941d0bdf8b3b'/>
<id>urn:sha1:4e7a2eccc21c9029180585e43b3b941d0bdf8b3b</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>xread/xwrite: do not worry about EINTR at calling sites.</title>
<updated>2005-12-20T02:28:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-20T00:18:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1c15afb9343bca82e687d008ec983a9110ac9c40'/>
<id>urn:sha1:1c15afb9343bca82e687d008ec983a9110ac9c40</id>
<content type='text'>
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 &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>define MAXPATHLEN for hosts that don't support it</title>
<updated>2005-12-14T22:26:44Z</updated>
<author>
<name>Martin Atukunda</name>
<email>matlads@dsmagic.com</email>
</author>
<published>2005-12-13T12:21:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=252fef7149204d52ed4b46fd7e8ac8c803ceb0aa'/>
<id>urn:sha1:252fef7149204d52ed4b46fd7e8ac8c803ceb0aa</id>
<content type='text'>
[jc: Martin says syllable (www.syllable.org) wants this.]

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Clean up compatibility definitions.</title>
<updated>2005-12-05T23:50:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-05T19:54:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4050c0df8ec7043315e2192695de432875239775'/>
<id>urn:sha1:4050c0df8ec7043315e2192695de432875239775</id>
<content type='text'>
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 &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
