<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/win32/regcomp.c, branch long_paths</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=long_paths</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=long_paths'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2021-08-09T13:58:37+00:00</updated>
<entry>
<title>win32: code shrink character class detection</title>
<updated>2021-08-09T13:58:37+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-08-09T13:58:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=56e1d04ae71a05586fa3414aabdef0de720d0720'/>
<id>urn:sha1:56e1d04ae71a05586fa3414aabdef0de720d0720</id>
<content type='text'>
Add a routine to detect the names of character classes.  Use it
in fnmatch(3) and regcomp(3), replacing local code in the former.

Saves 216 bytes.
</content>
</entry>
<entry>
<title>win32/regex: fix compile warnings</title>
<updated>2017-07-14T20:57:49+00:00</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2017-06-28T10:12:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d416bdac2fff5eed7cfa70499ff61c8b8a9ca7ce'/>
<id>urn:sha1:d416bdac2fff5eed7cfa70499ff61c8b8a9ca7ce</id>
<content type='text'>
There are plenty of warnings that were not detected in Git's source
code, due to some warnings being turned off in Git's build by default
(even with DEVELOPER=1).

The warnings fall into three categories:

- constants being tested via `#if &lt;name&gt;` instead of `#ifdef &lt;name&gt;`

- unused function parameters

- one instance of an unnecessarily-shadowing variable

This patch fixes all of them.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
</content>
</entry>
<entry>
<title>win32/regex: update to newest version in Git</title>
<updated>2017-07-14T20:57:49+00:00</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2017-06-28T09:29:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=dacee10ce244e3da9f2d1f0f43a3224ab9e5d26b'/>
<id>urn:sha1:dacee10ce244e3da9f2d1f0f43a3224ab9e5d26b</id>
<content type='text'>
In 909696f13 (win32: Import regex source, 2010-04-14), Git's
compat/regex/ was imported wholesale, with one change (to avoid
redefining _GNU_SOURCE).

For the record, the git.git commit mentioned in that commit message
refers to a transient commit made to git.git's `next` branch which is
rewound with every major Git version, therefore it is long gone. Also
for the record, the correct reference would be: 3632cfc2487 (Use
compatibility regex library for OSX/Darwin, 2008-09-07), i.e. the
compat/regex/ source code as of Git v1.6.0.2.

This commit updates the regex source code to that of Git v2.13.2, or
bd8f0055836 (regex: fix a SIZE_MAX macro redefinition warning,
2016-06-07) in git.git.

Instead of the original fixup to avoid redefining _GNU_SOURCE, we now
require these changes relative to Git's source code:

&gt; diff --git a/win32/regex.c b/win32/regex.c
&gt; index 5cb23e5d5..95e5d757a 100644
&gt; --- a/win32/regex.c
&gt; +++ b/win32/regex.c
&gt; @@ -18,9 +18,11 @@
&gt;     Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
&gt;     02110-1301 USA.  */
&gt;
&gt; -#ifdef HAVE_CONFIG_H
&gt; -#include "config.h"
&gt; -#endif
&gt; +#define HAVE_LIBINTL_H 0
&gt; +#define ENABLE_NLS 0
&gt; +#define HAVE_ALLOCA 0
&gt; +#define NO_MBSUPPORT 1
&gt; +#define GAWK 1
&gt;
&gt;  /* Make sure no one compiles this code with a C++ compiler.  */
&gt;  #ifdef __cplusplus

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
</content>
</entry>
</feed>
