14 |
|
#include "resolu.h" |
15 |
|
|
16 |
|
const char *cm_fmt_id[] = { |
17 |
< |
"unknown", "ascii", "float", "double", |
18 |
< |
COLRFMT, CIEFMT |
17 |
> |
"unknown", "ascii", COLRFMT, CIEFMT, |
18 |
> |
"float", "double" |
19 |
|
}; |
20 |
|
|
21 |
|
const int cm_elem_size[] = { |
117 |
|
cmi.dtype = DTfromHeader; |
118 |
|
cmi.nrows = cmi.ncols = 0; |
119 |
|
cmi.err = "unexpected EOF in header"; |
120 |
< |
if (getheader(fp, &get_cminfo, &cmi) < 0) |
120 |
> |
if (getheader(fp, get_cminfo, &cmi) < 0) |
121 |
|
return(cmi.err); |
122 |
|
if (dt != NULL) { /* get/check data type? */ |
123 |
|
if (cmi.dtype == DTfromHeader) { |