42 |
#include "ulib.h" |
#include "ulib.h" |
43 |
#include <stdlib.h> |
#include <stdlib.h> |
44 |
#include <string.h> |
#include <string.h> |
|
#include <math.h> |
|
45 |
#if 0 |
#if 0 |
46 |
#include "extern.h" |
#include "extern.h" |
47 |
#endif |
#endif |
122 |
SPEC; |
SPEC; |
123 |
|
|
124 |
#define bad_hdu(h) (!h->simple || (h->ndim == 0 && !h->xtname[0])) |
#define bad_hdu(h) (!h->simple || (h->ndim == 0 && !h->xtname[0])) |
125 |
#define Bad_bpp(p) (p != 8 && p != 16 && fabs(p) != 32 && p != -64) |
#define Bad_bpp(p) (p != 8 && p != 16 && abs(p) != 32 && p != -64) |
126 |
#define bad_dim(h) (h->ndim<0 || (h->ndim>MAXDIM && h->dim[MAXDIM-1]!=1)) |
#define bad_dim(h) (h->ndim<0 || (h->ndim>MAXDIM && h->dim[MAXDIM-1]!=1)) |
127 |
|
|
128 |
static void |
static void |