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/libfits/table/F_table_format.c

    r39399 r41422  
    2424  switch (*Fchar) {
    2525  case  'X':
    26     { *Nbytes = 1;  strcpy (type, "byte");   *Nval = 1 + (int) Nv / 8; }
     26    { *Nbytes = 1;  strcpy (type, "gfbyte");   *Nval = 1 + (int) Nv / 8; }
    2727    break;
    2828  case  'L':
    29     { *Nbytes = 1;  strcpy (type, "byte");   *Nval = Nv;               }
     29    { *Nbytes = 1;  strcpy (type, "gfbyte");   *Nval = Nv;               }
    3030    break;
    3131  case  'A':
     
    3333    break;
    3434  case  'B':
    35     { *Nbytes = 1;  strcpy (type, "byte");   *Nval = Nv;               }
     35    { *Nbytes = 1;  strcpy (type, "gfbyte");   *Nval = Nv;               }
    3636    break;
    3737  case  'I':
     
    108108 
    109109  Type = 'x';
     110  if (Fchar == 'D') { *Nbytes = 1;  strcpy (type, "double"); Type = 'e'; *Nval = Nv; }
     111  if (Fchar == 'E') { *Nbytes = 1;  strcpy (type, "float");  Type = 'e'; *Nval = Nv; }
    110112  if (Fchar == 'F') { *Nbytes = 1;  strcpy (type, "float");  Type = 'f'; *Nval = Nv; }
    111113  if (Fchar == 'I') { *Nbytes = 1;  strcpy (type, "int");    Type = 'd'; *Nval = Nv; }
     
    284286      }
    285287    }
    286     if (!strcmp (type, "byte"))   {
     288    if (!strcmp (type, "gfbyte"))   {
    287289      for (j = 0; j < Ny; j++) {
    288290        for (n = 0; n < Nval; n++) {
     
    377379      }
    378380    }
    379     if (!strcmp (type, "byte"))   {
     381    if (!strcmp (type, "gfbyte"))   {
    380382      for (j = 0; j < Ny; j++) {
    381383        for (n = 0; n < Nval; n++) {
Note: See TracChangeset for help on using the changeset viewer.