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_set_column.c

    r41395 r41422  
    132132  }
    133133
    134   if (!strcmp (type, "byte")) {
     134  if (!strcmp (type, "gfbyte")) {
    135135    for (i = 0; i < Nval*Nrow; i++, Pin+=Nbytes, Pout+=Nbytes) {
    136136      *(char *)Pout = (*(char *)Pin - Bzero) / Bscale;
     
    338338
    339339  SET_VALUES("char",       char, "char", char, SWAP_NONE, 1);
    340   SET_VALUES("byte",       byte, "char", char, SWAP_NONE, 1);
     340  SET_VALUES("gfbyte",   gfbyte, "char", char, SWAP_NONE, 1);
    341341  SET_VALUES("short",     short, "char", char, SWAP_BYTE, 1);
    342342  SET_VALUES("int",         int, "char", char, SWAP_WORD, 1);
     
    345345  SET_VALUES("double",   double, "char", char, SWAP_DBLE, 1);
    346346
    347   SET_VALUES("char",       char, "byte", byte, SWAP_NONE, 1);
    348   SET_VALUES("byte",       byte, "byte", byte, SWAP_NONE, 1);
    349   SET_VALUES("short",     short, "byte", byte, SWAP_BYTE, 1);
    350   SET_VALUES("int",         int, "byte", byte, SWAP_WORD, 1);
    351   SET_VALUES("int64_t", int64_t, "byte", byte, SWAP_DBLE, 1);
    352   SET_VALUES("float",     float, "byte", byte, SWAP_WORD, 1);
    353   SET_VALUES("double",   double, "byte", byte, SWAP_DBLE, 1);
     347  SET_VALUES("char",       char, "gfbyte", gfbyte, SWAP_NONE, 1);
     348  SET_VALUES("gfbyte",   gfbyte, "gfbyte", gfbyte, SWAP_NONE, 1);
     349  SET_VALUES("short",     short, "gfbyte", gfbyte, SWAP_BYTE, 1);
     350  SET_VALUES("int",         int, "gfbyte", gfbyte, SWAP_WORD, 1);
     351  SET_VALUES("int64_t", int64_t, "gfbyte", gfbyte, SWAP_DBLE, 1);
     352  SET_VALUES("float",     float, "gfbyte", gfbyte, SWAP_WORD, 1);
     353  SET_VALUES("double",   double, "gfbyte", gfbyte, SWAP_DBLE, 1);
    354354
    355355  SET_VALUES("char",       char, "short", short, SWAP_NONE, 2);
    356   SET_VALUES("byte",       byte, "short", short, SWAP_NONE, 2);
     356  SET_VALUES("gfbyte",   gfbyte, "short", short, SWAP_NONE, 2);
    357357  SET_VALUES("short",     short, "short", short, SWAP_BYTE, 2);
    358358  SET_VALUES("int",         int, "short", short, SWAP_WORD, 2);
     
    362362
    363363  SET_VALUES("char",       char, "int", int, SWAP_NONE, 4);
    364   SET_VALUES("byte",       byte, "int", int, SWAP_NONE, 4);
     364  SET_VALUES("gfbyte",   gfbyte, "int", int, SWAP_NONE, 4);
    365365  SET_VALUES("short",     short, "int", int, SWAP_BYTE, 4);
    366366  SET_VALUES("int",         int, "int", int, SWAP_WORD, 4);
     
    370370
    371371  SET_VALUES("char",       char, "int64_t", int64_t, SWAP_NONE, 8);
    372   SET_VALUES("byte",       byte, "int64_t", int64_t, SWAP_NONE, 8);
     372  SET_VALUES("gfbyte",   gfbyte, "int64_t", int64_t, SWAP_NONE, 8);
    373373  SET_VALUES("short",     short, "int64_t", int64_t, SWAP_BYTE, 8);
    374374  SET_VALUES("int",         int, "int64_t", int64_t, SWAP_WORD, 8);
     
    378378
    379379  SET_VALUES("char",       char, "float", float, SWAP_NONE, 4);
    380   SET_VALUES("byte",       byte, "float", float, SWAP_NONE, 4);
     380  SET_VALUES("gfbyte",   gfbyte, "float", float, SWAP_NONE, 4);
    381381  SET_VALUES("short",     short, "float", float, SWAP_BYTE, 4);
    382382  SET_VALUES("int",         int, "float", float, SWAP_WORD, 4);
     
    386386
    387387  SET_VALUES("char",       char, "double", double, SWAP_NONE, 8);
    388   SET_VALUES("byte",       byte, "double", double, SWAP_NONE, 8);
     388  SET_VALUES("gfbyte",   gfbyte, "double", double, SWAP_NONE, 8);
    389389  SET_VALUES("short",     short, "double", double, SWAP_BYTE, 8);
    390390  SET_VALUES("int",         int, "double", double, SWAP_WORD, 8);
Note: See TracChangeset for help on using the changeset viewer.