Index: /trunk/psLib/src/astronomy/Makefile
===================================================================
--- /trunk/psLib/src/astronomy/Makefile	(revision 1786)
+++ /trunk/psLib/src/astronomy/Makefile	(revision 1787)
@@ -14,5 +14,11 @@
 OBJS = $(addprefix makedir/,$(SRC_OBJS))
 
+HEADERS = $(SRC_OBJS:.o=.h) psPhotometry.h slalib.h
+
 all: $(TARGET_STATIC)
+
+psAstronomyErrors.h: psAstronomyErrors.dat
+	perl ../parseErrorCodes.pl --data=$? $@
+
 
 # Rule to make static library
@@ -25,5 +31,5 @@
 # Define PHONY target "install" which will install necessary files
 install: $(TARGET_STATIC)
-	install *.h $(includedir)
+	install $(HEADERS) $(includedir)
 
 # Define PHONY target "distclean" which will cleanup the distribution
Index: /trunk/psLib/src/astronomy/psAstronomyErrors.dat
===================================================================
--- /trunk/psLib/src/astronomy/psAstronomyErrors.dat	(revision 1787)
+++ /trunk/psLib/src/astronomy/psAstronomyErrors.dat	(revision 1787)
@@ -0,0 +1,8 @@
+#
+#  This file is used to generate psAstronomyErrors.h content
+#
+#  Format is:
+#  ERRORNAME(one word)    ERROR_TEXT
+#
+#  N.B. in code, the ERRORNAME appears as PS_ERRORTEXT_ERRORNAME
+####################################################################
Index: /trunk/psLib/src/astronomy/psAstronomyErrors.h
===================================================================
--- /trunk/psLib/src/astronomy/psAstronomyErrors.h	(revision 1787)
+++ /trunk/psLib/src/astronomy/psAstronomyErrors.h	(revision 1787)
@@ -0,0 +1,35 @@
+/** @file  psAstronomyErrors.h
+ *
+ *  @brief Contains the error text for the astronomy functions
+ *
+ *  @ingroup ErrorHandling
+ *
+ *  @author Robert DeSonia, MHPCC
+ *
+ *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-11 00:43:54 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ */
+
+#ifndef PS_SYSUTILS_ERRORS_H
+#define PS_SYSUTILS_ERRORS_H
+
+/* N.B., lines between '//~Start' and '//~End' are automatic generated from
+ * the template following the '//~Start'.  The template is used to generate
+ * the other lines by, for each error text in psAstronomyErrors.dat, the following
+ * substitutions are made:
+ *     $1  The error text macro name (first word in the psAstronomyErrors.dat lines)
+ *     $2  The error text (rest of the line in psAstronomyErrors.dat)
+ *     $n  The order of the source line in psAstronomyErrors.dat (comments excluded)
+ * 
+ * DO NOT EDIT THE LINES BETWEEN //~Start and //~End!  ANY CHANGES WILL BE OVERWRITTEN.
+ */
+
+#define PS_ERRORNAME_DOMAIN "psLib.astronomy."
+
+//~Start #define PS_ERRORTEXT_$1 "$2"
+#define PS_ERRORTEXT_ ""
+//~End
+
+#endif
Index: /trunk/psLib/src/collections/Makefile
===================================================================
--- /trunk/psLib/src/collections/Makefile	(revision 1786)
+++ /trunk/psLib/src/collections/Makefile	(revision 1787)
@@ -3,6 +3,6 @@
 ##  Makefile:   collections
 ##
-##  $Revision: 1.30 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-09-09 22:21:00 $
+##  $Revision: 1.31 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-09-11 00:43:54 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -47,4 +47,7 @@
 all: $(TARGET_STATIC)
 
+psCollectionsErrors.h: psCollectionsErrors.dat
+	perl ../parseErrorCodes.pl --data=$? $@
+
 # Rule to make static library
 
@@ -58,7 +61,4 @@
 install: $(TARGET_STATIC)
 	install $(HEADERS) $(includedir)
-
-psCollectionsErrors.h: psCollectionsErrors.dat
-	perl ../parseErrorCodes.pl --data=$? $@
 
 # Define PHONY target "distclean" which will cleanup the distribution
Index: /trunk/psLib/src/collections/psCollectionsErrors.h
===================================================================
--- /trunk/psLib/src/collections/psCollectionsErrors.h	(revision 1786)
+++ /trunk/psLib/src/collections/psCollectionsErrors.h	(revision 1787)
@@ -1,5 +1,5 @@
-/** @file  psSysUtilsErrors.h
+/** @file  psCollectionsErrors.h
  *
- *  @brief Contains the error text for the system utility functions
+ *  @brief Contains the error text for the collections functions
  *
  *  @ingroup ErrorHandling
@@ -7,20 +7,20 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-09 21:59:43 $
+ *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-11 00:43:54 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
  */
 
