Changeset 533 for trunk/src/tcl


Ignore:
Timestamp:
Oct 9, 2006 12:40:41 PM (18 years ago)
Author:
dkearney
Message:

small fixes to tcl interface code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tcl/src/RpUnitsTclInterface.cc

    r528 r533  
    368368{
    369369    std::string unitsName     = ""; // name of the units provided by user
    370     std::string type          = ""; // name of the units provided by user
     370    std::string type          = ""; // type/system of units to be returned to user
    371371    int nextarg               = 1; // start parsing using the '2'th argument
    372372    int err                   = 0;
     
    388388    if (err) {
    389389        /*
    390          * according to tcl version, in this case we 
     390         * according to tcl version, in this case we
    391391         * should return an empty string. i happen to disagree.
    392392         * the next few lines is what i think the user should see.
    393393        Tcl_AppendResult(interp,
    394             "The units named: \"", unitsName.c_str(), 
     394            "The units named: \"", unitsName.c_str(),
    395395            "\" is not a recognized unit for rappture",
    396396            (char*)NULL);
     
    407407/**********************************************************************/
    408408// FUNCTION: RpTclUnitsSysAll()
    409 /// Rappture::Units::System::for fxn in Tcl, returns list of compatible units
     409/// Rappture::Units::System::all fxn in Tcl, returns list of compatible units
    410410/**
    411411 * Returns a list of all units compatible with the given units string.
Note: See TracChangeset for help on using the changeset viewer.