Changeset 5448 for trunk/Ohana/src/libautocode
- Timestamp:
- Oct 27, 2005, 10:38:30 AM (21 years ago)
- Location:
- trunk/Ohana/src/libautocode
- Files:
-
- 2 edited
-
def/SkyRegion.d (modified) (2 diffs)
-
generate (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libautocode/def/SkyRegion.d
r5445 r5448 2 2 EXTNAME SKY_REGION 3 3 TYPE BINTABLE 4 SIZE 564 SIZE 64 5 5 6 6 FIELD Rmin, R_MIN, float, … … 16 16 FIELD table, TABLE, char, does this entry have a table? 17 17 FIELD name, NAME, char[21], name / filename 18 FIELD filename, FILENAME, e_void, filename pointer -
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.
