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_psLogMsg.c

    r1702 r2204  
    88#include "psTest.h"
    99
    10 static int testLogMsg00();
    11 static int testLogMsg01();
    12 static int testLogMsg02();
    13 static int testLogMsg03();
    14 static int testLogMsg04();
    15 static int testLogMsg05();
     10static psS32 testLogMsg00();
     11static psS32 testLogMsg01();
     12static psS32 testLogMsg02();
     13static psS32 testLogMsg03();
     14static psS32 testLogMsg04();
     15static psS32 testLogMsg05();
    1616
    1717testDescription tests[] = {
     
    3939                          };
    4040
    41 int main( int argc, char* argv[] )
     41psS32 main( psS32 argc, char* argv[] )
    4242{
    4343    psLogSetLevel( PS_LOG_INFO );
     
    4848
    4949static void myLogMsg(const char *name,
    50                      int level,
     50                     psS32 level,
    5151                     const char *fmt,
    5252                     ...)
     
    6060}
    6161
    62 static int testLogMsg00()
    63 {
    64     int i = 0;
     62static psS32 testLogMsg00()
     63{
     64    psS32 i = 0;
    6565
    6666    // Send a log messages for levels 0:9.  Only the first four messages
     
    7474}
    7575
    76 static int testLogMsg01()
    77 {
    78     int i = 0;
     76static psS32 testLogMsg01()
     77{
     78    psS32 i = 0;
    7979
    8080    // Send a log messages for levels 0:9.  Only the first four messages
     
    8888}
    8989
    90 static int testLogMsg02()
     90static psS32 testLogMsg02()
    9191{
    9292
    9393    psLogSetLevel(9);
    9494    // Send a log messages for levels 0:9.
    95     for (int i=0;i<10;i++) {
     95    for (psS32 i=0;i<10;i++) {
    9696        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
    9797    }
     
    105105}
    106106
    107 static int testLogMsg03()
    108 {
    109     int i;
     107static psS32 testLogMsg03()
     108{
     109    psS32 i;
    110110
    111111    fprintf(stderr,"------------- psLogSetFormat() -------------\n");
     
    161161
    162162
    163 int testLogMsg04()
     163psS32 testLogMsg04()
    164164{
    165165    psLogMsg("Under 15 chars", 0, "Hello World!\n");
     
    173173}
    174174
    175 int testLogMsg05()
    176 {
    177     int i = 0;
     175psS32 testLogMsg05()
     176{
     177    psS32 i = 0;
    178178    FILE* file;
    179179    char line[256];
Note: See TracChangeset for help on using the changeset viewer.