Author: [EMAIL PROTECTED]
Date: Fri Nov  7 00:54:08 2008
New Revision: 708

Modified:
    branches/experimental/regexp2000/src/jsregexp.cc
    branches/experimental/regexp2000/src/parser.cc
    branches/experimental/regexp2000/src/string-stream.cc

Log:
* Small fixes to make experimental branch compile on Windows.
Small changes that are required to compile using MS Visual C++

Review URL: http://codereview.chromium.org/9686

Modified: branches/experimental/regexp2000/src/jsregexp.cc
==============================================================================
--- branches/experimental/regexp2000/src/jsregexp.cc    (original)
+++ branches/experimental/regexp2000/src/jsregexp.cc    Fri Nov  7 00:54:08  
2008
@@ -25,6 +25,7 @@
  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+#define _HAS_EXCEPTIONS 0
  #include <set>

  #include "v8.h"

Modified: branches/experimental/regexp2000/src/parser.cc
==============================================================================
--- branches/experimental/regexp2000/src/parser.cc      (original)
+++ branches/experimental/regexp2000/src/parser.cc      Fri Nov  7 00:54:08 2008
@@ -3862,7 +3862,7 @@


  // Upper and lower case letters differ by one bit.
-STATIC_CHECK('a'^'A' == 0x20);
+STATIC_CHECK(('a' ^ 'A') == 0x20);

  uc32 RegExpParser::ParseControlLetterEscape(bool* ok) {
    if (!has_more()) {

Modified: branches/experimental/regexp2000/src/string-stream.cc
==============================================================================
--- branches/experimental/regexp2000/src/string-stream.cc       (original)
+++ branches/experimental/regexp2000/src/string-stream.cc       Fri Nov  7  
00:54:08 2008
@@ -131,7 +131,7 @@
        ASSERT_EQ(FmtElm::LC_STR, current.type_);
        Vector<const uc16> value = *current.data_.u_lc_str_;
        for (int i = 0; i < value.length(); i++)
-        Put(value[i]);
+        Put(static_cast<char>(value[i]));
        break;
      }
      case 'o': {

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to