IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2020, 2:44:55 PM (6 years ago)
Author:
eugene
Message:

rename libfits byte-type to gfbyte to avoid collisions

File:
1 edited

Legend:

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

    r41395 r41422  
    118118        $pt1 = 0;
    119119        if ($type eq "char")          { $pt1 = "A"; }
    120         if ($type eq "byte")          { $pt1 = "B"; }
     120        if ($type eq "gfbyte")        { $pt1 = "B"; }
    121121        if ($type eq "unsigned char") { $pt1 = "B"; }
    122122        if ($type eq "rawshort")      { $pt1 = "I"; }
     
    225225        $pt1 = 0;
    226226        if ($type eq "char")          { $pt1 = sprintf "A%s", $length; }
    227         if ($type eq "byte")          { $pt1 = sprintf "I%s", $length; }
     227        if ($type eq "gfbyte")        { $pt1 = sprintf "I%s", $length; }
    228228        if ($type eq "unsigned char") { $pt1 = sprintf "I%s", $length; }
    229229        if ($type eq "rawshort")      { $pt1 = sprintf "I%s", $length; }
     
    308308        $n = 0;
    309309        if ($type eq "char")          { $N +=   $Np; next; }
    310         if ($type eq "byte")          { $N +=   $Np; next; }
     310        if ($type eq "gfbyte")        { $N +=   $Np; next; }
    311311        if ($type eq "unsigned char") { $N +=   $Np; next; }
    312312        if ($type eq "rawshort")      { $N += 2*$Np; next; }
     
    355355        $valid = 0;
    356356        if ($type eq "char")           { $Nbytes += 1*$Np; $valid = 1; }
    357         if ($type eq "byte")           { $Nbytes += 1*$Np; $valid = 1; }
     357        if ($type eq "gfbyte")         { $Nbytes += 1*$Np; $valid = 1; }
    358358        if ($type eq "unsigned char")  { $Nbytes += 1*$Np; $valid = 1; }
    359359        if ($type eq "rawshort")       { $Nbytes += 2*$Np; $valid = 1; }
Note: See TracChangeset for help on using the changeset viewer.