Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
p_dcls.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/p_dcls.h       5.1     04/29/99 21:22:31\n" */
00038 
00039 enum            attr_values     {Allocatable_Attr,
00040                                  Automatic_Attr,
00041                                  Co_Array_Attr,
00042                                  Dimension_Attr,
00043                                  External_Attr,
00044                                  Intent_Attr,
00045                                  Intrinsic_Attr,
00046                                  Optional_Attr,
00047                                  Parameter_Attr,
00048                                  Pointer_Attr,
00049                                  Private_Attr,
00050                                  Public_Attr,
00051                                  Save_Attr,
00052                                  Target_Attr,
00053                                  Volatile_Attr,
00054                                  End_Attr = Volatile_Attr };
00055 
00056 typedef enum     attr_values    attr_type;
00057 
00058 static  char    *attr_str[Volatile_Attr+1] =    {"ALLOCATABLE",
00059                                                  "AUTOMATIC",
00060                                                  "CO-ARRAY",
00061                                                  "DIMENSION",
00062                                                  "EXTERNAL",
00063                                                  "INTENT",
00064                                                  "INTRINSIC",
00065                                                  "OPTIONAL",
00066                                                  "PARAMETER",
00067                                                  "POINTER",
00068                                                  "PRIVATE",
00069                                                  "PUBLIC",
00070                                                  "SAVE",
00071                                                  "TARGET",
00072                                                  "VOLATILE" };
00073 
00074 static  long     err_attrs[Volatile_Attr+1] =       {
00075 
00076                  /* Allocatable_Attr */         ((1 << Allocatable_Attr) |
00077                                                  (1 << Automatic_Attr) |
00078                                                  (1 << External_Attr) |
00079                                                  (1 << Intent_Attr) |
00080                                                  (1 << Intrinsic_Attr) |
00081                                                  (1 << Optional_Attr) |
00082                                                  (1 << Parameter_Attr) |
00083                                                  (1 << Pointer_Attr)),
00084 
00085                  /* Automatic_Attr */           ((1 << Allocatable_Attr) |
00086                                                  (1 << Automatic_Attr) |
00087                                                  (1 << Co_Array_Attr) |
00088                                                  (1 << External_Attr) |
00089                                                  (1 << Intent_Attr) |
00090                                                  (1 << Intrinsic_Attr) |
00091                                                  (1 << Optional_Attr) |
00092                                                  (1 << Parameter_Attr) |
00093                                                  (1 << Save_Attr)),
00094 
00095                  /* Co_Array_Attr */            ((1 << Automatic_Attr) |
00096                                                  (1 << Co_Array_Attr) |
00097                                                  (1 << External_Attr) |
00098                                                  (1 << Intrinsic_Attr) |
00099                                                  (1 << Optional_Attr) |
00100                                                  (1 << Parameter_Attr) |
00101                                                  (1 << Pointer_Attr)),
00102 
00103                  /* Dimension_Attr */            (1 << Dimension_Attr),
00104 
00105                  /* External_Attr */            ((1 << Allocatable_Attr) |
00106                                                  (1 << Automatic_Attr) |
00107                                                  (1 << Co_Array_Attr) |
00108                                                  (1 << External_Attr) |
00109                                                  (1 << Intent_Attr) |
00110                                                  (1 << Intrinsic_Attr) |
00111                                                  (1 << Parameter_Attr) |
00112                                                  (1 << Pointer_Attr) |
00113                                                  (1 << Save_Attr) |
00114                                                  (1 << Target_Attr) |
00115                                                  (1 << Volatile_Attr)),
00116 
00117                  /* Intent_Attr */              ((1 << Allocatable_Attr) |
00118                                                  (1 << Automatic_Attr) |
00119                                                  (1 << External_Attr) |
00120                                                  (1 << Intent_Attr) |
00121                                                  (1 << Intrinsic_Attr) |
00122                                                  (1 << Parameter_Attr) |
00123                                                  (1 << Pointer_Attr) |
00124                                                  (1 << Save_Attr)),
00125 
00126                  /* Intrinsic_Attr */           ((1 << Allocatable_Attr) |
00127                                                  (1 << Automatic_Attr) |
00128                                                  (1 << Co_Array_Attr) |
00129                                                  (1 << External_Attr) |
00130                                                  (1 << Intent_Attr) |
00131                                                  (1 << Intrinsic_Attr) |
00132                                                  (1 << Optional_Attr) |
00133                                                  (1 << Parameter_Attr) |
00134                                                  (1 << Pointer_Attr) |
00135                                                  (1 << Save_Attr) |
00136                                                  (1 << Target_Attr) |
00137                                                  (1 << Volatile_Attr)),
00138 
00139                  /* Optional_Attr */            ((1 << Allocatable_Attr) |
00140                                                  (1 << Automatic_Attr) |
00141                                                  (1 << Intrinsic_Attr) |
00142                                                  (1 << Optional_Attr) |
00143                                                  (1 << Parameter_Attr) |
00144                                                  (1 << Save_Attr)),
00145 
00146                  /* Parameter_Attr */           ((1 << Allocatable_Attr) |
00147                                                  (1 << Automatic_Attr) |
00148                                                  (1 << Co_Array_Attr) |
00149                                                  (1 << External_Attr) |
00150                                                  (1 << Intent_Attr) |
00151                                                  (1 << Intrinsic_Attr) |
00152                                                  (1 << Optional_Attr) |
00153                                                  (1 << Parameter_Attr) |
00154                                                  (1 << Pointer_Attr) |
00155                                                  (1 << Save_Attr) |
00156                                                  (1 << Target_Attr) |
00157                                                  (1 << Volatile_Attr)),
00158 
00159                  /* Pointer_Attr */             ((1 << Allocatable_Attr) |
00160                                                  (1 << Co_Array_Attr) |
00161                                                  (1 << External_Attr) |
00162                                                  (1 << Intent_Attr) |
00163                                                  (1 << Intrinsic_Attr) |
00164                                                  (1 << Parameter_Attr) |
00165                                                  (1 << Pointer_Attr) |
00166                                                  (1 << Target_Attr)),
00167 
00168                  /* Private_Attr */             ((1 << Private_Attr) |
00169                                                  (1 << Automatic_Attr) |
00170                                                  (1 << Public_Attr)),
00171 
00172                  /* Public_Attr */              ((1 << Private_Attr) |
00173                                                  (1 << Automatic_Attr) |
00174                                                  (1 << Public_Attr)),
00175 
00176                  /* Save_Attr */                ((1 << External_Attr) |
00177                                                  (1 << Automatic_Attr) |
00178                                                  (1 << Intent_Attr) |
00179                                                  (1 << Intrinsic_Attr) |
00180                                                  (1 << Parameter_Attr) |
00181                                                  (1 << Optional_Attr) |
00182                                                  (1 << Save_Attr)),
00183 
00184                  /* Target_Attr */              ((1 << External_Attr) |
00185                                                  (1 << Intrinsic_Attr) |
00186                                                  (1 << Parameter_Attr) |
00187                                                  (1 << Pointer_Attr) |
00188                                                  (1 << Target_Attr)),
00189 
00190                  /* Volatile_Attr */            ((1 << External_Attr) |
00191                                                  (1 << Intrinsic_Attr) |
00192                                                  (1 << Parameter_Attr))
00193                                                };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines