Changeset 4540 for trunk/psLib/src/sys
- Timestamp:
- Jul 12, 2005, 9:12:01 AM (21 years ago)
- Location:
- trunk/psLib/src/sys
- Files:
-
- 2 added
- 1 deleted
- 8 edited
-
Makefile.am (modified) (1 diff)
-
psConfigure.c (modified) (2 diffs)
-
psErrorCodes.c (modified) (3 diffs)
-
psErrorCodes.h (deleted)
-
psErrorCodes.h.in (added)
-
psLogMsg.c (modified) (2 diffs)
-
psMemory.c (modified) (2 diffs)
-
psString.c (modified) (2 diffs)
-
psTrace.c (modified) (2 diffs)
-
psType.h (modified) (4 diffs)
-
sys.i (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/Makefile.am
r4446 r4540 1 #Makefile for sys Utilsfunctions of psLib1 #Makefile for sys functions of psLib 2 2 # 3 INCLUDES = \ 4 -I$(top_srcdir)/src/astro \ 5 -I$(top_srcdir)/src/db \ 6 -I$(top_srcdir)/src/fft \ 7 -I$(top_srcdir)/src/fits \ 8 -I$(top_srcdir)/src/imageops \ 9 -I$(top_srcdir)/src/math \ 10 -I$(top_srcdir)/src/mathtypes \ 11 -I$(top_srcdir)/src/sys \ 12 -I$(top_srcdir)/src/types \ 13 -I$(top_srcdir)/src/xml \ 14 $(all_includes) 3 noinst_LTLIBRARIES = libpslibsys.la 15 4 16 noinst_LTLIBRARIES = libpslibsysUtils.la 5 libpslibsys_la_SOURCES = \ 6 psAbort.c \ 7 psConfigure.c \ 8 psError.c \ 9 psErrorCodes.c \ 10 psLogMsg.c \ 11 psMemory.c \ 12 psString.c \ 13 psTrace.c 17 14 18 libpslibsysUtils_la_SOURCES = \ 19 psMemory.c \ 20 psError.c \ 21 psTrace.c \ 22 psLogMsg.c \ 23 psAbort.c \ 24 psString.c \ 25 psConfigure.c \ 26 psErrorCodes.c 15 EXTRA_DIST = sys.i 27 16 28 BUILT_SOURCES = psSysUtilsErrors.h 29 EXTRA_DIST = psSysUtilsErrors.dat psSysUtilsErrors.h sysUtils.i 17 BUILT_SOURCES = psErrorCodes.c 30 18 31 psSysUtilsErrors.h: psSysUtilsErrors.dat 32 $(top_srcdir)/src/psParseErrorCodes --data=$? $@ 19 psErrorCodes.c: ../psErrorCodes_$(LANG).dat psErrorCodes.c.in psErrorCodes.h 20 $(top_srcdir)/psParseErrorCodes --data=../psErrorCodes_$(LANG).dat $@ 21 22 psError.h: psErrorCodes.h 23 24 psErrorCodes.h: ../psErrorCodes_$(LANG).dat psErrorCodes.h.in 25 $(top_srcdir)/psParseErrorCodes --data=../psErrorCodes_$(LANG).dat $@ 33 26 34 27 pslibincludedir = $(includedir) 35 28 pslibinclude_HEADERS = \ 36 psType.h \ 29 psAbort.h \ 30 psConfigure.h \ 31 psError.h \ 32 psErrorCodes.h \ 33 psLogMsg.h \ 37 34 psMemory.h \ 38 ps Error.h\35 psString.h \ 39 36 psTrace.h \ 40 psLogMsg.h \ 41 psAbort.h \ 42 psString.h \ 43 psConfigure.h \ 44 psErrorCodes.h 45 37 psType.h -
trunk/psLib/src/sys/psConfigure.c
r4214 r4540 13 13 * @author Robert DeSonia, MHPCC 14 14 * 15 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $16 * @date $Date: 2005-0 6-11 02:19:05$15 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-07-12 19:12:01 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 22 22 #include "psError.h" 23 23 #include "psConfigure.h" 24 #include "ps SysUtilsErrors.h"24 #include "psErrorText.h" 25 25 #include "config.h" 26 26 -
trunk/psLib/src/sys/psErrorCodes.c
r4392 r4540 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 6-25 02:02:05$9 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-07-12 19:12:01 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 20 20 #include "psMemory.h" 21 21 22 #include "psSysUtilsErrors.h" 23 24 /* N.B., lines between '//~Start' and '//~End' are automatic generated from 25 * the template following the '//~Start'. The template is used to generate 26 * the other lines by, for each error class in psErrorCodes.dat, the following 27 * substitutions are made: 28 * $1 The error code name (first word in the psErrorCodes.dat lines) 29 * $2 The error description (rest of the line in psErrorCodes.dat) 30 * $n The order of the source line in psErrorCodes.dat (comments excluded) 31 * 32 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 33 */ 22 #include "psErrorText.h" 34 23 35 24 static psErrorDescription staticErrorCodes[] = { 36 25 {PS_ERR_NONE,"not an error"}, 37 26 {PS_ERR_BASE,"base error"}, 38 //~Start {PS_ERR_$1,"$2"},39 27 {PS_ERR_UNKNOWN,"unknown error"}, 40 28 {PS_ERR_IO,"I/O error"}, … … 48 36 {PS_ERR_UNEXPECTED_NULL,"unexpected NULL found"}, 49 37 {PS_ERR_OS_CALL_FAILED,"unexpected result from an OS standard library call"}, 50 //~End51 38 {PS_ERR_N_ERR_CLASSES,"error classes end marker"} 52 39 }; -
trunk/psLib/src/sys/psLogMsg.c
r4367 r4540 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 6-23 03:50:29$14 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-07-12 19:12:01 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 42 42 #include "psTrace.h" 43 43 44 #include "ps SysUtilsErrors.h"44 #include "psErrorText.h" 45 45 46 46 #define MIN_LOG_LEVEL 0 -
trunk/psLib/src/sys/psMemory.c
r4401 r4540 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 6-27 20:38:12$10 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-07-12 19:12:01 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 25 25 #include "psLogMsg.h" 26 26 27 #include "ps SysUtilsErrors.h"27 #include "psErrorText.h" 28 28 29 29 #define P_PS_MEMMAGIC (psPtr )0xdeadbeef // Magic number in psMemBlock header -
trunk/psLib/src/sys/psString.c
r4434 r4540 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 6-30 00:33:36$14 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-07-12 19:12:01 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 25 25 #include "psError.h" 26 26 27 #include "ps SysUtilsErrors.h"27 #include "psErrorText.h" 28 28 29 29 psString psStringCopy(const char *string) -
trunk/psLib/src/sys/psTrace.c
r4409 r4540 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.5 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 6-28 20:17:52$11 * @version $Revision: 1.54 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-07-12 19:12:01 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 51 51 #include "psLogMsg.h" 52 52 53 #include "ps SysUtilsErrors.h"53 #include "psErrorText.h" 54 54 55 55 static p_psComponent* cRoot = NULL; // The root of the trace component -
trunk/psLib/src/sys/psType.h
r4342 r4540 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 6-22 02:05:41 $12 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-07-12 19:12:01 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 94 94 } psElemType; 95 95 96 /** Enumeration primarily used with metadata which defines a data structure 97 * e.g., list, array, FITS file, etc. 98 */ 99 typedef enum { 100 PS_DATA_S32 = PS_TYPE_S32, ///< psS32 101 PS_DATA_F32 = PS_TYPE_F32, ///< psF32 102 PS_DATA_F64 = PS_TYPE_F64, ///< psF64 103 PS_DATA_BOOL = PS_TYPE_BOOL, ///< psBool 104 PS_DATA_STRING = 0x10000, ///< psString (char *) 105 PS_DATA_ARRAY, ///< psArray 106 PS_DATA_BITSET, ///< psBitSet 107 PS_DATA_CELL, ///< psCell 108 PS_DATA_CHIP, ///< psChip 109 PS_DATA_CUBE, ///< psCube 110 PS_DATA_FITS, ///< psFits 111 PS_DATA_HASH, ///< psHash 112 PS_DATA_HISTOGRAM, ///< psHistogram 113 PS_DATA_IMAGE, ///< psImage 114 PS_DATA_KERNEL, ///< psKernel 115 PS_DATA_LIST, ///< psList 116 PS_DATA_LOOKUPTABLE, ///< psLookupTable 117 PS_DATA_METADATA, ///< psMetadata 118 PS_DATA_METADATAITEM, ///< psMetadataItem 119 PS_DATA_MINIMIZATION, ///< psMinimization 120 PS_DATA_PIXELS, ///< psPixels 121 PS_DATA_PLANE, ///< psPlane 122 PS_DATA_PLANEDISTORT, ///< psPlaneDistort 123 PS_DATA_PLANETRANSFORM, ///< psPlaneTransform 124 PS_DATA_POLYNOMIAL1D, ///< psPolynomial1D 125 PS_DATA_POLYNOMIAL2D, ///< psPolynomial2D 126 PS_DATA_POLYNOMIAL3D, ///< psPolynomial3D 127 PS_DATA_POLYNOMIAL4D, ///< psPolynomial4D 128 PS_DATA_PROJECTION, ///< psProjection 129 PS_DATA_READOUT, ///< psReadout 130 PS_DATA_REGION, ///< psRegion 131 PS_DATA_SCALAR, ///< psScalar 132 PS_DATA_SPHERE, ///< psSphere 133 PS_DATA_SPHERETRANSFORM, ///< psSphereTransform 134 PS_DATA_SPLINE1D, ///< psSpline1D 135 PS_DATA_STATS, ///< psStats 136 PS_DATA_TIME, ///< psTime 137 PS_DATA_VECTOR, ///< psVector 138 PS_DATA_UNKNOWN, ///< Other data of an unknown type 139 PS_DATA_METADATA_MULTI ///< Used internally for metadata; not a 'real' type 140 } psDataType; 141 96 142 #define PS_TYPE_MASK PS_TYPE_U8 /**< the psElemType to use for mask image */ 97 143 #define PS_TYPE_MASK_DATA U8 /**< the data member to use for mask image */ … … 232 278 typedef struct 233 279 { 234 psElemType type; ///< Primitive type.235 psDimen dimen; ///< Dimensionality.280 psElemType type; ///< Primitive type. 281 psDimen dimen; ///< Dimensionality. 236 282 } 237 283 psType; 284 285 typedef struct 286 { 287 psElemType type; ///< The type 288 psDimen dimen; ///< The dimensionality. 289 // psElemType type; ///< The type 290 } 291 psMathType; 238 292 239 293 /** The type of a basic data type … … 245 299 typedef struct 246 300 { 247 ps Typetype; ///< Data type information301 psMathType type; ///< Data type information 248 302 } 249 303 psMath;
Note:
See TracChangeset
for help on using the changeset viewer.
