<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/test-ctype.c, branch v2.3.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2011-10-03T18:44:03Z</updated>
<entry>
<title>test-ctype: add test for is_pathspec_magic</title>
<updated>2011-10-03T18:44:03Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2011-10-01T16:39:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=32ec23162e9c77f4648cf0bdc7b3a60ac7f00929'/>
<id>urn:sha1:32ec23162e9c77f4648cf0bdc7b3a60ac7f00929</id>
<content type='text'>
Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>test-ctype: macrofy</title>
<updated>2011-10-03T18:43:04Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2011-10-01T16:36:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c37c004b0e22806fd976abe5ece800656af2653e'/>
<id>urn:sha1:c37c004b0e22806fd976abe5ece800656af2653e</id>
<content type='text'>
Rewrite test-ctype to use a global variable and a macro instead of
wrapper functions for each character class and complicated structs
with loops going through them.  The resulting code may be uglier,
but that's OK for a test program, and it's actually easier to read
and extend.  And much shorter.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add is_regex_special()</title>
<updated>2009-01-18T02:30:41Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2009-01-17T15:50:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f9b7cce61cbd19c99e89b859b5909f0741111185'/>
<id>urn:sha1:f9b7cce61cbd19c99e89b859b5909f0741111185</id>
<content type='text'>
Add is_regex_special(), a character class macro for chars that have a
special meaning in regular expressions.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Change NUL char handling of isspecial()</title>
<updated>2009-01-18T02:30:37Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2009-01-17T15:50:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8cc32992624ed4140fb136d98675f0f19b20ba09'/>
<id>urn:sha1:8cc32992624ed4140fb136d98675f0f19b20ba09</id>
<content type='text'>
Replace isspecial() by the new macro is_glob_special(), which is more,
well, specialized.  The former included the NUL char in its character
class, while the letter only included characters that are special to
file name globbing.

The new name contains underscores because they enhance readability
considerably now that it's made up of three words.  Renaming the
function is necessary to document its changed scope.

The call sites of isspecial() are updated to check explicitly for NUL.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add ctype test</title>
<updated>2009-01-18T02:30:23Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2009-01-17T15:50:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b4285c71bcc43c4cc9939b8d170aaf8ddb25f09f'/>
<id>urn:sha1:b4285c71bcc43c4cc9939b8d170aaf8ddb25f09f</id>
<content type='text'>
Manipulating the character class table in ctype.c by hand is error prone.
To ensure that typos are found quickly, add a test program and script.

test-ctype checks the output of the character class macros isspace() et.
al. by applying them on all possible char values and consulting a list of
all characters in the particular class.  It doesn't check tolower() and
toupper(); this could be added later.

The test script t0070-fundamental.sh is created because there is no good
place for the ctype test, yet -- except for t0000-basic.sh perhaps, but
it doesn't run well on Windows, yet.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
