Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2008, 2:50:21 PM (17 years ago)
Author:
landauf
Message:
  • after a total rewrite of the TclThreadManager, there are some new problems, but most of the old ones are fixed. i commit this version to have a backup, not because it's finished.
  • 'exec' command is now called 'source' (tcl and orxonox)
  • 'orxonox' command is now called 'query' (tcl only)
  • added 'crossquery' command (tcl only)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/CommandExecutor.cc

    r1230 r1255  
    4848    ConsoleCommandShortcutGeneric(keyword3, createExecutor((FunctorStatic*)0, "bind", AccessLevel::User));
    4949
    50     ConsoleCommandShortcutExtern(exec, AccessLevel::None);
     50    ConsoleCommandShortcutExtern(source, AccessLevel::None);
    5151    ConsoleCommandShortcutExtern(echo, AccessLevel::None);
    5252    ConsoleCommandShortcutExtern(puts, AccessLevel::None);
     
    5656    ConsoleCommandShortcutExtern(write, AccessLevel::None);
    5757
    58     void exec(const std::string& filename)
     58    void source(const std::string& filename)
    5959    {
    6060        static std::set<std::string> executingFiles;
     
    6363        if (it != executingFiles.end())
    6464        {
    65             COUT(1) << "Error: Recurring exec command in \"" << filename << "\". Stopped execution." << std::endl;
     65            COUT(1) << "Error: Recurring source command in \"" << filename << "\". Stopped execution." << std::endl;
    6666            return;
    6767        }
     
    7373        if (!file.is_open())
    7474        {
    75             COUT(1) << "Error: Couldn't execute file \"" << filename << "\"." << std::endl;
     75            COUT(1) << "Error: Couldn't open file \"" << filename << "\"." << std::endl;
    7676            return;
    7777        }
Note: See TracChangeset for help on using the changeset viewer.