-#ifndef PS_SYSUTILS_ERRORS_H
-#define PS_SYSUTILS_ERRORS_H
+#ifndef PS_COLLECTIONS_ERRORS_H
+#define PS_COLLECTIONS_ERRORS_H
 
 /* N.B., lines between '//~Start' and '//~End' are automatic generated from
  * the template following the '//~Start'.  The template is used to generate
- * the other lines by, for each error text in psSysUtilsErrors.dat, the following
+ * the other lines by, for each error text in psCollectionsErrors.dat, the following
  * substitutions are made:
- *     $1  The error text macro name (first word in the psSysUtilsErrors.dat lines)
- *     $2  The error text (rest of the line in psSysUtilsErrors.dat)
- *     $n  The order of the source line in psSysUtilsErrors.dat (comments excluded)
+ *     $1  The error text macro name (first word in the psCollectionsErrors.dat lines)
+ *     $2  The error text (rest of the line in psCollectionsErrors.dat)
+ *     $n  The order of the source line in psCollecitonsErrors.dat (comments excluded)
  * 
  * DO NOT EDIT THE LINES BETWEEN //~Start and //~End!  ANY CHANGES WILL BE OVERWRITTEN.
Index: /trunk/psLib/src/dataManip/Makefile
===================================================================
--- /trunk/psLib/src/dataManip/Makefile	(revision 1786)
+++ /trunk/psLib/src/dataManip/Makefile	(revision 1787)
@@ -19,4 +19,7 @@
          
 all: $(TARGET_STATIC)
+
+psDataManipErrors.h: psDataManipErrors.dat
+	perl ../parseErrorCodes.pl --data=$? $@
 
 # force the creation of a psImage.i for psImage.o (to expand macros).
Index: /trunk/psLib/src/dataManip/psDataManipErrors.dat
===================================================================
--- /trunk/psLib/src/dataManip/psDataManipErrors.dat	(revision 1787)
+++ /trunk/psLib/src/dataManip/psDataManipErrors.dat	(revision 1787)
@@ -0,0 +1,8 @@
+#
+#  This file is used to generate psDataManipErrors.h content
+#
+#  Format is:
+#  ERRORNAME(one word)    ERROR_TEXT
+#
+#  N.B. in code, the ERRORNAME appears as PS_ERRORTEXT_ERRORNAME
+####################################################################
Index: /trunk/psLib/src/dataManip/psDataManipErrors.h
===================================================================
--- /trunk/psLib/src/dataManip/psDataManipErrors.h	(revision 1787)
+++ /trunk/psLib/src/dataManip/psDataManipErrors.h	(revision 1787)
@@ -0,0 +1,34 @@
+/** @file  psDataManipErrors.h
+ *
+ *  @brief Contains the error text for the data manipulation functions
+ *
+ *  @ingroup ErrorHandling
+ *
+ *  @author Robert DeSonia, MHPCC
+ *
+ *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-11 00:43:54 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ */
+
+#ifndef PS_DATAMANIP_ERRORS_H
+#define PS_DATAMANIP_ERRORS_H
+
+/* N.B., lines between '//~Start' and '//~End' are automatic generated from
+ * the template following the '//~Start'.  The template is used to generate
+ * the other lines by, for each error text in psDataManipErrors.dat, the following
+ * substitutions are made:
+ *     $1  The error text macro name (first word in the psDataManipErrors.dat lines)
+ *     $2  The error text (rest of the line in psDataManipErrors.dat)
+ *     $n  The order of the source line in psDataManipErrors.dat (comments excluded)
+ * 
+ * DO NOT EDIT THE LINES BETWEEN //~Start and //~End!  ANY CHANGES WILL BE OVERWRITTEN.
+ */
+
+#define PS_ERRORNAME_DOMAIN "psLib.dataManip."
+
+//~Start #define PS_ERRORTEXT_$1 "$2"
+//~End
+
+#endif
Index: /trunk/psLib/src/image/Makefile
===================================================================
--- /trunk/psLib/src/image/Makefile	(revision 1786)
+++ /trunk/psLib/src/image/Makefile	(revision 1787)
@@ -3,6 +3,6 @@
 ##  Makefile:   collections
 ##
-##  $Revision: 1.5 $  $Name: not supported by cvs2svn $
-##  $Date: 2004-09-09 22:21:00 $
+##  $Revision: 1.6 $  $Name: not supported by cvs2svn $
+##  $Date: 2004-09-11 00:43:54 $
 ##
 ##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -45,4 +45,7 @@
 
 all: $(TARGET_STATIC)
+
+psImageErrors.h: psImageErrors.dat
+	perl ../parseErrorCodes.pl --data=$? $@
 
 # Rule to make static library
Index: /trunk/psLib/src/image/psImageErrors.dat
===================================================================
--- /trunk/psLib/src/image/psImageErrors.dat	(revision 1787)
+++ /trunk/psLib/src/image/psImageErrors.dat	(revision 1787)
@@ -0,0 +1,8 @@
+#
+#  This file is used to generate psImageErrors.h content
+#
+#  Format is:
+#  ERRORNAME(one word)    ERRORTEXT
+#
+#  N.B. in code, the ERRORNAME appears as PS_ERRORTEXT_ERRORNAME
+####################################################################
Index: /trunk/psLib/src/image/psImageErrors.h
===================================================================
--- /trunk/psLib/src/image/psImageErrors.h	(revision 1787)
+++ /trunk/psLib/src/image/psImageErrors.h	(revision 1787)
@@ -0,0 +1,34 @@
+/** @file  psImageErrors.h
+ *
+ *  @brief Contains the error text for the image functions
+ *
+ *  @ingroup ErrorHandling
+ *
+ *  @author Robert DeSonia, MHPCC
+ *
+ *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-11 00:43:54 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ */
+
+#ifndef PS_IMAGE_ERRORS_H
+#define PS_IMAGE_ERRORS_H
+
+/* N.B., lines between '//~Start' and '//~End' are automatic generated from
+ * the template following the '//~Start'.  The template is used to generate
+ * the other lines by, for each error text in psImageErrors.dat, the following
+ * substitutions are made:
+ *     $1  The error text macro name (first word in the psImageErrors.dat lines)
+ *     $2  The error text (rest of the line in psImageErrors.dat)
+ *     $n  The order of the source line in psImageErrors.dat (comments excluded)
+ * 
+ * DO NOT EDIT THE LINES BETWEEN //~Start and //~End!  ANY CHANGES WILL BE OVERWRITTEN.
+ */
+
+#define PS_ERRORNAME_DOMAIN "psLib.image."
+
+//~Start #define PS_ERRORTEXT_$1 "$2"
+//~End
+
+#endif
Index: /trunk/psLib/src/sys/psErrorCodes.c
===================================================================
--- /trunk/psLib/src/sys/psErrorCodes.c	(revision 1786)
+++ /trunk/psLib/src/sys/psErrorCodes.c	(revision 1787)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-09 02:24:18 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-11 00:43:54 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
Index: /trunk/psLib/src/sys/psErrorCodes.h
===================================================================
--- /trunk/psLib/src/sys/psErrorCodes.h	(revision 1786)
+++ /trunk/psLib/src/sys/psErrorCodes.h	(revision 1787)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-09 02:24:18 $
+ *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-11 00:43:54 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
Index: /trunk/psLib/src/sysUtils/psErrorCodes.c
===================================================================
--- /trunk/psLib/src/sysUtils/psErrorCodes.c	(revision 1786)
+++ /trunk/psLib/src/sysUtils/psErrorCodes.c	(revision 1787)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-09 02:24:18 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-11 00:43:54 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
Index: /trunk/psLib/src/sysUtils/psErrorCodes.h
===================================================================
--- /trunk/psLib/src/sysUtils/psErrorCodes.h	(revision 1786)
+++ /trunk/psLib/src/sysUtils/psErrorCodes.h	(revision 1787)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-09 02:24:18 $
+ *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-11 00:43:54 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
Index: /trunk/psLib/src/sysUtils/psSysUtilsErrors.dat
===================================================================
--- /trunk/psLib/src/sysUtils/psSysUtilsErrors.dat	(revision 1786)
+++ /trunk/psLib/src/sysUtils/psSysUtilsErrors.dat	(revision 1787)
@@ -3,5 +3,9 @@
 #
 #  Format is:
-#  ERROR_NAME(one word)    ERROR_TEXT
+#  ERRORNAME(one word)    ERROR_TEXT
+#
+#  N.b. The ERRORNAME is exposed in the code as PS_ERR_ERRORNAME, e.g.,
+#  if ERRORNAME=psMemory_NULL_BLOCK, then use PS_ERR_psMemory_NULL_BLOCK in
+#  the code.
 #
 ####################################################################
Index: /trunk/psLib/src/sysUtils/psSysUtilsErrors.h
===================================================================
--- /trunk/psLib/src/sysUtils/psSysUtilsErrors.h	(revision 1786)
+++ /trunk/psLib/src/sysUtils/psSysUtilsErrors.h	(revision 1787)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-09 21:59:03 $
+ *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-11 00:43:54 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
