Changeset 13950 for trunk/psLib/src/sys/psConfigure.c
- Timestamp:
- Jun 21, 2007, 4:28:48 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psConfigure.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psConfigure.c
r12757 r13950 13 13 * @author Robert DeSonia, MHPCC 14 14 * 15 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $16 * @date $Date: 2007-0 4-06 00:04:15$15 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2007-06-22 02:28:48 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 26 26 #include <stdlib.h> 27 27 #include <string.h> 28 29 #include "psAbort.h" 28 30 #include "psTrace.h" 29 31 #include "psString.h" … … 94 96 95 97 96 voidpsLibInit(const char* timeConfig)98 bool psLibInit(const char* timeConfig) 97 99 { 98 100 // XXX: Still needs error codes to be set 99 101 100 102 if (timeConfig && strlen(timeConfig) > 0) { 101 if (!p _psTimeInit(timeConfig)) {103 if (!psTimeInit(timeConfig)) { 102 104 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 103 105 _("Failed to initialize %s."), "psTime"); 104 return ;106 return false; 105 107 } 106 108 } … … 111 113 atexit(&p_psMemoryCheck); 112 114 } 115 116 return true; 113 117 } 114 118 … … 122 126 // Free the time tables 123 127 if (!p_psTimeFinalize()) { 124 psError(PS_ERR_UNKNOWN, false, 125 _("Failed to finalize %s."), "psTime"); 126 return; 128 psAbort(_("Failed to finalize psTime.")); 127 129 } 128 130 129 131 // Free the precession tables 130 132 if (!p_psEOCFinalize()) { 131 psError(PS_ERR_UNKNOWN, false, 132 _("Failed to finalize %s."), "psEOC"); 133 return; 133 psAbort(_("Failed to finalize psEOC.")); 134 134 } 135 135 … … 139 139 // Free the error system 140 140 psErrorClear(); 141 142 141 }
Note:
See TracChangeset
for help on using the changeset viewer.
