IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2007, 11:12:42 AM (19 years ago)
Author:
eugene
Message:

FT_UNSIGN_MODE removed as global symbol and functionality replaced with gfits_set/get_unsign_mode

Location:
trunk/Ohana/src/libfits
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libfits/header/F_init_H.c

    r8430 r12902  
    11# include <ohana.h>
    22# include <gfitsio.h>
    3 int FT_UNSIGN_MODE;
     3static int FT_UNSIGN_MODE = FALSE;
    44
    55/*********************** fits read header ***********************************/
     
    2121  return (TRUE);
    2222}
     23
     24int gfits_set_unsign_mode (int mode) {
     25  int oldmode;
     26 
     27  oldmode = FT_UNSIGN_MODE;
     28  FT_UNSIGN_MODE = mode;
     29  return (oldmode);
     30}
     31
     32int gfits_get_unsign_mode () {
     33  return (FT_UNSIGN_MODE);
     34}
  • trunk/Ohana/src/libfits/header/F_read_H.c

    r7054 r12902  
    11# include <ohana.h>
    22# include <gfitsio.h>
    3 int FT_UNSIGN_MODE;
    43
    54/*********************** fits read header ***********************************/
     
    5150  }
    5251
    53   header[0].unsign = FT_UNSIGN_MODE;
     52  header[0].unsign = gfits_get_unsign_mode();
    5453  header[0].bscale = 1;
    5554  header[0].bzero  = 0;
  • trunk/Ohana/src/libfits/header/F_read_XH.c

    r7054 r12902  
    11# include <ohana.h>
    22# include <gfitsio.h>
    3 int FT_UNSIGN_MODE;
    43
    54/*********************** fits read header ***********************************/
  • trunk/Ohana/src/libfits/include/gfitsio.h

    r7054 r12902  
    3232# define FT_LINE_LENGTH          80  /* FITS header line length */
    3333# define FT_RECORD_SIZE        2880  /* FITS block size */
    34 
    35 extern int FT_UNSIGN_MODE; /* is unsigned the default? */
    3634
    3735/* this structure defines the buffer which contains a header
     
    114112int   gfits_matrix_size            PROTO ((Header *));
    115113int   gfits_init_header            PROTO ((Header *));
     114int   gfits_get_unsign_mode        PROTO (());
     115int   gfits_set_unsign_mode        PROTO ((int mode));
    116116int   gfits_create_table_header    PROTO ((Header *, char *, char *));
    117117int   gfits_vtable_from_ftable     PROTO ((FTable *ftable, VTable *vtable, int *row, int Nrow));
Note: See TracChangeset for help on using the changeset viewer.