1 diff -r c79416ca4228 AUTHORS
2 --- a/AUTHORS Tue May 29 11:50:48 2012 -0400
3 +++ b/AUTHORS Wed Jun 20 19:00:08 2012 +0200
6 # Please keep the list sorted.
8 +Brian Gunlogson <unixman83@gmail.com>
10 Stefano Rivera <stefano.rivera@gmail.com>
11 diff -r c79416ca4228 CONTRIBUTORS
12 --- a/CONTRIBUTORS Tue May 29 11:50:48 2012 -0400
13 +++ b/CONTRIBUTORS Wed Jun 20 19:00:08 2012 +0200
16 # Please keep the list sorted.
18 +Brian Gunlogson <unixman83@gmail.com>
19 Rob Pike <r@google.com>
20 Russ Cox <rsc@swtch.com>
21 Sanjay Ghemawat <sanjay@google.com>
22 diff -r c79416ca4228 mswin/stdint.h
23 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
24 +++ b/mswin/stdint.h Wed Jun 20 19:00:08 2012 +0200
26 +// ISO C9x compliant stdint.h for Microsoft Visual Studio
27 +// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
29 +// Copyright (c) 2006-2008 Alexander Chemeris
31 +// Redistribution and use in source and binary forms, with or without
32 +// modification, are permitted provided that the following conditions are met:
34 +// 1. Redistributions of source code must retain the above copyright notice,
35 +// this list of conditions and the following disclaimer.
37 +// 2. Redistributions in binary form must reproduce the above copyright
38 +// notice, this list of conditions and the following disclaimer in the
39 +// documentation and/or other materials provided with the distribution.
41 +// 3. The name of the author may be used to endorse or promote products
42 +// derived from this software without specific prior written permission.
44 +// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
45 +// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
46 +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
47 +// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
48 +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
49 +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
50 +// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
52 +// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
53 +// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 +///////////////////////////////////////////////////////////////////////////////
57 +#ifndef _MSC_VER // [
58 +#error "Use this header only with Microsoft Visual C++ compilers!"
61 +#ifndef _MSC_STDINT_H_ // [
62 +#define _MSC_STDINT_H_
70 +// For Visual Studio 6 in C++ mode and for many Visual Studio versions when
71 +// compiling for ARM we should wrap <wchar.h> include with 'extern "C++" {}'
72 +// or compiler give many errors like this:
73 +// error C2733: second C linkage of overloaded function 'wmemchr' not allowed
82 +// Define _W64 macros to mark types changing their size, like intptr_t.
84 +# if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
92 +// 7.18.1 Integer types
94 +// 7.18.1.1 Exact-width integer types
96 +// Visual Studio 6 and Embedded Visual C++ 4 doesn't
97 +// realize that, e.g. char has the same size as __int8
98 +// so we give up on __intX for them.
99 +#if (_MSC_VER < 1300)
100 + typedef signed char int8_t;
101 + typedef signed short int16_t;
102 + typedef signed int int32_t;
103 + typedef unsigned char uint8_t;
104 + typedef unsigned short uint16_t;
105 + typedef unsigned int uint32_t;
107 + typedef signed __int8 int8_t;
108 + typedef signed __int16 int16_t;
109 + typedef signed __int32 int32_t;
110 + typedef unsigned __int8 uint8_t;
111 + typedef unsigned __int16 uint16_t;
112 + typedef unsigned __int32 uint32_t;
114 +typedef signed __int64 int64_t;
115 +typedef unsigned __int64 uint64_t;
118 +// 7.18.1.2 Minimum-width integer types
119 +typedef int8_t int_least8_t;
120 +typedef int16_t int_least16_t;
121 +typedef int32_t int_least32_t;
122 +typedef int64_t int_least64_t;
123 +typedef uint8_t uint_least8_t;
124 +typedef uint16_t uint_least16_t;
125 +typedef uint32_t uint_least32_t;
126 +typedef uint64_t uint_least64_t;
128 +// 7.18.1.3 Fastest minimum-width integer types
129 +typedef int8_t int_fast8_t;
130 +typedef int16_t int_fast16_t;
131 +typedef int32_t int_fast32_t;
132 +typedef int64_t int_fast64_t;
133 +typedef uint8_t uint_fast8_t;
134 +typedef uint16_t uint_fast16_t;
135 +typedef uint32_t uint_fast32_t;
136 +typedef uint64_t uint_fast64_t;
138 +// 7.18.1.4 Integer types capable of holding object pointers
140 + typedef signed __int64 intptr_t;
141 + typedef unsigned __int64 uintptr_t;
143 + typedef _W64 signed int intptr_t;
144 + typedef _W64 unsigned int uintptr_t;
147 +// 7.18.1.5 Greatest-width integer types
148 +typedef int64_t intmax_t;
149 +typedef uint64_t uintmax_t;
152 +// 7.18.2 Limits of specified-width integer types
154 +#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) // [ See footnote 220 at page 257 and footnote 221 at page 259
156 +// 7.18.2.1 Limits of exact-width integer types
157 +#define INT8_MIN ((int8_t)_I8_MIN)
158 +#define INT8_MAX _I8_MAX
159 +#define INT16_MIN ((int16_t)_I16_MIN)
160 +#define INT16_MAX _I16_MAX
161 +#define INT32_MIN ((int32_t)_I32_MIN)
162 +#define INT32_MAX _I32_MAX
163 +#define INT64_MIN ((int64_t)_I64_MIN)
164 +#define INT64_MAX _I64_MAX
165 +#define UINT8_MAX _UI8_MAX
166 +#define UINT16_MAX _UI16_MAX
167 +#define UINT32_MAX _UI32_MAX
168 +#define UINT64_MAX _UI64_MAX
170 +// 7.18.2.2 Limits of minimum-width integer types
171 +#define INT_LEAST8_MIN INT8_MIN
172 +#define INT_LEAST8_MAX INT8_MAX
173 +#define INT_LEAST16_MIN INT16_MIN
174 +#define INT_LEAST16_MAX INT16_MAX
175 +#define INT_LEAST32_MIN INT32_MIN
176 +#define INT_LEAST32_MAX INT32_MAX
177 +#define INT_LEAST64_MIN INT64_MIN
178 +#define INT_LEAST64_MAX INT64_MAX
179 +#define UINT_LEAST8_MAX UINT8_MAX
180 +#define UINT_LEAST16_MAX UINT16_MAX
181 +#define UINT_LEAST32_MAX UINT32_MAX
182 +#define UINT_LEAST64_MAX UINT64_MAX
184 +// 7.18.2.3 Limits of fastest minimum-width integer types
185 +#define INT_FAST8_MIN INT8_MIN
186 +#define INT_FAST8_MAX INT8_MAX
187 +#define INT_FAST16_MIN INT16_MIN
188 +#define INT_FAST16_MAX INT16_MAX
189 +#define INT_FAST32_MIN INT32_MIN
190 +#define INT_FAST32_MAX INT32_MAX
191 +#define INT_FAST64_MIN INT64_MIN
192 +#define INT_FAST64_MAX INT64_MAX
193 +#define UINT_FAST8_MAX UINT8_MAX
194 +#define UINT_FAST16_MAX UINT16_MAX
195 +#define UINT_FAST32_MAX UINT32_MAX
196 +#define UINT_FAST64_MAX UINT64_MAX
198 +// 7.18.2.4 Limits of integer types capable of holding object pointers
200 +# define INTPTR_MIN INT64_MIN
201 +# define INTPTR_MAX INT64_MAX
202 +# define UINTPTR_MAX UINT64_MAX
204 +# define INTPTR_MIN INT32_MIN
205 +# define INTPTR_MAX INT32_MAX
206 +# define UINTPTR_MAX UINT32_MAX
209 +// 7.18.2.5 Limits of greatest-width integer types
210 +#define INTMAX_MIN INT64_MIN
211 +#define INTMAX_MAX INT64_MAX
212 +#define UINTMAX_MAX UINT64_MAX
214 +// 7.18.3 Limits of other integer types
217 +# define PTRDIFF_MIN _I64_MIN
218 +# define PTRDIFF_MAX _I64_MAX
220 +# define PTRDIFF_MIN _I32_MIN
221 +# define PTRDIFF_MAX _I32_MAX
224 +#define SIG_ATOMIC_MIN INT_MIN
225 +#define SIG_ATOMIC_MAX INT_MAX
227 +#ifndef SIZE_MAX // [
229 +# define SIZE_MAX _UI64_MAX
231 +# define SIZE_MAX _UI32_MAX
233 +#endif // SIZE_MAX ]
235 +// WCHAR_MIN and WCHAR_MAX are also defined in <wchar.h>
236 +#ifndef WCHAR_MIN // [
237 +# define WCHAR_MIN 0
238 +#endif // WCHAR_MIN ]
239 +#ifndef WCHAR_MAX // [
240 +# define WCHAR_MAX _UI16_MAX
241 +#endif // WCHAR_MAX ]
244 +#define WINT_MAX _UI16_MAX
246 +#endif // __STDC_LIMIT_MACROS ]
249 +// 7.18.4 Limits of other integer types
251 +#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [ See footnote 224 at page 260
253 +// 7.18.4.1 Macros for minimum-width integer constants
255 +#define INT8_C(val) val##i8
256 +#define INT16_C(val) val##i16
257 +#define INT32_C(val) val##i32
258 +#define INT64_C(val) val##i64
260 +#define UINT8_C(val) val##ui8
261 +#define UINT16_C(val) val##ui16
262 +#define UINT32_C(val) val##ui32
263 +#define UINT64_C(val) val##ui64
265 +// 7.18.4.2 Macros for greatest-width integer constants
266 +#define INTMAX_C INT64_C
267 +#define UINTMAX_C UINT64_C
269 +#endif // __STDC_CONSTANT_MACROS ]
272 +#endif // _MSC_STDINT_H_ ]
273 diff -r c79416ca4228 re2.sln
274 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
275 +++ b/re2.sln Wed Jun 20 19:00:08 2012 +0200
278 +Microsoft Visual Studio Solution File, Format Version 10.00
279 +# Visual Studio 2008
280 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "re2", "re2.vcproj", "{494BD4B2-1ADD-4053-981D-BA14D6DF9219}"
281 + ProjectSection(ProjectDependencies) = postProject
282 + {AB36233A-643A-4D2E-93B3-0602DA52C8D5} = {AB36233A-643A-4D2E-93B3-0602DA52C8D5}
285 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "re2_testing", "re2_testing\re2_testing.vcproj", "{1B9A5974-DA06-4F57-BFFC-4DE19B968AE8}"
286 + ProjectSection(ProjectDependencies) = postProject
287 + {494BD4B2-1ADD-4053-981D-BA14D6DF9219} = {494BD4B2-1ADD-4053-981D-BA14D6DF9219}
290 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "util", "util\util.vcproj", "{AB36233A-643A-4D2E-93B3-0602DA52C8D5}"
293 + GlobalSection(SolutionConfigurationPlatforms) = preSolution
294 + Debug|Win32 = Debug|Win32
295 + Release|Win32 = Release|Win32
297 + GlobalSection(ProjectConfigurationPlatforms) = postSolution
298 + {494BD4B2-1ADD-4053-981D-BA14D6DF9219}.Debug|Win32.ActiveCfg = Debug|Win32
299 + {494BD4B2-1ADD-4053-981D-BA14D6DF9219}.Debug|Win32.Build.0 = Debug|Win32
300 + {494BD4B2-1ADD-4053-981D-BA14D6DF9219}.Release|Win32.ActiveCfg = Release|Win32
301 + {494BD4B2-1ADD-4053-981D-BA14D6DF9219}.Release|Win32.Build.0 = Release|Win32
302 + {1B9A5974-DA06-4F57-BFFC-4DE19B968AE8}.Debug|Win32.ActiveCfg = Debug|Win32
303 + {1B9A5974-DA06-4F57-BFFC-4DE19B968AE8}.Debug|Win32.Build.0 = Debug|Win32
304 + {1B9A5974-DA06-4F57-BFFC-4DE19B968AE8}.Release|Win32.ActiveCfg = Release|Win32
305 + {1B9A5974-DA06-4F57-BFFC-4DE19B968AE8}.Release|Win32.Build.0 = Release|Win32
306 + {AB36233A-643A-4D2E-93B3-0602DA52C8D5}.Debug|Win32.ActiveCfg = Debug|Win32
307 + {AB36233A-643A-4D2E-93B3-0602DA52C8D5}.Debug|Win32.Build.0 = Debug|Win32
308 + {AB36233A-643A-4D2E-93B3-0602DA52C8D5}.Release|Win32.ActiveCfg = Release|Win32
309 + {AB36233A-643A-4D2E-93B3-0602DA52C8D5}.Release|Win32.Build.0 = Release|Win32
311 + GlobalSection(SolutionProperties) = preSolution
312 + HideSolutionNode = FALSE
315 diff -r c79416ca4228 re2.vcproj
316 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
317 +++ b/re2.vcproj Wed Jun 20 19:00:08 2012 +0200
319 +<?xml version="1.0" encoding="Windows-1252"?>
320 +<VisualStudioProject
321 + ProjectType="Visual C++"
324 + ProjectGUID="{494BD4B2-1ADD-4053-981D-BA14D6DF9219}"
325 + RootNamespace="re2"
326 + Keyword="Win32Proj"
327 + TargetFrameworkVersion="196613"
339 + OutputDirectory="$(SolutionDir)$(ConfigurationName)"
340 + IntermediateDirectory="$(ConfigurationName)"
341 + ConfigurationType="4"
345 + Name="VCPreBuildEventTool"
348 + Name="VCCustomBuildTool"
351 + Name="VCXMLDataGeneratorTool"
354 + Name="VCWebServiceProxyGeneratorTool"
360 + Name="VCCLCompilerTool"
362 + AdditionalIncludeDirectories=".;.\mswin"
363 + PreprocessorDefinitions="WIN32;NOMINMAX;DEBUG;_WINDOWS;_UNICODE;NOPCH;WIN32_LEAN_AND_MEAN"
364 + MinimalRebuild="true"
365 + BasicRuntimeChecks="3"
367 + UsePrecompiledHeader="0"
369 + DebugInformationFormat="4"
372 + Name="VCManagedResourceCompilerTool"
375 + Name="VCResourceCompilerTool"
378 + Name="VCPreLinkEventTool"
381 + Name="VCLibrarianTool"
382 + AdditionalDependencies="$(TargetDir)\util.lib"
388 + Name="VCXDCMakeTool"
391 + Name="VCBscMakeTool"
397 + Name="VCPostBuildEventTool"
401 + Name="Release|Win32"
402 + OutputDirectory="$(SolutionDir)$(ConfigurationName)"
403 + IntermediateDirectory="$(ConfigurationName)"
404 + ConfigurationType="4"
406 + WholeProgramOptimization="1"
409 + Name="VCPreBuildEventTool"
412 + Name="VCCustomBuildTool"
415 + Name="VCXMLDataGeneratorTool"
418 + Name="VCWebServiceProxyGeneratorTool"
424 + Name="VCCLCompilerTool"
426 + EnableIntrinsicFunctions="true"
427 + AdditionalIncludeDirectories=".;.\mswin"
428 + PreprocessorDefinitions="WIN32;NOMINMAX;NDEBUG;_WINDOWS;_UNICODE;NOPCH;WIN32_LEAN_AND_MEAN"
429 + StringPooling="true"
431 + EnableFunctionLevelLinking="true"
432 + UsePrecompiledHeader="0"
434 + DebugInformationFormat="3"
437 + Name="VCManagedResourceCompilerTool"
440 + Name="VCResourceCompilerTool"
443 + Name="VCPreLinkEventTool"
446 + Name="VCLibrarianTool"
452 + Name="VCXDCMakeTool"
455 + Name="VCBscMakeTool"
461 + Name="VCPostBuildEventTool"
469 + Name="Source Files"
470 + Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
471 + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
474 + RelativePath=".\re2\bitstate.cc"
478 + RelativePath=".\re2\compile.cc"
482 + RelativePath=".\re2\dfa.cc"
486 + RelativePath=".\re2\filtered_re2.cc"
490 + RelativePath=".\re2\mimics_pcre.cc"
494 + RelativePath=".\re2\nfa.cc"
498 + RelativePath=".\re2\onepass.cc"
502 + RelativePath=".\re2\parse.cc"
506 + RelativePath=".\re2\perl_groups.cc"
510 + RelativePath=".\re2\prefilter.cc"
514 + RelativePath=".\re2\prefilter_tree.cc"
518 + RelativePath=".\re2\prog.cc"
522 + RelativePath=".\re2\re2.cc"
526 + RelativePath=".\re2\regexp.cc"
530 + RelativePath=".\util\rune.cc"
534 + RelativePath=".\re2\set.cc"
538 + RelativePath=".\re2\simplify.cc"
542 + RelativePath=".\util\strutil.cc"
546 + RelativePath=".\re2\tostring.cc"
550 + RelativePath=".\re2\unicode_casefold.cc"
554 + RelativePath=".\re2\unicode_groups.cc"
559 + Name="Header Files"
560 + Filter="h;hpp;hxx;hm;inl;inc;xsd"
561 + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
564 + RelativePath=".\re2\filtered_re2.h"
568 + RelativePath=".\util\logging.h"
572 + RelativePath=".\util\mutex.h"
576 + RelativePath=".\re2\prefilter.h"
580 + RelativePath=".\re2\prefilter_tree.h"
584 + RelativePath=".\re2\prog.h"
588 + RelativePath=".\util\random.h"
592 + RelativePath=".\re2\re2.h"
596 + RelativePath=".\re2\regexp.h"
600 + RelativePath=".\re2\set.h"
604 + RelativePath=".\stdint.h"
608 + RelativePath=".\re2\unicode_casefold.h"
612 + RelativePath=".\re2\unicode_groups.h"
616 + RelativePath=".\util\utf.h"
620 + RelativePath=".\util\util.h"
624 + RelativePath=".\re2\variadic_function.h"
628 + RelativePath=".\re2\walker-inl.h"
633 + Name="Resource Files"
634 + Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
635 + UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
639 + RelativePath=".\ClassDiagram1.cd"
645 +</VisualStudioProject>
646 diff -r c79416ca4228 re2/compile.cc
647 --- a/re2/compile.cc Tue May 29 11:50:48 2012 -0400
648 +++ b/re2/compile.cc Wed Jun 20 19:00:08 2012 +0200
650 return UncachedRuneByteSuffix(lo, hi, foldcase, next);
653 - uint64 key = ((uint64)next << 17) | (lo<<9) | (hi<<1) | foldcase;
654 + uint64 key = ((uint64)next << 17) | (lo<<9) | (hi<<1) | (foldcase ? 1ULL : 0ULL);
655 map<uint64, int>::iterator it = rune_cache_.find(key);
656 if (it != rune_cache_.end())
658 diff -r c79416ca4228 re2/prefilter_tree.cc
659 --- a/re2/prefilter_tree.cc Tue May 29 11:50:48 2012 -0400
660 +++ b/re2/prefilter_tree.cc Wed Jun 20 19:00:08 2012 +0200
662 #include "re2/prefilter_tree.h"
667 +#define snprintf _snprintf
670 DEFINE_int32(filtered_re2_min_atom_len,
672 "Strings less than this length are not stored as atoms");
673 diff -r c79416ca4228 re2/re2.cc
674 --- a/re2/re2.cc Tue May 29 11:50:48 2012 -0400
675 +++ b/re2/re2.cc Wed Jun 20 19:00:08 2012 +0200
681 +#define strtoll _strtoi64
682 +#define strtoull _strtoui64
683 +#define strtof strtod
688 #include "util/util.h"
689 #include "util/flags.h"
691 const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::ConsumeN> RE2::Consume;
692 const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::FindAndConsumeN> RE2::FindAndConsume;
694 -const int RE2::Options::kDefaultMaxMem; // initialized in re2.h
696 // Commonly-used option sets; arguments to constructor are:
699 diff -r c79416ca4228 re2/re2.h
700 --- a/re2/re2.h Tue May 29 11:50:48 2012 -0400
701 +++ b/re2/re2.h Wed Jun 20 19:00:08 2012 +0200
706 +#define kDefaultMaxMem (8<<20)
708 // C++ interface to the re2 regular-expression library.
709 // RE2 supports Perl-style regular expressions (with extensions like
712 // Once a DFA fills its budget, it flushes its cache and starts over.
713 // If this happens too often, RE2 falls back on the NFA implementation.
715 - // For now, make the default budget something close to Code Search.
716 - static const int kDefaultMaxMem = 8<<20;
721 diff -r c79416ca4228 re2/stringpiece.h
722 --- a/re2/stringpiece.h Tue May 29 11:50:48 2012 -0400
723 +++ b/re2/stringpiece.h Wed Jun 20 19:00:08 2012 +0200
729 +#include <algorithm>
734 diff -r c79416ca4228 re2/testing/re2_test.cc
735 --- a/re2/testing/re2_test.cc Tue May 29 11:50:48 2012 -0400
736 +++ b/re2/testing/re2_test.cc Wed Jun 20 19:00:08 2012 +0200
738 // TODO: Test extractions for PartialMatch/Consume
740 #include <sys/types.h>
742 #include <sys/mman.h>
744 #include <sys/stat.h>
749 #include "re2/regexp.h"
753 +#define snprintf _snprintf
756 DECLARE_bool(logtostderr);
760 CHECK(!RE2::FullMatch("hello", "(.*)", (float*)NULL));
764 // Check that numeric parsing code does not read past the end of
765 // the number being parsed.
766 TEST(RE2, NULTerminated) {
768 CHECK(RE2::FullMatch(StringPiece(v + pagesize - 1, 1), "(.*)", &x));
773 TEST(RE2, FullMatchTypeTests) {
775 diff -r c79416ca4228 re2_testing/re2_testing.vcproj
776 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
777 +++ b/re2_testing/re2_testing.vcproj Wed Jun 20 19:00:08 2012 +0200
779 +<?xml version="1.0" encoding="Windows-1252"?>
780 +<VisualStudioProject
781 + ProjectType="Visual C++"
784 + ProjectGUID="{1B9A5974-DA06-4F57-BFFC-4DE19B968AE8}"
785 + RootNamespace="re2_testing"
786 + TargetFrameworkVersion="196613"
798 + OutputDirectory="$(SolutionDir)$(ConfigurationName)"
799 + IntermediateDirectory="$(ConfigurationName)"
800 + ConfigurationType="1"
804 + Name="VCPreBuildEventTool"
807 + Name="VCCustomBuildTool"
810 + Name="VCXMLDataGeneratorTool"
813 + Name="VCWebServiceProxyGeneratorTool"
819 + Name="VCCLCompilerTool"
821 + AdditionalIncludeDirectories=""$(SolutionDir)";..\mswin"
822 + PreprocessorDefinitions="WIN32;NOMINMAX;DEBUG;_WINDOWS;_UNICODE;NOPCH;WIN32_LEAN_AND_MEAN;NOGDI"
823 + MinimalRebuild="true"
824 + BasicRuntimeChecks="3"
827 + DebugInformationFormat="4"
830 + Name="VCManagedResourceCompilerTool"
833 + Name="VCResourceCompilerTool"
836 + Name="VCPreLinkEventTool"
839 + Name="VCLinkerTool"
840 + AdditionalDependencies="$(TargetDir)/re2.lib"
841 + GenerateDebugInformation="true"
848 + Name="VCManifestTool"
851 + Name="VCXDCMakeTool"
854 + Name="VCBscMakeTool"
860 + Name="VCAppVerifierTool"
863 + Name="VCPostBuildEventTool"
867 + Name="Release|Win32"
868 + OutputDirectory="$(SolutionDir)$(ConfigurationName)"
869 + IntermediateDirectory="$(ConfigurationName)"
870 + ConfigurationType="1"
872 + WholeProgramOptimization="1"
875 + Name="VCPreBuildEventTool"
878 + Name="VCCustomBuildTool"
881 + Name="VCXMLDataGeneratorTool"
884 + Name="VCWebServiceProxyGeneratorTool"
890 + Name="VCCLCompilerTool"
892 + EnableIntrinsicFunctions="true"
893 + AdditionalIncludeDirectories=""$(SolutionDir)";..\mswin"
894 + PreprocessorDefinitions="WIN32;NOMINMAX;DEBUG;_WINDOWS;_UNICODE;NOPCH;WIN32_LEAN_AND_MEAN;NOGDI"
896 + EnableFunctionLevelLinking="true"
898 + DebugInformationFormat="3"
901 + Name="VCManagedResourceCompilerTool"
904 + Name="VCResourceCompilerTool"
907 + Name="VCPreLinkEventTool"
910 + Name="VCLinkerTool"
911 + AdditionalDependencies="$(TargetDir)/re2.lib"
912 + GenerateDebugInformation="true"
913 + OptimizeReferences="2"
914 + EnableCOMDATFolding="2"
921 + Name="VCManifestTool"
924 + Name="VCXDCMakeTool"
927 + Name="VCBscMakeTool"
933 + Name="VCAppVerifierTool"
936 + Name="VCPostBuildEventTool"
944 + Name="Source Files"
945 + Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
946 + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
949 + RelativePath="..\re2\testing\backtrack.cc"
953 + RelativePath="..\re2\testing\charclass_test.cc"
957 + RelativePath="..\re2\testing\compile_test.cc"
961 + RelativePath="..\re2\testing\dump.cc"
965 + RelativePath="..\re2\testing\exhaustive_tester.cc"
969 + RelativePath="..\re2\testing\filtered_re2_test.cc"
973 + RelativePath="..\re2\testing\mimics_pcre_test.cc"
977 + RelativePath="..\re2\testing\null_walker.cc"
981 + RelativePath="..\re2\testing\parse_test.cc"
985 + RelativePath="..\re2\testing\possible_match_test.cc"
989 + RelativePath="..\util\random.cc"
993 + RelativePath="..\re2\testing\re2_arg_test.cc"
997 + RelativePath="..\re2\testing\re2_test.cc"
1001 + RelativePath="..\re2\testing\regexp_generator.cc"
1005 + RelativePath="..\re2\testing\regexp_test.cc"
1009 + RelativePath="..\re2\testing\required_prefix_test.cc"
1013 + RelativePath="..\re2\testing\search_test.cc"
1017 + RelativePath="..\re2\testing\set_test.cc"
1021 + RelativePath="..\re2\testing\simplify_test.cc"
1025 + RelativePath="..\re2\testing\string_generator.cc"
1029 + RelativePath="..\re2\testing\string_generator_test.cc"
1033 + RelativePath="..\util\test.cc"
1037 + RelativePath="..\re2\testing\tester.cc"
1042 + Name="Header Files"
1043 + Filter="h;hpp;hxx;hm;inl;inc;xsd"
1044 + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
1047 + RelativePath="..\re2\testing\exhaustive_tester.h"
1051 + RelativePath="..\re2\testing\regexp_generator.h"
1055 + RelativePath="..\re2\testing\string_generator.h"
1059 + RelativePath="..\util\test.h"
1063 + RelativePath="..\re2\testing\tester.h"
1068 + Name="Resource Files"
1069 + Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
1070 + UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
1076 +</VisualStudioProject>
1077 diff -r c79416ca4228 util/logging.h
1078 --- a/util/logging.h Tue May 29 11:50:48 2012 -0400
1079 +++ b/util/logging.h Wed Jun 20 19:00:08 2012 +0200
1081 #ifndef RE2_UTIL_LOGGING_H__
1082 #define RE2_UTIL_LOGGING_H__
1085 #include <unistd.h> /* for write */
1092 // Debug-only checking.
1093 #define DCHECK(condition) assert(condition)
1094 diff -r c79416ca4228 util/mutex.h
1095 --- a/util/mutex.h Tue May 29 11:50:48 2012 -0400
1096 +++ b/util/mutex.h Wed Jun 20 19:00:08 2012 +0200
1102 #define HAVE_PTHREAD 1
1103 #define HAVE_RWLOCK 1
1106 #if defined(NO_THREADS)
1107 typedef int MutexType; // to keep a lock-count
1109 # include <pthread.h>
1110 typedef pthread_mutex_t MutexType;
1111 #elif defined(WIN32)
1112 -# define WIN32_LEAN_AND_MEAN // We only need minimal includes
1113 +# ifndef WIN32_LEAN_AND_MEAN
1114 +# define WIN32_LEAN_AND_MEAN // We only need minimal includes
1116 # ifdef GMUTEX_TRYLOCK
1117 // We need Windows NT or later for TryEnterCriticalSection(). If you
1118 // don't need that functionality, you can remove these _WIN32_WINNT
1119 diff -r c79416ca4228 util/pcre.cc
1120 --- a/util/pcre.cc Tue May 29 11:50:48 2012 -0400
1121 +++ b/util/pcre.cc Wed Jun 20 19:00:08 2012 +0200
1123 #include "util/flags.h"
1124 #include "util/pcre.h"
1127 +#define strtoll _strtoi64
1128 +#define strtoull _strtoui64
1131 #define PCREPORT(level) LOG(level)
1133 // Default PCRE limits.
1134 diff -r c79416ca4228 util/pcre.h
1135 --- a/util/pcre.h Tue May 29 11:50:48 2012 -0400
1136 +++ b/util/pcre.h Wed Jun 20 19:00:08 2012 +0200
1137 @@ -180,9 +180,15 @@
1138 #define PCRE_ERROR_MATCHLIMIT 2
1139 #define PCRE_ERROR_RECURSIONLIMIT 3
1140 #define PCRE_INFO_CAPTURECOUNT 0
1142 #define pcre_compile(a,b,c,d,e) ({ (void)(a); (void)(b); *(c)=""; *(d)=0; (void)(e); ((pcre*)0); })
1143 #define pcre_exec(a, b, c, d, e, f, g, h) ({ (void)(a); (void)(b); (void)(c); (void)(d); (void)(e); (void)(f); (void)(g); (void)(h); 0; })
1144 #define pcre_fullinfo(a, b, c, d) ({ (void)(a); (void)(b); (void)(c); *(d) = 0; 0; })
1146 +#define pcre_compile(a,b,c,d,e) NULL
1147 +#define pcre_exec(a, b, c, d, e, f, g, h) NULL
1148 +#define pcre_fullinfo(a, b, c, d) NULL
1153 diff -r c79416ca4228 util/stringprintf.cc
1154 --- a/util/stringprintf.cc Tue May 29 11:50:48 2012 -0400
1155 +++ b/util/stringprintf.cc Wed Jun 20 19:00:08 2012 +0200
1158 #include "util/util.h"
1161 +#define va_copy(d,s) ((d) = (s)) //KLUGE: for MS compilers
1166 static void StringAppendV(string* dst, const char* format, va_list ap) {
1167 diff -r c79416ca4228 util/test.cc
1168 --- a/util/test.cc Tue May 29 11:50:48 2012 -0400
1169 +++ b/util/test.cc Wed Jun 20 19:00:08 2012 +0200
1171 // license that can be found in the LICENSE file.
1175 #include <sys/resource.h>
1177 #include "util/test.h"
1179 DEFINE_string(test_tmpdir, "/var/tmp", "temp directory");
1183 int64 VirtualProcessSize() {
1186 getrusage(RUSAGE_SELF, &ru);
1187 return (int64)ru.ru_maxrss*1024;
1194 diff -r c79416ca4228 util/util.h
1195 --- a/util/util.h Tue May 29 11:50:48 2012 -0400
1196 +++ b/util/util.h Wed Jun 20 19:00:08 2012 +0200
1198 #include <stddef.h> // For size_t
1202 #include <sys/time.h>
1210 #include <unordered_set>
1212 +using std::tr1::unordered_set;
1214 using std::unordered_set;
1219 diff -r c79416ca4228 util/util.vcproj
1220 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1221 +++ b/util/util.vcproj Wed Jun 20 19:00:08 2012 +0200
1223 +<?xml version="1.0" encoding="Windows-1252"?>
1224 +<VisualStudioProject
1225 + ProjectType="Visual C++"
1228 + ProjectGUID="{AB36233A-643A-4D2E-93B3-0602DA52C8D5}"
1229 + RootNamespace="util"
1230 + Keyword="Win32Proj"
1231 + TargetFrameworkVersion="196613"
1242 + Name="Debug|Win32"
1243 + OutputDirectory="$(SolutionDir)$(ConfigurationName)"
1244 + IntermediateDirectory="$(ConfigurationName)"
1245 + ConfigurationType="4"
1249 + Name="VCPreBuildEventTool"
1252 + Name="VCCustomBuildTool"
1255 + Name="VCXMLDataGeneratorTool"
1258 + Name="VCWebServiceProxyGeneratorTool"
1264 + Name="VCCLCompilerTool"
1266 + AdditionalIncludeDirectories=""$(SolutionDir)";..\mswin"
1267 + PreprocessorDefinitions="WIN32;NOMINMAX;DEBUG;_WINDOWS;_UNICODE;NOPCH;WIN32_LEAN_AND_MEAN;NOGDI"
1268 + MinimalRebuild="true"
1269 + BasicRuntimeChecks="3"
1270 + RuntimeLibrary="3"
1271 + UsePrecompiledHeader="0"
1273 + DebugInformationFormat="4"
1276 + Name="VCManagedResourceCompilerTool"
1279 + Name="VCResourceCompilerTool"
1282 + Name="VCPreLinkEventTool"
1285 + Name="VCLibrarianTool"
1288 + Name="VCALinkTool"
1291 + Name="VCXDCMakeTool"
1294 + Name="VCBscMakeTool"
1297 + Name="VCFxCopTool"
1300 + Name="VCPostBuildEventTool"
1304 + Name="Release|Win32"
1305 + OutputDirectory="$(SolutionDir)$(ConfigurationName)"
1306 + IntermediateDirectory="$(ConfigurationName)"
1307 + ConfigurationType="4"
1309 + WholeProgramOptimization="1"
1312 + Name="VCPreBuildEventTool"
1315 + Name="VCCustomBuildTool"
1318 + Name="VCXMLDataGeneratorTool"
1321 + Name="VCWebServiceProxyGeneratorTool"
1327 + Name="VCCLCompilerTool"
1329 + EnableIntrinsicFunctions="true"
1330 + AdditionalIncludeDirectories=""$(SolutionDir)";..\mswin"
1331 + PreprocessorDefinitions="WIN32;NOMINMAX;DEBUG;_WINDOWS;_UNICODE;NOPCH;WIN32_LEAN_AND_MEAN;NOGDI"
1332 + RuntimeLibrary="2"
1333 + EnableFunctionLevelLinking="true"
1334 + UsePrecompiledHeader="0"
1336 + DebugInformationFormat="3"
1339 + Name="VCManagedResourceCompilerTool"
1342 + Name="VCResourceCompilerTool"
1345 + Name="VCPreLinkEventTool"
1348 + Name="VCLibrarianTool"
1351 + Name="VCALinkTool"
1354 + Name="VCXDCMakeTool"
1357 + Name="VCBscMakeTool"
1360 + Name="VCFxCopTool"
1363 + Name="VCPostBuildEventTool"
1371 + Name="Source Files"
1372 + Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
1373 + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
1376 + RelativePath=".\arena.cc"
1380 + RelativePath=".\hash.cc"
1384 + RelativePath=".\pcre.cc"
1388 + RelativePath=".\random.cc"
1392 + RelativePath=".\rune.cc"
1396 + RelativePath=".\stringpiece.cc"
1400 + RelativePath=".\stringprintf.cc"
1404 + RelativePath=".\strutil.cc"
1408 + RelativePath=".\valgrind.cc"
1413 + Name="Header Files"
1414 + Filter="h;hpp;hxx;hm;inl;inc;xsd"
1415 + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
1418 + RelativePath=".\arena.h"
1422 + RelativePath=".\atomicops.h"
1426 + RelativePath=".\benchmark.h"
1430 + RelativePath=".\flags.h"
1434 + RelativePath=".\logging.h"
1438 + RelativePath=".\pcre.h"
1442 + RelativePath=".\random.h"
1446 + RelativePath=".\sparse_array.h"
1450 + RelativePath=".\sparse_set.h"
1454 + RelativePath=".\utf.h"
1458 + RelativePath=".\util.h"
1462 + RelativePath=".\valgrind.h"
1467 + Name="Resource Files"
1468 + Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
1469 + UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
1475 +</VisualStudioProject>
1476 diff -r c79416ca4228 util/valgrind.h
1477 --- a/util/valgrind.h Tue May 29 11:50:48 2012 -0400
1478 +++ b/util/valgrind.h Wed Jun 20 19:00:08 2012 +0200
1479 @@ -4063,7 +4063,7 @@
1481 #endif /* PLAT_ppc64_aix5 */
1485 /* ------------------------------------------------------------------ */
1486 /* ARCHITECTURE INDEPENDENT MACROS for CLIENT REQUESTS. */
1488 @@ -4170,7 +4170,7 @@
1489 VG_USERREQ__DISCARD_TRANSLATIONS, \
1490 _qzz_addr, _qzz_len, 0, 0, 0); \
1495 /* These requests are for getting Valgrind itself to print something.
1496 Possibly with a backtrace. This is a really ugly hack. The return value