IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1683


Ignore:
Timestamp:
Sep 2, 2004, 12:23:20 PM (22 years ago)
Author:
desonia
Message:

added psErrorCodes.[ch] and required script to insert the information from
psErrorCodes.dat into them as needed.

Location:
trunk/psLib/src
Files:
6 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psError.h

    r1448 r1683  
    1 
    21/** @file  psError.h
    32 *
     
    1312 *  @author Eric Van Alst, MHPCC
    1413 *
    15  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2004-08-10 01:55:34 $
     14 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-09-02 22:23:20 $
    1716 *
    1817 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2221#define PS_ERROR_H
    2322
     23#include<stdio.h>
     24
     25#include "psErrorCodes.h"
     26
    2427/** @addtogroup ErrorHandling
    2528 *  @{
    2629 */
     30
     31typedef struct
     32{
     33    char *name;                        ///< category of code that caused the error
     34    psErrorCode code;                  ///< class of error
     35    char *msg;                         ///< the message associated with the error
     36}
     37psErr;
     38
     39const psErr *psErrorGet(int which);
     40const psErr *psErrorLast(void);
     41void psErrorClear(void);
     42
     43void psErrorStackPrint(FILE *fd, const char *fmt, ...);
     44void psErrorStackPrintV(FILE *fd, const char *fmt, va_list va);
    2745
    2846/** Reports an error message to the logging facility
  • trunk/psLib/src/sysUtils

    • Property svn:ignore
      •  

        old new  
        11*.i
         2psErrorCodes.h
  • trunk/psLib/src/sysUtils/.cvsignore

    r1005 r1683  
    11*.i
     2psErrorCodes.h
  • trunk/psLib/src/sysUtils/Makefile

    r1420 r1683  
    33##  Makefile:   sysUtils
    44##
    5 ##  $Revision: 1.18 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-08-09 20:28:54 $
     5##  $Revision: 1.19 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-09-02 22:23:20 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3535           psLogMsg.o    \
    3636           psAbort.o     \
    37            psString.o   
     37           psString.o    \
     38           psErrorCodes.o
    3839
    3940OBJS = $(addprefix makedir/,$(SRC_OBJS))
     
    4243
    4344all: $(TARGET_STATIC)
     45
     46psErrorCodes.h: psErrorCodes.dat
     47        perl parseErrorCodes.pl --data=$? $@
     48
     49psErrorCodes.c: psErrorCodes.dat
     50        perl parseErrorCodes.pl --data=$? $@
    4451
    4552# Rule to make static library
  • trunk/psLib/src/sysUtils/psError.h

    r1448 r1683  
    1 
    21/** @file  psError.h
    32 *
     
    1312 *  @author Eric Van Alst, MHPCC
    1413 *
    15  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2004-08-10 01:55:34 $
     14 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-09-02 22:23:20 $
    1716 *
    1817 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2221#define PS_ERROR_H
    2322
     23#include<stdio.h>
     24
     25#include "psErrorCodes.h"
     26
    2427/** @addtogroup ErrorHandling
    2528 *  @{
    2629 */
     30
     31typedef struct
     32{
     33    char *name;                        ///< category of code that caused the error
     34    psErrorCode code;                  ///< class of error
     35    char *msg;                         ///< the message associated with the error
     36}
     37psErr;
     38
     39const psErr *psErrorGet(int which);
     40const psErr *psErrorLast(void);
     41void psErrorClear(void);
     42
     43void psErrorStackPrint(FILE *fd, const char *fmt, ...);
     44void psErrorStackPrintV(FILE *fd, const char *fmt, va_list va);
    2745
    2846/** Reports an error message to the logging facility
Note: See TracChangeset for help on using the changeset viewer.