Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
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.1 of the GNU Lesser General Public License 00007 as 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 Lesser General Public 00021 License along with this program; if not, write the Free Software 00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, 00023 USA. 00024 00025 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00026 Mountain View, CA 94043, or: 00027 00028 http://www.sgi.com 00029 00030 For further information regarding this notice, see: 00031 00032 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00033 00034 */ 00035 00036 00037 00038 #pragma ident "@(#) libf/fio/iconvtab.c 92.2 06/23/99 10:34:31" 00039 #include <cray/dopevec.h> 00040 #include <cray/fmtconv.h> 00041 #include <cray/format.h> 00042 #include <cray/mtlock.h> /* For SHARED_CC_BUG_WORKAROUND */ 00043 00044 /* Local Input Conversion Routines */ 00045 00046 extern ic_func _LU2S; 00047 00048 /* 00049 * _iconvtab[] Table containing pointers to the input 00050 * conversion functions for each data edit- 00051 * descriptor, indexed by edit-descriptor. 00052 */ 00053 00054 ic_func * const 00055 _iconvtab [LAST_DATA_ED + 1] = { 00056 NULL, /* None */ 00057 NULL, /* A_ED */ 00058 _bu2s, /* B_ED */ 00059 _defgu2sd, /* D_ED */ 00060 _defgu2sd, /* E_ED */ 00061 _defgu2sd, /* EN_ED*/ 00062 _defgu2sd, /* ES_ED*/ 00063 _defgu2sd, /* F_ED */ 00064 _defgu2sd, /* G_ED */ 00065 _iu2s, /* I_ED */ 00066 _LU2S, /* L_ED */ 00067 _ou2s, /* O_ED */ 00068 NULL, /* R_ED */ /* CRI extension */ 00069 _zu2s, /* Z_ED */ 00070 NULL /* Q_ED */ /* MIPSpro extension */ 00071 }; 00072 00073 /* 00074 * _ilditab Table containing numeric conversion functions, 00075 * indexed by data type. For use with list-directed 00076 * input. 00077 */ 00078 00079 ic_func * const 00080 _ilditab[DVTYPE_NTYPES] = { 00081 NULL, /* DVTYPE_UNUSED Unused */ 00082 NULL, /* DVTYPE_TYPELESS Typeless */ 00083 _iu2s, /* DVTYPE_INTEGER Integer */ 00084 _defgu2sd, /* DVTYPE_REAL Real */ 00085 _defgu2sd, /* DVTYPE_COMPLEX Complex */ 00086 _LU2S, /* DVTYPE_LOGICAL Logical */ 00087 NULL, /* DVTYPE_ASCII Character */ 00088 NULL, /* DVTYPE_DERIVEDBYTE Unused */ 00089 NULL /* DVTYPE_DERIVEDWORD Unused */ 00090 }; 00091 00092 /* 00093 * _idedtab[] Table containing data edit-descriptors for each 00094 * data type, indexed by data type. For use with 00095 * the G edit-descriptor. 00096 */ 00097 00098 short const 00099 _idedtab [DVTYPE_NTYPES] = { 00100 -1, /* DVTYPE_UNUSED Unused */ 00101 O_ED, /* DVTYPE_TYPELESS Typeless */ 00102 I_ED, /* DVTYPE_INTEGER Integer */ 00103 G_ED, /* DVTYPE_REAL Real */ 00104 G_ED, /* DVTYPE_COMPLEX Complex */ 00105 L_ED, /* DVTYPE_LOGICAL Logical */ 00106 A_ED, /* DVTYPE_ASCII Character */ 00107 -1, /* DVTYPE_DERIVEDBYTE Unused */ 00108 -1 /* DVTYPE_DERIVEDWORD Unused */ 00109 }; 00110 00111 SHARED_CC_BUG_WORKAROUND(_iconvtab_kludge_func)