WCSLIB scalar test routines
---------------------------

WCSLIB 3.0 provides a set of C preprocessor macros for the lin.c, proj.c, and
sph.c routines which map their vector function interfaces to the scalar
interfaces of WCSLIB 2.0.  For example, the scalar routine azpfwd() is mapped
to vector routine azps2x().

There are two provisos to the use of these macros:

   1) The prjprm structure is more general in nature and contains additional
      members which require initialization.  This may be done conveniently by
      inserting a call to prjini().

   2) The new interface to prjset() differs from that of WCSLIB 2.x and old
      code which uses it must be changed manually.

Macros are not provided for cel.c or wcs.c (because the relevant celprm and
wcsprm structs are incompatible), nor for the newer spc.c or spec.c functions.

The scalar test routines provided here may be compared with those of
WCSLIB 2.9.  tlin_s.c and tsph_s.c are identical, while the differences for
tproj1_s.c and tproj2_s.c (from 'diff') are as follows:

------------------------------------------------------------------------------

grus% diff tproj1_s.c ../../../wcslib-2.9/C/tproj1.c
84c84
<    prjini(&prj);
---
>    for (j = 0; j < 10; prj.p[j++] = 0.0);
227,228c227
<    strcpy(prj->code, pcode);
<    prjset(prj);
---
>    prjset(pcode, prj);
329c328
<    prjini(prj);
---
>    for (j = 0; j < 10; prj->p[j++] = 0.0);

------------------------------------------------------------------------------

grus% diff tproj2_s.c ../../../wcslib-2.9/C/tproj2.c
90c90
<    prjini(&prj);
---
>    for (j = 0; j < 10; prj.p[j++] = 0.0);
276,277c276
<    strcpy(prj->code, pcode);
<    prjset(prj);
---
>    prjset(pcode, prj);
394c393
<    prjini(prj);
---
>    for (j = 0; j < 10; prj->p[j++] = 0.0);

------------------------------------------------------------------------------

$Id$
