Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
err_host.h
Go to the documentation of this file.
00001 /*
00002 
00003   Copyright (C) 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
00004 
00005   This program is free software; you can redistribute it and/or modify it
00006   under the terms of version 2 of the GNU General Public License as
00007   published by the Free Software Foundation.
00008 
00009   This program is distributed in the hope that it would be useful, but
00010   WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00012 
00013   Further, this software is distributed without any warranty that it is
00014   free of the rightful claim of any third person regarding infringement 
00015   or the like.  Any license provided herein, whether implied or 
00016   otherwise, applies only to this software file.  Patent licenses, if 
00017   any, provided herein do not apply to combinations of this program with 
00018   other software, or any other product whatsoever.  
00019 
00020   You should have received a copy of the GNU General Public License along
00021   with this program; if not, write the Free Software Foundation, Inc., 59
00022   Temple Place - Suite 330, Boston MA 02111-1307, USA.
00023 
00024   Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pky,
00025   Mountain View, CA 94043, or:
00026 
00027   http://www.sgi.com
00028 
00029   For further information regarding this notice, see:
00030 
00031   http://oss.sgi.com/projects/GenInfo/NoticeExplan
00032 
00033 */
00034 
00035 
00036 #ifndef err_host_INCLUDED
00037 #define err_host_INCLUDED
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 /* ====================================================================
00043  * ====================================================================
00044  *
00045  *
00046  * Revision history:
00047  *  07-Sep-89 - Original Version
00048  *  01-Feb-91 - Copied for TP/Muse
00049  *
00050  * Description:
00051  *
00052  * Interface definition for the host program-specific portions of the
00053  * error handling package in util/errors.c.  Contains:
00054  *
00055  *  1)  Literal #defines for host program-specific phase IDs.
00056  *
00057  *  2)  Literal #defines for host program-specific parameter kinds.
00058  *
00059  *  3)  Prototypes for host program-specific error reporting functions.
00060  *
00061  *  4)  Definition of the Signal_Cleanup routine.
00062  *
00063  * This module should only be included by the host program-specific
00064  * erxxx.h files, errors.c, and err_host.c.  See also the
00065  * initialization of the error descriptor table in err_host.tab.
00066  *
00067  * ====================================================================
00068  * ====================================================================
00069  */
00070 
00071 
00072 #ifdef _KEEP_RCS_ID
00073 #endif /* _KEEP_RCS_ID */
00074 
00075 /* Define any host program-specific phase literals not defined in
00076  * errors.h (EP_phase):
00077  */
00078 /*      none for microcode compiler     */
00079 #ifndef MONGOOSE_BE
00080 #define EP_DRIVER       (EP_PREDEFINED+1)       /* Compiler driver */
00081 #define EP_IR_BUILDER   (EP_PREDEFINED+2)       /* SGIR builder */
00082 #define EP_IR_READER    (EP_PREDEFINED+3)       /* SGIR reader */
00083 #define EP_GLOB_OPT     (EP_PREDEFINED+4)       /* Global optimizer */
00084 #define EP_GRA          (EP_PREDEFINED+5)       /* Global allocator */
00085 #define EP_TARGET       (EP_PREDEFINED+6)       /* Target-specific */
00086 #define EP_LAST         (EP_PREDEFINED+6)
00087 #endif
00088 
00089 /* Define any host program-specific error parameter kinds not defined
00090  * in errors.h (ET_kind):
00091  */
00092 #define ET_LAST         ET_PREDEFINED+1
00093 
00094 /* Format host program-specific error message parameters.  The caller
00095  * is expected to copy the formatted string out of the result before
00096  * calling this routine again.
00097  */
00098 extern char *Host_Format_Parm (
00099   INT kind,     /* One of the parameter types in errors.h or above */
00100   MEM_PTR parm  /* A message parameter passed by the reporter */
00101 );
00102 
00103 /* Do any necessary host program-specific cleanup before aborting due
00104  * to a signal:
00105  */
00106 extern void Signal_Cleanup (
00107   INT sig       /* The signal ID */
00108 );
00109 
00110 #ifdef __cplusplus
00111 }
00112 #endif
00113 #endif /* err_host_INCLUDED */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines