OLD | NEW |
---|---|
1 /* This is JavaScriptCore's variant of the PCRE library. While this library | 1 /* This is JavaScriptCore's variant of the PCRE library. While this library |
2 started out as a copy of PCRE, many of the features of PCRE have been | 2 started out as a copy of PCRE, many of the features of PCRE have been |
3 removed. This library now supports only the regular expression features | 3 removed. This library now supports only the regular expression features |
4 required by the JavaScript language specification, and has only the functions | 4 required by the JavaScript language specification, and has only the functions |
5 needed by JavaScriptCore and the rest of WebKit. | 5 needed by JavaScriptCore and the rest of WebKit. |
6 | 6 |
7 Originally written by Philip Hazel | 7 Originally written by Philip Hazel |
8 Copyright (c) 1997-2006 University of Cambridge | 8 Copyright (c) 1997-2006 University of Cambridge |
9 Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved. | 9 Copyright (C) 2002, 2004, 2006, 2007 Apple Inc. All rights reserved. |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 | 76 |
77 #define lcc_offset 0 | 77 #define lcc_offset 0 |
78 #define fcc_offset 128 | 78 #define fcc_offset 128 |
79 #define cbits_offset 256 | 79 #define cbits_offset 256 |
80 #define ctypes_offset (cbits_offset + cbit_length) | 80 #define ctypes_offset (cbits_offset + cbit_length) |
81 #define tables_length (ctypes_offset + 128) | 81 #define tables_length (ctypes_offset + 128) |
82 | 82 |
83 #ifndef DFTABLES | 83 #ifndef DFTABLES |
84 | 84 |
85 // TODO(xxx): Hook this up to something that checks assertions. | 85 // TODO(xxx): Hook this up to something that checks assertions. |
86 #define ASSERT(x) if (!(x)) *(reinterpret_cast<int*>(NULL)) = NULL | 86 #define ASSERT(x) if (!(x)) *(reinterpret_cast<volatile int*>(NULL)) = NULL |
Kevin Millikin (Google)
2013/01/11 11:30:59
Drive by: shouldn't this be fixed upstream in WebK
| |
87 #define ASSERT_NOT_REACHED() *(reinterpret_cast<int*>(NULL)) = NULL | 87 #define ASSERT_NOT_REACHED() *(reinterpret_cast<volatile int*>(NULL)) = NULL |
88 | 88 |
89 #ifdef WIN32 | 89 #ifdef WIN32 |
90 #pragma warning(disable: 4232) | 90 #pragma warning(disable: 4232) |
91 #pragma warning(disable: 4244) | 91 #pragma warning(disable: 4244) |
92 #endif | 92 #endif |
93 | 93 |
94 #include "./pcre.h" | 94 #include "./pcre.h" |
95 | 95 |
96 /* The value of LINK_SIZE determines the number of bytes used to store links as | 96 /* The value of LINK_SIZE determines the number of bytes used to store links as |
97 offsets within the compiled regex. The default is 2, which allows for compiled | 97 offsets within the compiled regex. The default is 2, which allows for compiled |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
419 that one of the source files. They have to have external linkage, but | 419 that one of the source files. They have to have external linkage, but |
420 but are not part of the public API and so not exported from the library. */ | 420 but are not part of the public API and so not exported from the library. */ |
421 | 421 |
422 extern int kjs_pcre_ucp_othercase(unsigned); | 422 extern int kjs_pcre_ucp_othercase(unsigned); |
423 extern bool kjs_pcre_xclass(int, const unsigned char*); | 423 extern bool kjs_pcre_xclass(int, const unsigned char*); |
424 | 424 |
425 } } // namespace dart::jscre | 425 } } // namespace dart::jscre |
426 #endif | 426 #endif |
427 | 427 |
428 #endif // THIRD_PARTY_JSCRE_PCRE_INTERNAL_H_ | 428 #endif // THIRD_PARTY_JSCRE_PCRE_INTERNAL_H_ |
OLD | NEW |