Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
messages.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 
00037 /* USMID:  "\n@(#)5.0_pl/headers/messages.h     5.1     04/29/99 21:22:31\n" */
00038 
00039 
00040 /* This structure keeps track of previously issued messages.  It is used to */
00041 /* prevent lex from issuing the same msg twice, when reset_lex is called.   */
00042 
00043 struct  last_msg_queue_entry    {Uint           msg_num         : 32;
00044                                  Uint           line_num        : 24;
00045                                  Uint           col_num         :  8;
00046                                 };
00047 
00048 typedef struct  last_msg_queue_entry    last_msg_queue_type;
00049 
00050 static  last_msg_queue_type     last_msg_queue[LAST_MSG_QUEUE_SIZE]     = {
00051                                         {0,0,0},
00052                                         {0,0,0},
00053                                         {0,0,0},
00054                                         {0,0,0},
00055                                         {0,0,0}};
00056 
00057        char     *command_name;  
00058        char      group_code[]   = "cf90";
00059 
00060 # if defined(_TARGET_OS_LINUX)
00061        char      message_prefix[]       = "sgif90";
00062 # elif defined(_TARGET_OS_IRIX)
00063        char      message_prefix[]       = "f90";
00064 # else
00065        char      message_prefix[]       = "cf90";
00066 #endif
00067 
00068 
00069 /* String names of message types.  Must be in step with enum msg_severities   */
00070 
00071 static char     *msg_severity_name[]    = {"COMMENT",
00072                                            "NOTE",
00073                                            "CAUTION",
00074                                            "WARNING",
00075                                            "ERROR",
00076                                            "INTERNAL",
00077                                            "VECTOR",
00078                                            "SCALAR",
00079                                            "TABLE",
00080                                            "ANSI",
00081                                            "WARNING",   /*log warning   */
00082                                            "INLINE",
00083                                            "INFO",
00084                                            "TASKING",
00085                                            "LIMIT",
00086                                            "ERROR",     /* log error */
00087                                            "SUMMARY",   /* log summary */
00088                                            "F77_ANSI",  /* F77 ANSI */    
00089                                            "OPTIMIZATION",
00090                                            "STREAM",
00091                                            "UNKNOWN"};
00092 
00093 static int       relative_order;
00094 static int       save_column_num;
00095 static int       save_glb_line_num;
00096 
00097        nl_catd   msg_sys; 
00098 
00099 
00100 /******************************************************************************\
00101 |*  Function prototypes for functions accessed only from messages.c.          *|
00102 \******************************************************************************/
00103 
00104 extern void     output_msg (int, int, msg_severities_type,
00105                             int, long, long, long, long);
00106 
00107 
00108 /******************************************************************************\
00109 |*                                                                            *|
00110 |*  Only messages.c and fecif.c need to know about the following variables.   *|
00111 |*                                                                            *|
00112 \******************************************************************************/
00113 
00114 extern int       last_msg_file_rec;
00115 extern char      cif_tmp_file_name[];
00116 
00117 
00118 /******************************************************************************\
00119 |*  Function prototype for print_buffered_messages (accessed only from        *|
00120 |*  messages.c and main.c).                                                   *|
00121 \******************************************************************************/
00122 
00123 extern void     print_buffered_messages (void);
00124 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines