Index: trunk/psphot/src/psphotStackReadout.c
===================================================================
--- trunk/psphot/src/psphotStackReadout.c	(revision 38303)
+++ trunk/psphot/src/psphotStackReadout.c	(revision 38385)
@@ -1,8 +1,5 @@
 # include "psphotInternal.h"
 
-static bool psphotStackMatchPSFsetup (pmConfig *config, const pmFPAview *view, const char *filerule, const char *fPSF);
-static bool psphotStackMatchPSFsetupReadout (pmConfig *config, const pmFPAview *view, const char *filerule, const char *fPSF, int index);
-static bool psphotStackLoadWCS(pmConfig *config, const pmFPAview *view, const char *filerule);
-static void logMemStats(const char *heading);
+static void psphotLogMemoryStats(const char *heading);
 
 // relevant filesets:
@@ -80,5 +77,5 @@
     psTimerStart ("psphotReadout");
 
-    logMemStats("Start");
+    psphotLogMemoryStats("Start");
 
     pmModelClassSetLimits(PM_MODEL_LIMITS_LAX); // allow models to have ugly fits (eg, central cusp)
@@ -153,5 +150,5 @@
     // psphotDumpTest (config, view, STACK_RAW);
     psMemDump("sourcestats");
-    logMemStats("sourcestats");
+    psphotLogMemoryStats("sourcestats");
 
     // classify sources based on moments, brightness
@@ -205,7 +202,7 @@
     // window of size PSF_MOMENTS_RADIUS (same window used to measure the psf-scale moments)
     // but iterates to an appropriately larger size
-    logMemStats("before.kron.1");
+    psphotLogMemoryStats("before.kron.1");
     psphotKronIterate(config, view, STACK_RAW, 1);
-    logMemStats("after.kron.1");
+    psphotLogMemoryStats("after.kron.1");
 	
     // identify CRs and extended sources
@@ -219,5 +216,5 @@
     psphotReplaceAllSources (config, view, STACK_RAW, false); // pass 1 (detections->allSources)
 
-    logMemStats("pass1");
+    psphotLogMemoryStats("pass1");
 
     // if we only do one pass, skip to extended source analysis
@@ -286,5 +283,5 @@
     }
 
-    logMemStats("prematch");
+    psphotLogMemoryStats("prematch");
 
     // generate the objects (objects unify the sources from the different images) NOTE: could
@@ -315,7 +312,7 @@
     // re-measure the kron mags with models subtracted
     // psphotKronMasked(config, view, STACK_SRC);
-    logMemStats("before.kron.2");
+    psphotLogMemoryStats("before.kron.2");
     psphotKronIterate(config, view, STACK_RAW, 2);
-    logMemStats("after.kron.2");
+    psphotLogMemoryStats("after.kron.2");
 
     // measure source size for the remaining sources
@@ -435,5 +432,5 @@
     psphotCopyEfficiency (config, view, STACK_OUT, STACK_RAW);
 
-    logMemStats("final");
+    psphotLogMemoryStats("final");
 #if (0)
     psphotSourceMemory(config, view, STACK_RAW);
@@ -457,5 +454,5 @@
 }
 
-static bool psphotStackLoadWCS(pmConfig *config, const pmFPAview *view, const char *filerule) {
+bool psphotStackLoadWCS(pmConfig *config, const pmFPAview *view, const char *filerule) {
 
     int num = psphotFileruleCount(config, filerule);
@@ -483,5 +480,5 @@
 // tries to open and read from a file it is safe
 // XXX: refine this and move it to psLib
-static void logMemStats(const char *heading) {
+void psphotLogMemoryStats(const char *heading) {
 
     // file containing memory statistics for this process proc. See proc(5)
