fixing windows bustage.

This commit is contained in:
beard%netscape.com 2000-04-29 00:29:56 +00:00
parent c9b40050df
commit 3eed137323
6 changed files with 14 additions and 8 deletions

View File

@ -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);

View File

@ -34,6 +34,8 @@
#include "interpreter.h"
#include "world.h"
#include <assert.h>
namespace JavaScript {
namespace JSTypes {

View File

@ -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);

View File

@ -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);

View File

@ -34,6 +34,8 @@
#include "interpreter.h"
#include "world.h"
#include <assert.h>
namespace JavaScript {
namespace JSTypes {

View File

@ -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);