зеркало из https://github.com/mozilla/gecko-dev.git
fixing windows bustage.
This commit is contained in:
Родитель
c9b40050df
Коммит
3eed137323
|
@ -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);
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
#include "interpreter.h"
|
||||
#include "world.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
namespace JavaScript {
|
||||
namespace JSTypes {
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
#include "interpreter.h"
|
||||
#include "world.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
namespace JavaScript {
|
||||
namespace JSTypes {
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче