Changeset 104 for trunk/src/fortran
- Timestamp:
- Oct 14, 2005, 9:43:27 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/fortran/RpUnitsFInterface.cc
r93 r104 22 22 23 23 int result = -1; 24 RpUnits* newUnit = NULL;25 RpUnits* basis = NULL;24 const RpUnits* newUnit = NULL; 25 const RpUnits* basis = NULL; 26 26 std::string basisStrName = ""; 27 27 std::string newUnitName = ""; … … 64 64 65 65 // RpUnits* searchUnit = RpUnits::find(searchName); 66 RpUnits* searchUnit = RpUnits::find(inText);66 const RpUnits* searchUnit = RpUnits::find(inText); 67 67 68 68 if (searchUnit) { … … 81 81 { 82 82 int result = -1; 83 RpUnits* newBasis = NULL;83 const RpUnits* newBasis = NULL; 84 84 85 85 if (basis && *basis) { … … 97 97 rp_get_units(int* unitRefVal, char* retText, int retText_len) 98 98 { 99 RpUnits* unitObj = NULL;99 const RpUnits* unitObj = NULL; 100 100 std::string unitNameText = ""; 101 101 int result = 0; … … 115 115 rp_get_units_name(int* unitRefVal, char* retText, int retText_len) 116 116 { 117 RpUnits* unitObj = NULL;117 const RpUnits* unitObj = NULL; 118 118 std::string unitNameText = ""; 119 119 int result = 0; … … 133 133 rp_get_exponent(int* unitRefVal, double* retExponent) 134 134 { 135 RpUnits* unitObj = NULL;135 const RpUnits* unitObj = NULL; 136 136 int result = 0; 137 137 … … 149 149 rp_get_basis(int* unitRefVal) 150 150 { 151 RpUnits* unitObj = NULL;152 RpUnits* basisObj = NULL;151 const RpUnits* unitObj = NULL; 152 const RpUnits* basisObj = NULL; 153 153 int result = -1; 154 154 … … 170 170 int 171 171 rp_units_convert_dbl ( char* fromVal, 172 173 174 175 172 char* toUnitsName, 173 double* convResult, 174 int fromVal_len, 175 int toUnitsName_len ) { 176 176 177 177 char* inFromVal = NULL; … … 210 210 int 211 211 rp_units_convert_str ( char* fromVal, 212 213 214 215 216 212 char* toUnitsName, 213 char* retText, 214 int fromVal_len, 215 int toUnitsName_len, 216 int retText_len ) { 217 217 218 218 char* inFromVal = NULL;
Note: See TracChangeset
for help on using the changeset viewer.