IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2004, 2:57:34 PM (22 years ago)
Author:
desonia
Message:

converted native C types to ps Types, where practical.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psCoord.c

    r2201 r2204  
    66*  @author GLG, MHPCC
    77*
    8 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2004-10-26 22:51:56 $
     8*  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2004-10-27 00:57:31 $
    1010*
    1111*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1515#include "pslib.h"
    1616
    17 static int test1( void );
    18 static int test1b( void );
    19 static int test1c( void );
    20 static int test2( void );
    21 static int test3( void );
    22 static int test4( void );
    23 static int test5( void );
    24 static int test6( void );
    25 static int test7( void );
    26 static int test8( void );
    27 static int test20( void );
    28 static int test21( void );
    29 static int test40( void );
    30 static int test41( void );
     17static psS32 test1( void );
     18static psS32 test1b( void );
     19static psS32 test1c( void );
     20static psS32 test2( void );
     21static psS32 test3( void );
     22static psS32 test4( void );
     23static psS32 test5( void );
     24static psS32 test6( void );
     25static psS32 test7( void );
     26static psS32 test8( void );
     27static psS32 test20( void );
     28static psS32 test21( void );
     29static psS32 test40( void );
     30static psS32 test41( void );
    3131
    3232testDescription tests[] = {
     
    5656
    5757
    58 int main( int argc, char* argv[] )
     58psS32 main( psS32 argc, char* argv[] )
    5959{
    6060    psLogSetLevel( PS_LOG_INFO );
     
    8787#define X0_SMALL 2.0
    8888
    89 int test1( void )
     89psS32 test1( void )
    9090{
    9191    float tmpF32;
    92     int testStatus = 0;
     92    psS32 testStatus = 0;
    9393    psSphereTransform *myST = psSphereTransformAlloc(NPLAT, X0_BIG, X0_SMALL);
    9494
     
    122122#define NY_TERMS 4
    123123#define NZ_TERMS 5
    124 int test1b( void )
    125 {
    126     int testStatus = 0;
     124psS32 test1b( void )
     125{
     126    psS32 testStatus = 0;
    127127    psPlaneTransform *myPT = psPlaneTransformAlloc(NX_TERMS, NY_TERMS);
    128128
     
    148148    return(testStatus);
    149149}
    150 int test1c( void )
    151 {
    152     int testStatus = 0;
     150psS32 test1c( void )
     151{
     152    psS32 testStatus = 0;
    153153    psPlaneDistort *myPD = psPlaneDistortAlloc(NW_TERMS, NX_TERMS, NY_TERMS, NZ_TERMS);
    154154
     
    195195#define N 10
    196196// We do a simple identity transformation on a few x,y pairs.
    197 int test2( void )
    198 {
    199     int i;
    200     int testStatus = 0;
     197psS32 test2( void )
     198{
     199    psS32 i;
     200    psS32 testStatus = 0;
    201201    psPlane in;
    202202    psPlane out;
     
    235235// We do a simple identity transformation on a few x,y pairs.  For x and y,
    236236// we add in the COLOR and MAGNITUDE.
    237 int test3( void )
    238 {
    239     int i;
    240     int testStatus = 0;
     237psS32 test3( void )
     238{
     239    psS32 i;
     240    psS32 testStatus = 0;
    241241    psPlane in;
    242242    psPlane out;
     
    277277#define DEG_INC 30.0
    278278// We do a simple identity transformation on a few RA, DEC pairs.
    279 int test4( void )
    280 {
    281     int testStatus = 0;
     279psS32 test4( void )
     280{
     281    psS32 testStatus = 0;
    282282    psSphere in;
    283283    psSphere out;
     
    315315}
    316316
    317 int test5( void )
    318 {
    319     int testStatus = 0;
     317psS32 test5( void )
     318{
     319    psS32 testStatus = 0;
    320320    psTime* now = psTimeGetTime(PS_TIME_UTC);
    321321    struct tm *tm_time = psTimeToTM(now);
     
    354354
    355355
    356 int test6( void )
    357 {
    358     int testStatus = 0;
     356psS32 test6( void )
     357{
     358    psS32 testStatus = 0;
    359359    psTime* now = psTimeGetTime(PS_TIME_UTC);
    360360    struct tm *tm_time = psTimeToTM(now);
     
    393393
    394394
    395 int test7( void )
    396 {
    397     int testStatus = 0;
     395psS32 test7( void )
     396{
     397    psS32 testStatus = 0;
    398398    // XXX: This test code is simply a copy of the original source code.
    399399    double phi = 62.6;
     
    426426}
    427427
    428 int test8( void )
    429 {
    430     int testStatus = 0;
     428psS32 test8( void )
     429{
     430    psS32 testStatus = 0;
    431431    // XXX: This test code is simply a copy of the original source code.
    432432    double phi = -62.6;
     
    459459}
    460460
    461 int test20( void )
    462 {
    463     int testStatus = 0;
     461psS32 test20( void )
     462{
     463    psS32 testStatus = 0;
    464464    psSphere in;
    465465    double R;
     
    553553
    554554#define SPACE_INC 10.0
    555 int test21( void )
    556 {
    557     int testStatus = 0;
     555psS32 test21( void )
     556{
     557    psS32 testStatus = 0;
    558558    psPlane in;
    559559    double R;
     
    649649}
    650650
    651 int test40( void )
    652 {
    653     int testStatus = 0;
     651psS32 test40( void )
     652{
     653    psS32 testStatus = 0;
    654654    psSphere position1;
    655655    psSphere position2;
     
    714714}
    715715
    716 int test41( void )
    717 {
    718     int testStatus = 0;
     716psS32 test41( void )
     717{
     718    psS32 testStatus = 0;
    719719    psSphere position1;
    720720    psSphere *position2;
Note: See TracChangeset for help on using the changeset viewer.