[sv-cc] vpi_user.h: PLI error information structure

From: <Shalom.Bresticker@freescale.com>
Date: Thu Feb 03 2005 - 01:01:48 PST

The following appears in vpi_user.h:

/************************ PLI error information structure *********************/

typedef struct t_vpi_error_info
{
  PLI_INT32 state; /* vpi[Compile,PLI,Run] */
  PLI_INT32 level; /* vpi[Notice,Warning,Error,System,Internal] */
  PLI_BYTE8 *message;
  PLI_BYTE8 *product;
  PLI_BYTE8 *code;
  PLI_BYTE8 *file;
  PLI_INT32 line;
} s_vpi_error_info, *p_vpi_error_info;

/* error types */

#define vpiCompile 1
#define vpiPLI 2
#define vpiRun 3

#define vpiNotice 1
#define vpiWarning 2
#define vpiError 3
#define vpiSystem 4
#define vpiInternal 5

It appears to me that the comment "error types" is not precise,
and the list of #defines starting with vpiNotice also requires an
explanatory comment.

I propose:

/* state when error occurred */

and

/* error severity levels */

Is that ok?

Thanks,
Shalom

-- 
Shalom Bresticker                        Shalom.Bresticker @freescale.com
Design & Verification Methodology                    Tel: +972 9  9522268
Freescale Semiconductor Israel, Ltd.                 Fax: +972 9  9522890
POB 2208, Herzlia 46120, ISRAEL                     Cell: +972 50 5441478
  
[ ]Freescale Internal Use Only      [ ]Freescale Confidential Proprietary
Received on Thu Feb 3 01:02:23 2005

This archive was generated by hypermail 2.1.8 : Thu Feb 03 2005 - 01:02:42 PST