JSON
- Replaced old Tree-based parser with a faster, leaner parser. Currently lacking good error handling and a large test suite. - Integrated new parser into Task object, for encode/decode. - Replicated same basic unit tests. Needs more. - Fixed bug in handleShell that failed to call the new Context::initialize2. - Removed debugging code from CmdInstall. - Implemented format() that does not require width and precision args.
This commit is contained in:
@@ -2250,6 +2250,7 @@ int handleIds (std::string& outs)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// TODO Obsolete.
|
||||
void handleShell ()
|
||||
{
|
||||
// Display some kind of welcome message.
|
||||
@@ -2291,11 +2292,11 @@ void handleShell ()
|
||||
try
|
||||
{
|
||||
context.clear ();
|
||||
|
||||
std::vector <std::string> args;
|
||||
split (args, decoratedCommand, ' ');
|
||||
foreach (arg, args) context.args.push_back (*arg);
|
||||
|
||||
context.initialize2 (0, NULL);
|
||||
context.initialize ();
|
||||
context.run ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user