Index: trunk/archive/pslib/include/psPosition.h
===================================================================
--- trunk/archive/pslib/include/psPosition.h	(revision 282)
+++ trunk/archive/pslib/include/psPosition.h	(revision 295)
@@ -48,14 +48,16 @@
 
 /** apply the coordinate transformation to the given coordinate */
-psCoord *psCoordXformApply (psCoordXform *frame, ///< coordinate transformation
-			    psCoord *coords) ///< input coordiate
-;
+psCoord *psCoordXformApply (psCoord *out, //!< Output coordinates, or NULL
+			    const psCoordXform *frame, ///< coordinate transformation
+			    const psCoord *coords ///< input coordiate
+    );
 
 /** apply the optical distortion to the given coordinate, magnitude, color */
-psCoord *psDistortionApply (psDistortion *pattern, ///< optical distortion pattern
-psCoord *coords,			///< input coordinate
-float mag,				///< magnitude of object
-float color)				///< color of object
-;
+psCoord *psDistortionApply (psCoord *out, //!< Output coordinates, or NULL
+			    const psdistortion *pattern, ///< optical distortion pattern
+			    const psCoord *coords, ///< input coordinate
+			    float mag,	///< magnitude of object
+			    float color ///< color of object
+    );
 
 /** Get offset (RA,Dec) on the sky between two positions position1 and position2 may not be identical */
@@ -77,6 +79,6 @@
 /** Get Sun Position */
 psCoord *
-psGetSunPos(float mjd)			//!< MJD to get position for
-;
+psGetSunPos(float mjd			//!< MJD to get position for
+    );
 
 /** Get Moon position */
@@ -84,17 +86,17 @@
 psGetMoonPos(float mjd,			//!< MJD to get position for
 	     double latitude,		//!< Latitude for apparent position
-	     double longitude)		//!< Longitude for apparent position
-;
+	     double longitude		//!< Longitude for apparent position
+    );
 
 /** Get Moon phase */
 float
-psGetMoonPhase(float mjd)		//!< MJD to get phase for
-;
+psGetMoonPhase(float mjd		//!< MJD to get phase for
+    );
 
 /** Get Planet positions */
 psCoord *
-psGetSolarSystemPos(char *solarSystemObject, //!< Named S.S. object
-		    float mjd)		//!< MJD to get position for
-;
+psGetSolarSystemPos(const char *solarSystemObject, //!< Named S.S. object
+		    float mjd		//!< MJD to get position for
+    );
 
 /***********************************************************************************************************/
@@ -104,21 +106,21 @@
 /** Convert ICRS to Ecliptic */
 psCoord *
-psCoordinatesItoE(const psCoord *restrict coordinates) //!< ICRS coordinates to convert
-;
+psCoordinatesItoE(const psCoord *restrict coordinates //!< ICRS coordinates to convert
+    );
 
 /** Convert Ecliptic to ICRS */
 psCoord *
-psCoordinatesEtoI(const psCoord *restrict coordinates) //!< Ecliptic coordinates to convert
-;
+psCoordinatesEtoI(const psCoord *restrict coordinates //!< Ecliptic coordinates to convert
+    );
 
 /** Convert ICRS to Galactic */
 psCoord *
-psCoordinatesItoG(const psCoord *restrict coordinates) //!< ICRS coordinates to convert
-;
+psCoordinatesItoG(const psCoord *restrict coordinates //!< ICRS coordinates to convert
+    );
 
 /** Convert Galactic to ICRS */
 psCoord *
-psCoordinatesGtoI(const psCoord *restrict coordinates) //!< Galactic coordinates to convert
-;
+psCoordinatesGtoI(const psCoord *restrict coordinates //!< Galactic coordinates to convert
+    );
 
 /***********************************************************************************************************/
