Ignore:
Timestamp:
Dec 15, 2006, 11:11:16 PM (18 years ago)
Author:
dkearney
Message:

adjustments to how gauge.tcl deals with values for integer and number entries and properly identifies users inputted units if any.
added tests to units.test for some corner case inputs i found caused segfaults. these corner cases were fixed in the core units library and in the tcl bindings. they were mainly bugs regarding the new "rappture units search for" function and the description function. addeda function called unitsSlice() which centralizes the function used to split a string into what we think are probably units and a double value. this was centralized in preparation for possible inclusion of demensionless values like which might be refered to with a name in front of the numerical value, like "mach 1"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/RpUnits.h

    r559 r562  
    708708int list2str (std::list<std::string>& inList, std::string& outString);
    709709
     710int unitSlice (std::string inStr, std::string& outUnits, double& outVal);
     711
    710712#endif // ifdef __cplusplus
    711713
Note: See TracChangeset for help on using the changeset viewer.