Skip to content

Commit

Permalink
Nuke some error prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Jun 22, 2012
1 parent 2781723 commit 6199d69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions library/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,29 +281,20 @@ static command_result runLuaScript(color_ostream &out, std::string filename, vec

command_result Core::runCommand(color_ostream &out, const std::string &command)
{
fprintf(stderr,"Inside runCommand");
fprintf(stderr," with command %s\n",command.c_str());
if (!command.empty())
{
fprintf(stderr,"Command is not empty, tokenizing\n");
vector <string> parts;
Core::cheap_tokenise(command,parts);
fprintf(stderr,"Tokenized, got %d parts\n",parts.size());
if(parts.size() == 0)
return CR_NOT_IMPLEMENTED;

string first = parts[0];
fprintf(stderr,"Erasing beginning\n");
parts.erase(parts.begin());

fprintf(stderr,"I think we're about there\n");

if (first[0] == '#')
return CR_OK;

cerr << "Invoking: " << command << endl;

fprintf(stderr,"Returning with the next recursion\n");
return runCommand(out, first, parts);
}
else
Expand Down
2 changes: 1 addition & 1 deletion library/xml
Submodule xml updated from c38188 to ad38c5

0 comments on commit 6199d69

Please sign in to comment.