[Pcre-svn] [594] code/trunk: Added #include <string.h> to so…

Página Inicial
Delete this message
Autor: Subversion repository
Data:  
Para: pcre-svn
Assunto: [Pcre-svn] [594] code/trunk: Added #include <string.h> to some .cc files ( needed in some environments).
Revision: 594
          http://vcs.pcre.org/viewvc?view=rev&revision=594
Author:   ph10
Date:     2011-05-01 09:22:12 +0100 (Sun, 01 May 2011)


Log Message:
-----------
Added #include <string.h> to some .cc files (needed in some environments).

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcre_scanner_unittest.cc
    code/trunk/pcrecpp.cc
    code/trunk/pcrecpp_unittest.cc


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2011-05-01 08:14:24 UTC (rev 593)
+++ code/trunk/ChangeLog    2011-05-01 08:22:12 UTC (rev 594)
@@ -8,7 +8,11 @@


2. Two minor typos in pcre_internal.h have been fixed.

+3.  Added #include <string.h> to pcre_scanner_unittest.cc, pcrecpp.cc, and 
+    pcrecpp_unittest.cc. They are needed for strcmp(), memset(), and strchr() 
+    in some environments (e.g. Solaris 10/SPARC using Sun Studio 12U2). 


+
Version 8.12 15-Jan-2011
------------------------


Modified: code/trunk/pcre_scanner_unittest.cc
===================================================================
--- code/trunk/pcre_scanner_unittest.cc    2011-05-01 08:14:24 UTC (rev 593)
+++ code/trunk/pcre_scanner_unittest.cc    2011-05-01 08:22:12 UTC (rev 594)
@@ -37,6 +37,7 @@
 #endif


 #include <stdio.h>
+#include <string.h>      /* for strchr */
 #include <string>
 #include <vector>



Modified: code/trunk/pcrecpp.cc
===================================================================
--- code/trunk/pcrecpp.cc    2011-05-01 08:14:24 UTC (rev 593)
+++ code/trunk/pcrecpp.cc    2011-05-01 08:22:12 UTC (rev 594)
@@ -37,6 +37,7 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <limits.h>      /* for SHRT_MIN, USHRT_MAX, etc */
+#include <string.h>      /* for memcpy */
 #include <assert.h>
 #include <errno.h>
 #include <string>


Modified: code/trunk/pcrecpp_unittest.cc
===================================================================
--- code/trunk/pcrecpp_unittest.cc    2011-05-01 08:14:24 UTC (rev 593)
+++ code/trunk/pcrecpp_unittest.cc    2011-05-01 08:22:12 UTC (rev 594)
@@ -38,6 +38,7 @@
 #endif


 #include <stdio.h>
+#include <string.h>      /* for memset and strcmp */
 #include <cassert>
 #include <vector>
 #include "pcrecpp.h"