Changeset 5448 for trunk/Ohana/src/libautocode/generate
- Timestamp:
- Oct 27, 2005, 10:38:30 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libautocode/generate (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libautocode/generate
r5014 r5448 119 119 if ($type eq "unsigned int") { $pt1 = "J"; } 120 120 if ($type eq "e_time") { $pt1 = "J"; } 121 if ($type eq "e_void") { $pt1 = "L"; } 122 # e_void is a 64 bit pointer, cast to size_t 121 123 if ($type eq "float") { $pt1 = "E"; } 122 124 if ($type eq "double") { $pt1 = "D"; } … … 188 190 if ($type eq "unsigned int") { $pt1 = sprintf "I%s", $length; } 189 191 if ($type eq "e_time") { $pt1 = sprintf "I%s", $length; } 192 if ($type eq "e_void") { $pt1 = sprintf "I%s", $length; } 190 193 if ($type eq "float") { $pt1 = sprintf "F%s", $length; } 191 194 if ($type eq "double") { $pt1 = sprintf "F%s", $length; } … … 255 258 if ($type eq "unsigned int") { $T = "WORD"; $n = 4; } 256 259 if ($type eq "e_time") { $T = "WORD"; $n = 4; } 260 if ($type eq "e_void") { $T = "DBLE"; $n = 8; } 257 261 if ($type eq "float") { $T = "WORD"; $n = 4; } 258 262 if ($type eq "double") { $T = "DBLE"; $n = 8; } … … 285 289 if ($type eq "unsigned int") { $Nbytes += 4*$Np; $valid = 1; } 286 290 if ($type eq "e_time") { $Nbytes += 4*$Np; $valid = 1; } 291 if ($type eq "e_void") { $Nbytes += 8*$Np; $valid = 1; } 287 292 if ($type eq "float") { $Nbytes += 4*$Np; $valid = 1; } 288 293 if ($type eq "double") { $Nbytes += 8*$Np; $valid = 1; }
Note:
See TracChangeset
for help on using the changeset viewer.
