Changeset 3536 for trunk/Ohana/src/libautocode/generate
- Timestamp:
- Mar 28, 2005, 4:48:19 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libautocode/generate (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libautocode/generate
r3515 r3536 103 103 if ($type eq "short") { $pt1 = "I"; } 104 104 if ($type eq "int") { $pt1 = "J"; } 105 if ($type eq "e_time") { $pt1 = "J"; } 105 106 if ($type eq "float") { $pt1 = "E"; } 106 107 if ($type eq "double") { $pt1 = "D"; } … … 125 126 if ($type eq "short") { $pt1 = sprintf "I%s", $length; } 126 127 if ($type eq "int") { $pt1 = sprintf "I%s", $length; } 128 if ($type eq "e_time") { $pt1 = sprintf "I%s", $length; } 127 129 if ($type eq "float") { $pt1 = sprintf "F%s", $length; } 128 130 if ($type eq "double") { $pt1 = sprintf "F%s", $length; } … … 181 183 $n = 2; 182 184 } 183 if ($type eq " float"){185 if ($type eq "int") { 184 186 $T = "WORD"; 185 187 $n = 4; 186 188 } 187 if ($type eq "int") { 189 if ($type eq "e_time") { 190 $T = "WORD"; 191 $n = 4; 192 } 193 if ($type eq "float") { 188 194 $T = "WORD"; 189 195 $n = 4; … … 217 223 } 218 224 } 225 if ($type eq "byte") { $Nbytes += 1; } 226 if ($type eq "short") { $Nbytes += 2; } 227 if ($type eq "int") { $Nbytes += 4; } 228 if ($type eq "e_time") { $Nbytes += 4; } 229 if ($type eq "float") { $Nbytes += 4; } 219 230 if ($type eq "double") { $Nbytes += 8; } 220 if ($type eq "int") { $Nbytes += 4; }221 if ($type eq "short") { $Nbytes += 2; }222 if ($type eq "float") { $Nbytes += 4; }223 231 } 224 232 return ($Nbytes);
Note:
See TracChangeset
for help on using the changeset viewer.
