grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v2.14-23-gce9c968


From: Paul Eggert
Subject: grep branch, master, updated. v2.14-23-gce9c968
Date: Wed, 03 Apr 2013 00:31:48 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  ce9c968474c8058568963658b0fc3b04f8e43adf (commit)
      from  a25802fcb14ef02e94855fdb320454f15e12d6a9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=ce9c968474c8058568963658b0fc3b04f8e43adf


commit ce9c968474c8058568963658b0fc3b04f8e43adf
Author: Paul Eggert <address@hidden>
Date:   Tue Apr 2 17:31:19 2013 -0700

    build: make dfa.c closer to Gawk's
    
    * src/dfa.c: Include <stddef.h>, not <sys/types.h>.
    stddef.h is smaller and is all we need and is portable nowadays.
    Include <wchar.h> and <wctype.h> only if MBS_SUPPORT.

diff --git a/src/dfa.c b/src/dfa.c
index 39a5563..fe08f34 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -27,7 +27,7 @@
 #include <assert.h>
 #include <ctype.h>
 #include <stdio.h>
-#include <sys/types.h>
+#include <stddef.h>
 #include <stdlib.h>
 #include <limits.h>
 #include <string.h>
@@ -50,9 +50,12 @@
 #include "gettext.h"
 #define _(str) gettext (str)
 
-#include "mbsupport.h"          /* defines MBS_SUPPORT if appropriate */
-#include <wchar.h>
-#include <wctype.h>
+#include "mbsupport.h"          /* defines MBS_SUPPORT to 1 or 0, as 
appropriate */
+#if MBS_SUPPORT
+/* We can handle multibyte strings. */
+# include <wchar.h>
+# include <wctype.h>
+#endif
 
 #if HAVE_LANGINFO_CODESET
 # include <langinfo.h>

-----------------------------------------------------------------------

Summary of changes:
 src/dfa.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]