IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 4, 2006, 10:00:28 PM (21 years ago)
Author:
eugene
Message:

fixes for skyregion, generate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/generate

    r5448 r5900  
    119119        if ($type eq "unsigned int")  { $pt1 = "J"; }
    120120        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
    123121        if ($type eq "float")         { $pt1 = "E"; }
    124122        if ($type eq "double")        { $pt1 = "D"; }
     123
     124        if ($type eq "e_void")        { $pt1 = "B"; $Np = 8*$Np; }
     125        # e_void is a 64 bit pointer, cast to size_t.  its value is not loaded
     126        # from the table.
     127
    125128        if (!$pt1) { die "unknown type $type"; }
    126129
     
    190193        if ($type eq "unsigned int")  { $pt1 = sprintf "I%s", $length; }
    191194        if ($type eq "e_time")        { $pt1 = sprintf "I%s", $length; }
    192         if ($type eq "e_void")        { $pt1 = sprintf "I%s", $length; }
    193195        if ($type eq "float")         { $pt1 = sprintf "F%s", $length; }
    194196        if ($type eq "double")        { $pt1 = sprintf "F%s", $length; }
     197
     198        if ($type eq "e_void")        { $pt1 = sprintf "I%s", $length; }
     199
    195200        if (!$pt1) { die "unknown type $type"; }
    196201
Note: See TracChangeset for help on using the changeset viewer.