From 8249e64a0a2eabb360104aa501e0b39f588a5a90 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Sat, 29 Apr 2000 00:29:56 +0000 Subject: [PATCH] fixing windows bustage. git-svn-id: svn://10.0.0.236/trunk@67597 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/js2/debugger.cpp | 6 +++--- mozilla/js/js2/interpreter.cpp | 2 ++ mozilla/js/js2/js2.cpp | 3 ++- mozilla/js2/src/debugger.cpp | 6 +++--- mozilla/js2/src/interpreter.cpp | 2 ++ mozilla/js2/tests/cpp/js2_shell.cpp | 3 ++- 6 files changed, 14 insertions(+), 8 deletions(-) diff --git a/mozilla/js/js2/debugger.cpp b/mozilla/js/js2/debugger.cpp index 14fc3f95dec..73d3b7876a0 100644 --- a/mozilla/js/js2/debugger.cpp +++ b/mozilla/js/js2/debugger.cpp @@ -80,12 +80,12 @@ namespace Debugger { } bool - Shell::doCommand (Interpreter::Context */*context*/, const String &source) + Shell::doCommand (Interpreter::Context * /*context*/, const String &source) { Lexer lex (mWorld, source, widenCString("debugger console"), 0); const String *cmd; ShellCommand match = COMMAND_COUNT; - int ambig_matches = 0; + uint32 ambig_matches = 0; const Token &t = lex.get(true); @@ -137,7 +137,7 @@ namespace Debugger { } else mErr << "Ambiguous command '" << *cmd << "', " << - (uint)(ambig_matches + 1) << " similar commands.\n"; + (ambig_matches + 1) << " similar commands.\n"; return (ambig_matches == 0); diff --git a/mozilla/js/js2/interpreter.cpp b/mozilla/js/js2/interpreter.cpp index 26a7f097695..5e9a1dcb1fb 100644 --- a/mozilla/js/js2/interpreter.cpp +++ b/mozilla/js/js2/interpreter.cpp @@ -34,6 +34,8 @@ #include "interpreter.h" #include "world.h" +#include + namespace JavaScript { namespace JSTypes { diff --git a/mozilla/js/js2/js2.cpp b/mozilla/js/js2/js2.cpp index 227839974c4..40acd3f401b 100644 --- a/mozilla/js/js2/js2.cpp +++ b/mozilla/js/js2/js2.cpp @@ -591,7 +591,8 @@ int main(int argc, char **argv) #endif #if 1 - using namespace JavaScript::Shell; + using namespace JavaScript; + using namespace Shell; assert(testFactorial(world, 5) == 120); assert(testObjects(world, 5) == 5); diff --git a/mozilla/js2/src/debugger.cpp b/mozilla/js2/src/debugger.cpp index 14fc3f95dec..73d3b7876a0 100644 --- a/mozilla/js2/src/debugger.cpp +++ b/mozilla/js2/src/debugger.cpp @@ -80,12 +80,12 @@ namespace Debugger { } bool - Shell::doCommand (Interpreter::Context */*context*/, const String &source) + Shell::doCommand (Interpreter::Context * /*context*/, const String &source) { Lexer lex (mWorld, source, widenCString("debugger console"), 0); const String *cmd; ShellCommand match = COMMAND_COUNT; - int ambig_matches = 0; + uint32 ambig_matches = 0; const Token &t = lex.get(true); @@ -137,7 +137,7 @@ namespace Debugger { } else mErr << "Ambiguous command '" << *cmd << "', " << - (uint)(ambig_matches + 1) << " similar commands.\n"; + (ambig_matches + 1) << " similar commands.\n"; return (ambig_matches == 0); diff --git a/mozilla/js2/src/interpreter.cpp b/mozilla/js2/src/interpreter.cpp index 26a7f097695..5e9a1dcb1fb 100644 --- a/mozilla/js2/src/interpreter.cpp +++ b/mozilla/js2/src/interpreter.cpp @@ -34,6 +34,8 @@ #include "interpreter.h" #include "world.h" +#include + namespace JavaScript { namespace JSTypes { diff --git a/mozilla/js2/tests/cpp/js2_shell.cpp b/mozilla/js2/tests/cpp/js2_shell.cpp index 227839974c4..40acd3f401b 100644 --- a/mozilla/js2/tests/cpp/js2_shell.cpp +++ b/mozilla/js2/tests/cpp/js2_shell.cpp @@ -591,7 +591,8 @@ int main(int argc, char **argv) #endif #if 1 - using namespace JavaScript::Shell; + using namespace JavaScript; + using namespace Shell; assert(testFactorial(world, 5) == 120); assert(testObjects(world, 5) == 5);