Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/cpptcl/changes_orxonox.diff @ 2601

Last change on this file since 2601 was 2600, checked in by rgrieder, 16 years ago
  • Added changelog for CppTcl
  • Added unified diff file with our changes
  • Minimised our changes
File size: 1.1 KB
  • cpptcl.cc

     
    858858     owner_ = true;
    859859}
    860860
     861interpreter::interpreter(string const &libpath)
     862{
     863     interp_ =  Tcl_CreateInterp();
     864     owner_ = true;
     865
     866     try
     867     {
     868        this->eval("set tcl_library " + libpath);
     869        Tcl_Init(this->interp_);
     870     } catch (...) {}
     871}
     872
    861873interpreter::interpreter(Tcl_Interp *interp, bool owner)
    862874{
    863875     interp_ =  interp;
     
    940952     // delete all callbacks that were registered for given interpreter
    941953
    942954     {
     955          // TODO: why could this probably be necessary? map::find of empty map
     956          // shouldn't be a problem.
     957          if (callbacks.size() == 0)
     958            return;
    943959          callback_map::iterator it = callbacks.find(interp);
    944960          if (it == callbacks.end())
    945961          {
  • cpptcl.h

     
    467467{
    468468public:
    469469     interpreter();
     470     interpreter(std::string const &libpath);
    470471     interpreter(Tcl_Interp *, bool owner = true);
    471472     ~interpreter();
    472473     
Note: See TracBrowser for help on using the repository browser.