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/sysUtils/tst_psError.c

    r2129 r2204  
    1313 *  @author  Eric Van Alst, MHPCC
    1414 *
    15  *  @version $Revision: 1.13 $  $Name: not supported by cvs2svn $
    16  *  @date  $Date: 2004-10-14 21:14:58 $
     15 *  @version $Revision: 1.14 $  $Name: not supported by cvs2svn $
     16 *  @date  $Date: 2004-10-27 00:57:33 $
    1717 *
    1818 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2626#include "psTest.h"
    2727
    28 static int testError00(void);
    29 static int testError01(void);
    30 static int testError02(void);
    31 static int testError03(void);
    32 static int testError04(void);
    33 static int testError05(void);
    34 static int testErrorRegister(void);
     28static psS32 testError00(void);
     29static psS32 testError01(void);
     30static psS32 testError02(void);
     31static psS32 testError03(void);
     32static psS32 testError04(void);
     33static psS32 testError05(void);
     34static psS32 testErrorRegister(void);
    3535
    3636// Function used in testError02 to verify the psErrorStackPrintV function
     
    5858                          };
    5959
    60 int main( int argc, char* argv[] )
     60psS32 main( psS32 argc, char* argv[] )
    6161{
    6262    psLogSetLevel( PS_LOG_INFO );
     
    6565}
    6666
    67 static int testError05(void)
     67static psS32 testError05(void)
    6868{
    6969    psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE;
     
    8181}
    8282
    83 static int testError04(void)
     83static psS32 testError04(void)
    8484{
    8585    psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE;
     
    134134}
    135135
    136 static int testError03(void)
     136static psS32 testError03(void)
    137137{
    138138    psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE;
     
    214214}
    215215
    216 static int testError02(void)
     216static psS32 testError02(void)
    217217{
    218218    psErrorCode code = PS_ERR_BAD_PARAMETER_VALUE;
     
    228228}
    229229
    230 static int testError01(void)
     230static psS32 testError01(void)
    231231{
    232232    psErrorCode code=PS_ERR_BAD_PARAMETER_VALUE;
     
    277277}
    278278
    279 static int testError00(void)
    280 {
    281 
    282     int  intval=1;
    283     long longval = 2;
     279static psS32 testError00(void)
     280{
     281
     282    psS32  intval=1;
     283    psS64 longval = 2;
    284284    float floatval = 3.01;
    285285    char  charval = 'E';
     
    300300}
    301301
    302 static int testErrorRegister(void)
    303 {
    304 
    305     int numErr = 4;
     302static psS32 testErrorRegister(void)
     303{
     304
     305    psS32 numErr = 4;
    306306    psErrorDescription errDesc[] = { {PS_ERR_N_ERR_CLASSES+1,"first"},
    307307                                     {PS_ERR_N_ERR_CLASSES+2,"second"},
     
    314314    psErrorRegister(errDesc,numErr);
    315315
    316     for (int i = 0; i < numErr; i++) {
     316    for (psS32 i = 0; i < numErr; i++) {
    317317        const char* desc = psErrorCodeString(PS_ERR_N_ERR_CLASSES+1+i);
    318318        if (desc == NULL) {
Note: See TracChangeset for help on using the changeset viewer.