Changeset 2653 in Sophya for trunk/SophyaExt/XephemAstroLib/dbfmt.c
- Timestamp:
- Mar 7, 2005, 5:47:18 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/XephemAstroLib/dbfmt.c
r2643 r2653 387 387 if (nf < 5 || nf > 7) { 388 388 if (whynot) 389 sprintf (whynot, "%s: f needs 5-7 fields, not %d",enm(flds),nf); 389 sprintf (whynot, "%s: type f needs 5-7 fields, not %d", 390 enm(flds),nf); 390 391 return (-1); 391 392 } … … 411 412 return (-1); 412 413 } 413 } 414 } else 415 op->f_class = 'T'; /* default to star-like */ 414 416 if (nsf > 2) { 415 417 /* fill f_spect all the way */ … … 465 467 if (nf != 13 && nf != 14) { 466 468 if (whynot) 467 sprintf (whynot, "%s: e needs 13 or 14 fields, not %d",469 sprintf (whynot, "%s: type e needs 13 or 14 fields, not %d", 468 470 enm(flds), nf); 469 471 return (-1); … … 506 508 if (nf != 11 && nf != 12) { 507 509 if (whynot) 508 sprintf (whynot, "%s: h needs 11 or 12 fields, not %d",510 sprintf (whynot, "%s: type h needs 11 or 12 fields, not %d", 509 511 enm(flds), nf); 510 512 return (-1); … … 536 538 if (nf != 10 && nf != 11) { 537 539 if (whynot) 538 sprintf (whynot, "%s: p needs 10 or 11 fields, not %d",540 sprintf (whynot, "%s: type p needs 10 or 11 fields, not %d", 539 541 enm(flds), nf); 540 542 return (-1); … … 565 567 if (nf != 11 && nf != 12) { 566 568 if (whynot) 567 sprintf (whynot, "%s: E needs 11 or 12 fields, not %d",569 sprintf (whynot, "%s: type E needs 11 or 12 fields, not %d", 568 570 enm(flds), nf); 569 571 return (-1); … … 747 749 if (whynot) 748 750 sprintf (whynot, 749 "%s:B needs 3,6 or 7 subfields in field 7, not %d",751 "%s: type B needs 3,6 or 7 subfields in field 7, not %d", 750 752 enm(flds), nsf); 751 753 return (-1); … … 1004 1006 1005 1007 /* For RCS Only -- Do Not Edit */ 1006 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2005-0 1-17 10:13:04 $ $Revision: 1.4$ $Name: not supported by cvs2svn $"};1008 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2005-03-07 16:47:17 $ $Revision: 1.5 $ $Name: not supported by cvs2svn $"};
Note:
See TracChangeset
for help on using the changeset viewer.