IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3114


Ignore:
Timestamp:
Feb 2, 2005, 2:45:06 PM (21 years ago)
Author:
desonia
Message:

Added SWIG and autoconf.

Location:
trunk/psLib/src
Files:
20 added
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.c

    r3109 r3114  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-02-02 21:10:37 $
     12*  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-02-03 00:45:06 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    599599XXX: How to compound errors?
    600600 *****************************************************************************/
    601 psSphere* psSphereGetOffset(const psSphere* restrict position1,
    602                             const psSphere* restrict position2,
     601psSphere* psSphereGetOffset(const psSphere* position1,
     602                            const psSphere* position2,
    603603                            psSphereOffsetMode mode,
    604604                            psSphereOffsetUnit unit)
     
    683683 *****************************************************************************/
    684684
    685 psSphere* psSphereSetOffset(const psSphere* restrict position,
    686                             const psSphere* restrict offset,
     685psSphere* psSphereSetOffset(const psSphere* position,
     686                            const psSphere* offset,
    687687                            psSphereOffsetMode mode,
    688688                            psSphereOffsetUnit unit)
  • trunk/psLib/src/astro/psCoord.h

    r3095 r3114  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-01-26 20:24:16 $
     12*  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-02-03 00:45:06 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    346346 */
    347347psSphere* psSphereGetOffset(
    348     const psSphere* restrict position1,
    349     const psSphere* restrict position2,
     348    const psSphere* position1,
     349    const psSphere* position2,
    350350    psSphereOffsetMode mode,
    351351    psSphereOffsetUnit unit
     
    364364 */
    365365psSphere* psSphereSetOffset(
    366     const psSphere* restrict position,
    367     const psSphere* restrict offset,
     366    const psSphere* position,
     367    const psSphere* offset,
    368368    psSphereOffsetMode mode,
    369369    psSphereOffsetUnit unit
  • trunk/psLib/src/astro/psTime.c

    r2749 r3114  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-12-17 20:47:08 $
     12 *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-02-03 00:45:06 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3535#include "psAstronomyErrors.h"
    3636
    37 #ifndef TIME_CONFIG_FILE
    38 #define TIME_CONFIG_FILE "../../config/psTime.config"
    39 #pragma warning TIME_CONFIG_FILE was not defined in the makefile.
    40 #endif
     37#include "config.h"
    4138
    4239#define MAX_STRING_LENGTH 256
     
    151148    // Check time metadata. Function call reports errors.
    152149    if(timeMetadata == NULL) {
    153         if(!p_psTimeInit(TIME_CONFIG_FILE))
     150        if(!p_psTimeInit(CONFIG_FILE))
    154151            return 0.0;
    155152    }
     
    708705    // Check time metadata
    709706    if(timeMetadata == NULL) {
    710         if(!p_psTimeInit(TIME_CONFIG_FILE)) {
     707        if(!p_psTimeInit(CONFIG_FILE)) {
    711708            psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_FILE_NOT_FOUND, "psTime.config");
    712709            return 0.0;
  • trunk/psLib/src/astronomy/psAstronomyErrors.h

    r2648 r3114  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-12-07 19:09:18 $
     9 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-02-03 00:45:06 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2626 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End!  ANY CHANGES WILL BE OVERWRITTEN.
    2727 */
    28 
    29 #define PS_ERRORNAME_DOMAIN "psLib.astronomy."
    3028
    3129//~Start #define PS_ERRORTEXT_$1 "$2"
  • trunk/psLib/src/astronomy/psCoord.c

    r3109 r3114  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-02-02 21:10:37 $
     12*  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-02-03 00:45:06 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    599599XXX: How to compound errors?
    600600 *****************************************************************************/
    601 psSphere* psSphereGetOffset(const psSphere* restrict position1,
    602                             const psSphere* restrict position2,
     601psSphere* psSphereGetOffset(const psSphere* position1,
     602                            const psSphere* position2,
    603603                            psSphereOffsetMode mode,
    604604                            psSphereOffsetUnit unit)
     
    683683 *****************************************************************************/
    684684
    685 psSphere* psSphereSetOffset(const psSphere* restrict position,
    686                             const psSphere* restrict offset,
     685psSphere* psSphereSetOffset(const psSphere* position,
     686                            const psSphere* offset,
    687687                            psSphereOffsetMode mode,
    688688                            psSphereOffsetUnit unit)
  • trunk/psLib/src/astronomy/psCoord.h

    r3095 r3114  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-01-26 20:24:16 $
     12*  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-02-03 00:45:06 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    346346 */
    347347psSphere* psSphereGetOffset(
    348     const psSphere* restrict position1,
    349     const psSphere* restrict position2,
     348    const psSphere* position1,
     349    const psSphere* position2,
    350350    psSphereOffsetMode mode,
    351351    psSphereOffsetUnit unit
     
    364364 */
    365365psSphere* psSphereSetOffset(
    366     const psSphere* restrict position,
    367     const psSphere* restrict offset,
     366    const psSphere* position,
     367    const psSphere* offset,
    368368    psSphereOffsetMode mode,
    369369    psSphereOffsetUnit unit
  • trunk/psLib/src/astronomy/psMetadata.h

    r3025 r3114  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2005-01-17 20:58:20 $
     13*  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2005-02-03 00:45:06 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    108108);
    109109
     110#ifndef SWIG
    110111/** Create a metadata item with va_list.
    111112 *
     
    130131    va_list list                       ///< Arguments for name formatting and metadata item data.
    131132);
     133#endif
    132134
    133135/** Create a metadata collection.
  • trunk/psLib/src/astronomy/psMetadataIO.c

    r2973 r3114  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-01-13 20:48:59 $
     11*  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2005-02-03 00:45:06 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    760760    psF64 tempDbl = 0.0;
    761761    psS32 tempInt = 0.0;
    762     psElemType pType;
    763     psMetadataType mdType;
     762    psElemType pType = PS_TYPE_PTR;
     763    psMetadataType mdType = PS_META_PRIMITIVE;
    764764    char *fileName = NULL;
    765765    char *strName = NULL;
     
    909909    psS32 status = 0;
    910910    psU32 lineNumber = 0;
    911     psElemType pType;
    912     psMetadataType mdType;
     911    psElemType pType = PS_TYPE_PTR;
     912    psMetadataType mdType = PS_META_PRIMITIVE;
    913913    char *strName = NULL;
    914914    char *strType = NULL;
  • trunk/psLib/src/astronomy/psPhotometry.h

    r2204 r3114  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-10-27 00:57:30 $
     12*  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-02-03 00:45:06 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4343typedef struct
    4444{
    45     const psS32 ID;               ///< ID number for this photometric system
    46     const char *name;           ///< Name of photometric system
    47     const char *camera;         ///< Camera for photometric system
    48     const char *filter;         ///< Filter used for photometric system
    49     const char *detector;       ///< Detector used for photometric system
     45    const psS32 ID;                    ///< ID number for this photometric system
     46    const char *name;                  ///< Name of photometric system
     47    const char *camera;                ///< Camera for photometric system
     48    const char *filter;                ///< Filter used for photometric system
     49    const char *detector;              ///< Detector used for photometric system
    5050}
    5151psPhotSystem;
     
    5959typedef struct
    6060{
    61     psPhotSystem src;           ///< Source photometric system
    62     psPhotSystem dst;           ///< Destination photometric system
    63     psPhotSystem pP;            ///< Primary color reference
    64     psPhotSystem pM;            ///< Primary color reference
    65     psPhotSystem sP;            ///< Secondary color reference
    66     psPhotSystem sM;            ///< Secondary color reference
    67     float pA;                   ///< Color offset for references
    68     float sA;                   ///< Color offset for references
    69     psPolynomial3D transform;   ///< Transformation from source to destination
     61    const psPhotSystem src;            ///< Source photometric system
     62    const psPhotSystem dst;            ///< Destination photometric system
     63    const psPhotSystem pP;             ///< Primary color reference
     64    const psPhotSystem pM;             ///< Primary color reference
     65    const psPhotSystem sP;             ///< Secondary color reference
     66    const psPhotSystem sM;             ///< Secondary color reference
     67    float pA;                          ///< Color offset for references
     68    float sA;                          ///< Color offset for references
     69    psPolynomial3D transform;          ///< Transformation from source to destination
    7070}
    7171psPhotTransform;
  • trunk/psLib/src/astronomy/psTime.c

    r2749 r3114  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-12-17 20:47:08 $
     12 *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-02-03 00:45:06 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3535#include "psAstronomyErrors.h"
    3636
    37 #ifndef TIME_CONFIG_FILE
    38 #define TIME_CONFIG_FILE "../../config/psTime.config"
    39 #pragma warning TIME_CONFIG_FILE was not defined in the makefile.
    40 #endif
     37#include "config.h"
    4138
    4239#define MAX_STRING_LENGTH 256
     
    151148    // Check time metadata. Function call reports errors.
    152149    if(timeMetadata == NULL) {
    153         if(!p_psTimeInit(TIME_CONFIG_FILE))
     150        if(!p_psTimeInit(CONFIG_FILE))
    154151            return 0.0;
    155152    }
     
    708705    // Check time metadata
    709706    if(timeMetadata == NULL) {
    710         if(!p_psTimeInit(TIME_CONFIG_FILE)) {
     707        if(!p_psTimeInit(CONFIG_FILE)) {
    711708            psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psTime_FILE_NOT_FOUND, "psTime.config");
    712709            return 0.0;
  • trunk/psLib/src/collections/psMetadata.h

    r3025 r3114  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2005-01-17 20:58:20 $
     13*  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2005-02-03 00:45:06 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    108108);
    109109
     110#ifndef SWIG
    110111/** Create a metadata item with va_list.
    111112 *
     
    130131    va_list list                       ///< Arguments for name formatting and metadata item data.
    131132);
     133#endif
    132134
    133135/** Create a metadata collection.
  • trunk/psLib/src/collections/psMetadataIO.c

    r2973 r3114  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-01-13 20:48:59 $
     11*  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2005-02-03 00:45:06 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    760760    psF64 tempDbl = 0.0;
    761761    psS32 tempInt = 0.0;
    762     psElemType pType;
    763     psMetadataType mdType;
     762    psElemType pType = PS_TYPE_PTR;
     763    psMetadataType mdType = PS_META_PRIMITIVE;
    764764    char *fileName = NULL;
    765765    char *strName = NULL;
     
    909909    psS32 status = 0;
    910910    psU32 lineNumber = 0;
    911     psElemType pType;
    912     psMetadataType mdType;
     911    psElemType pType = PS_TYPE_PTR;
     912    psMetadataType mdType = PS_META_PRIMITIVE;
    913913    char *strName = NULL;
    914914    char *strType = NULL;
  • trunk/psLib/src/types/psMetadata.h

    r3025 r3114  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2005-01-17 20:58:20 $
     13*  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2005-02-03 00:45:06 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    108108);
    109109
     110#ifndef SWIG
    110111/** Create a metadata item with va_list.
    111112 *
     
    130131    va_list list                       ///< Arguments for name formatting and metadata item data.
    131132);
     133#endif
    132134
    133135/** Create a metadata collection.
  • trunk/psLib/src/types/psMetadataConfig.c

    r2973 r3114  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-01-13 20:48:59 $
     11*  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2005-02-03 00:45:06 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    760760    psF64 tempDbl = 0.0;
    761761    psS32 tempInt = 0.0;
    762     psElemType pType;
    763     psMetadataType mdType;
     762    psElemType pType = PS_TYPE_PTR;
     763    psMetadataType mdType = PS_META_PRIMITIVE;
    764764    char *fileName = NULL;
    765765    char *strName = NULL;
     
    909909    psS32 status = 0;
    910910    psU32 lineNumber = 0;
    911     psElemType pType;
    912     psMetadataType mdType;
     911    psElemType pType = PS_TYPE_PTR;
     912    psMetadataType mdType = PS_META_PRIMITIVE;
    913913    char *strName = NULL;
    914914    char *strType = NULL;
  • trunk/psLib/src/xml/psXML.c

    r2973 r3114  
    99*  @author Ross Harman, MHPCC
    1010*
    11 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-01-13 20:48:59 $
     11*  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2005-02-03 00:45:06 $
    1313*
    1414*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    760760    psF64 tempDbl = 0.0;
    761761    psS32 tempInt = 0.0;
    762     psElemType pType;
    763     psMetadataType mdType;
     762    psElemType pType = PS_TYPE_PTR;
     763    psMetadataType mdType = PS_META_PRIMITIVE;
    764764    char *fileName = NULL;
    765765    char *strName = NULL;
     
    909909    psS32 status = 0;
    910910    psU32 lineNumber = 0;
    911     psElemType pType;
    912     psMetadataType mdType;
     911    psElemType pType = PS_TYPE_PTR;
     912    psMetadataType mdType = PS_META_PRIMITIVE;
    913913    char *strName = NULL;
    914914    char *strType = NULL;
Note: See TracChangeset for help on using the changeset viewer.