#include <cmplrs/fio.h>#include <limits.h>#include "fmt.h"#include "err.h"#include "varfmt.h"#include "iomode.h"#include "bcompat.h"#include "uio.h"

Go to the source code of this file.
Defines | |
| #define | skip(s) while(*s==' ') s++ |
| #define | SYLMX 300 |
| #define | MYQUOTE '\2' |
| #define | MYHOLL '\3' |
| #define | MYESC '\7' |
| #define | TBUFLEN 80 |
Functions/Subroutines | |
| int | _type_f (int) |
| static char * | f_s (unit *, char *, int) |
| static char * | f_list (unit *, char *) |
| static char * | i_tem (unit *, char *) |
| static char * | gt_num (unit *, char *, int *) |
| static char * | gt_wnum (unit *, char *, int *) |
| int | pars_f (unit *ftnunit, char *s) |
| int | ne_d (unit *ftnunit, char *s, char **p) |
| int | e_d (unit *ftnunit, char *s, char **p) |
| int | op_gen (unit *ftnunit, int a, long b, long c, int d) |
| int | en_fio (unit **ftnunit) |
| int | do_fio_1dim (ftnint *type, char *ptr, flex *do_idx, ftnint *lb, ftnint *ub, ftnint *step, ftnlen len, ftnlen idxlen) |
| int | do_fio64_1dim (ftnint *type, char *ptr, flex *do_idx, XINT *lb, XINT *ub, XINT *step, ftnlen len, ftnlen idxlen) |
| int | do_fio64_mp_1dim (ftnint *type, char *ptr, flex *do_idx, XINT *lb, XINT *ub, XINT *step, unit **fu, ftnlen len, ftnlen idxlen) |
| int | do_fio (ftnint *type, ftnint *number, char *ptr, ftnlen len) |
| int | do_fio64 (ftnint *type, XINT *number, char *ptr, ftnlen len) |
| int | do_fio_mp (ftnint *type, ftnint *number, char *ptr, unit **fu, ftnlen len) |
| int | do_fio64_mp (ftnint *type, XINT *number, char *ptr, unit **fu, ftnlen len) |
| void | fmt_bg (unit *ftnunit) |
| char * | ap_end (unit *ftnunit, char *s) |
| int | do_fioi4 (unsigned int val) |
| int | do_fioi4_mp (unsigned int val, unit *f77curunit) |
| int | do_fioi8 (long long val) |
| int | do_fioi8_mp (long long val, unit *f77curunit) |
| int | do_fior4 (float val) |
| int | do_fior4_mp (float val, unit *f77curunit) |
| int | do_fio8 (double val) |
| int | do_fio8_mp (double val, unit *f77curunit) |
| int | do_f4f8 (void *inptr, ftnlen len) |
| int | do_f4f8_mp (ftnint *type, void *inptr, unit *ftnunit, ftnlen len) |
| int | do_fioxa4_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxa4 (char *ptr, XINT num) |
| int | do_fioxa8_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxa8 (char *ptr, XINT num) |
| int | do_fioxh1_mp (char *ptr, XINT clen, XINT num, unit **fu) |
| int | do_fioxh1 (char *ptr, XINT clen, XINT num) |
| int | do_fioxi1_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxi1 (char *ptr, XINT num) |
| int | do_fioxi2_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxi2 (char *ptr, XINT num) |
| int | do_fioxi4_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxi4 (char *ptr, XINT num) |
| int | do_fioxi8_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxi8 (char *ptr, XINT num) |
| int | do_fioxl1_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxl1 (char *ptr, XINT num) |
| int | do_fioxl2_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxl2 (char *ptr, XINT num) |
| int | do_fioxl4_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxl4 (char *ptr, XINT num) |
| int | do_fioxl8_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxl8 (char *ptr, XINT num) |
| int | do_fioxr4_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxr4 (char *ptr, XINT num) |
| int | do_fioxr8_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxr8 (char *ptr, XINT num) |
| int | do_fioxr16_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxr16 (char *ptr, XINT num) |
| int | do_fioxc4_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxc4 (char *ptr, XINT num) |
| int | do_fioxc8_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxc8 (char *ptr, XINT num) |
| int | do_fioxc16_mp (char *ptr, XINT num, unit **fu) |
| int | do_fioxc16 (char *ptr, XINT num) |
| int | do_fioxa4v_mp (ftnint val, unit **fu) |
| int | do_fioxa4v (ftnint val) |
| int | do_fioxa8v_mp (ftnll val, unit **fu) |
| int | do_fioxa8v (ftnll val) |
| int | do_fioxh1v_mp (char val, unit **fu) |
| int | do_fioxh1v (char val) |
| int | do_fioxi1v_mp (char val, unit **fu) |
| int | do_fioxi1v (char val) |
| int | do_fioxi2v_mp (short val, unit **fu) |
| int | do_fioxi2v (short val) |
| int | do_fioxi4v_mp (ftnint val, unit **fu) |
| int | do_fioxi4v (ftnint val) |
| int | do_fioxi8v_mp (ftnll val, unit **fu) |
| int | do_fioxi8v (ftnll val) |
| int | do_fioxl1v_mp (char val, unit **fu) |
| int | do_fioxl1v (char val) |
| int | do_fioxl2v_mp (short val, unit **fu) |
| int | do_fioxl2v (short val) |
| int | do_fioxl4v_mp (ftnint val, unit **fu) |
| int | do_fioxl4v (ftnint val) |
| int | do_fioxl8v_mp (ftnll val, unit **fu) |
| int | do_fioxl8v (ftnll val) |
| int | do_fioxr4v_mp (float val, unit **fu) |
| int | do_fioxr4v (float val) |
| int | do_fioxr8v_mp (double val, unit **fu) |
| int | do_fioxr8v (double val) |
| int | do_fioxr16v_mp (long double val, unit **fu) |
| int | do_fioxr16v (long double val) |
| int | do_fioxc4v_mp (float rval, float ival, unit **fu) |
| int | do_fioxc4v (float rval, float ival) |
| int | do_fioxc8v_mp (double rval, double ival, unit **fu) |
| int | do_fioxc8v (double rval, double ival) |
| int | do_fioxc16v_mp (long double rval, long double ival, unit **fu) |
| int | do_fioxc16v (long double rval, long double ival) |
Variables | |
| vfmt_struct | f77vfmt_com_ |
| #define MYESC '\7' |
| #define skip | ( | s | ) | while(*s==' ') s++ |
Definition at line 50 of file fmt.c.
Referenced by _bfd_coff_link_input_bfd(), _bfd_discard_section_stabs(), _bfd_elf_add_default_symbol(), _bfd_generic_section_already_linked(), _bfd_link_section_stabs(), _bfd_mips_elf_discard_info(), _cpp_handle_directive(), adjust_toc_syms(), aout_link_write_symbols(), arm_asm_output_labelref(), arm_strip_name_encoding(), BB_Should_Skip(), c_finish_bc_stmt(), CG_LOOP_Skip(), CG_PU_Initialize(), CGTARG_LOOP_Optimize(), cris_elf_relocate_section(), DEFUN(), df_urec_local_compute(), do_if(), do_ifdef(), do_ifndef(), do_xifdef(), ecoff_link_add_externals(), elf32_hppa_relocate_section(), elf32_sparc_relocate_section(), elf64_x86_64_relocate_section(), elf_i386_relocate_section(), elf_link_add_object_symbols(), elf_m68k_relocate_section(), elf_s390_relocate_section(), elf_vax_relocate_section(), emit_push_insn(), f_list(), f_s(), Force_If_Convert(), GCM_LICM_Skip_Op_Binary_Search(), gt_wnum(), GTY(), HB_Block_Select(), i370_elf_relocate_section(), lang_specific_driver(), ldfile_try_open_bfd(), load_specs(), Local_Sched_PU_Should_Skip(), lookup_option(), m32r_elf_relocate_section(), machine_matches(), mn10300_elf_final_link_relocate(), modify_reg_pav(), pdp11_aout_link_input_section(), ppc64_elf_edit_opd(), ppc64_elf_edit_toc(), ppc64_elf_relocate_section(), ppc_elf_relocate_section(), print_multilib_info(), process_command(), Remove_Skips(), Remove_Trailing_Zero_Fraction(), sh_elf64_relocate_section(), sh_elf_relocate_section(), sh_symbian_strip_name_encoding(), sparc64_elf_relocate_section(), Special_Sequence(), strnrstrn(), strnstrn(), walk_wild_section(), WFE_Expand_Top_Level_Decl(), WGEN_Expand_Top_Level_Decl(), WN2C_pragma(), WN2F_pragma(), and xcoff_link_input_bfd().
| int _type_f | ( | int | n | ) |
| char* ap_end | ( | unit * | ftnunit, | |
| char * | s | |||
| ) |
Definition at line 633 of file fmt.c.
References _type_f(), BN, BZ, COLON, ED, EOF, i, n, NED, NONL, NULL, P, p, RET, REVERT, S, short, SP, SS, and XINT.
Referenced by do_fio64(), do_fio_mp(), do_fioxa4(), do_fioxa4_mp(), do_fioxa4v(), do_fioxa4v_mp(), do_fioxa8(), do_fioxa8_mp(), do_fioxa8v(), do_fioxa8v_mp(), do_fioxc16(), do_fioxc16_mp(), do_fioxc16v(), do_fioxc16v_mp(), do_fioxc4(), do_fioxc4_mp(), do_fioxc4v(), do_fioxc4v_mp(), do_fioxc8(), do_fioxc8_mp(), do_fioxc8v(), do_fioxc8v_mp(), do_fioxh1(), do_fioxh1_mp(), do_fioxh1v(), do_fioxh1v_mp(), do_fioxi1(), do_fioxi1_mp(), do_fioxi1v(), do_fioxi1v_mp(), do_fioxi2(), do_fioxi2_mp(), do_fioxi2v(), do_fioxi2v_mp(), do_fioxi4(), do_fioxi4_mp(), do_fioxi4v(), do_fioxi4v_mp(), do_fioxi8(), do_fioxi8_mp(), do_fioxi8v(), do_fioxi8v_mp(), do_fioxl1(), do_fioxl1_mp(), do_fioxl1v(), do_fioxl1v_mp(), do_fioxl2(), do_fioxl2_mp(), do_fioxl2v(), do_fioxl2v_mp(), do_fioxl4(), do_fioxl4_mp(), do_fioxl4v(), do_fioxl4v_mp(), do_fioxl8(), do_fioxl8_mp(), do_fioxl8v(), do_fioxl8v_mp(), do_fioxr16(), do_fioxr16_mp(), do_fioxr16v(), do_fioxr16v_mp(), do_fioxr4(), do_fioxr4_mp(), do_fioxr4v(), do_fioxr4v_mp(), do_fioxr8(), do_fioxr8_mp(), do_fioxr8v(), and do_fioxr8v_mp().
| int do_fio64_mp_1dim | ( | ftnint * | type, | |
| char * | ptr, | |||
| flex * | do_idx, | |||
| XINT * | lb, | |||
| XINT * | ub, | |||
| XINT * | step, | |||
| unit ** | fu, | |||
| ftnlen | len, | |||
| ftnlen | idxlen | |||
| ) |
Definition at line 525 of file fmt.c.
References f77curunit.
Referenced by do_fio64_1dim(), and do_fio_1dim().
| int do_fio8 | ( | double | val | ) |
| int do_fio8_mp | ( | double | val, | |
| unit * | f77curunit | |||
| ) |
Definition at line 890 of file fmt.c.
References do_f4f8_mp(), and TYDREAL.
Referenced by do_fio8().
| int do_fioi4 | ( | unsigned int | val | ) |
| int do_fioi4_mp | ( | unsigned int | val, | |
| unit * | f77curunit | |||
| ) |
Definition at line 862 of file fmt.c.
References do_f4f8_mp(), and TYLONGLONG.
Referenced by do_fioi8().
| int do_fior4 | ( | float | val | ) |
| int do_fior4_mp | ( | float | val, | |
| unit * | f77curunit | |||
| ) |
Definition at line 876 of file fmt.c.
References do_f4f8_mp(), and TYREAL.
Referenced by do_fior4().
| int do_fioxa4 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxa4_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxa4v | ( | ftnint | val | ) |
| int do_fioxa8 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxa8_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxa8v | ( | ftnll | val | ) |
| int do_fioxa8v_mp | ( | ftnll | val, | |
| unit ** | fu | |||
| ) |
| int do_fioxc16 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxc16_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
Definition at line 1702 of file fmt.c.
References do_fio64_mp(), f77curunit, rvalue(), TYQUAD, and XINT.
| int do_fioxc4 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxc4_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxc4v | ( | float | rval, | |
| float | ival | |||
| ) |
Definition at line 1650 of file fmt.c.
References do_fio64_mp(), f77curunit, rvalue(), TYREAL, and XINT.
| int do_fioxc4v_mp | ( | float | rval, | |
| float | ival, | |||
| unit ** | fu | |||
| ) |
| int do_fioxc8 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxc8_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxc8v | ( | double | rval, | |
| double | ival | |||
| ) |
Definition at line 1676 of file fmt.c.
References do_fio64_mp(), f77curunit, rvalue(), TYDREAL, and XINT.
| int do_fioxc8v_mp | ( | double | rval, | |
| double | ival, | |||
| unit ** | fu | |||
| ) |
| int do_fioxh1 | ( | char * | ptr, | |
| XINT | clen, | |||
| XINT | num | |||
| ) |
| int do_fioxh1_mp | ( | char * | ptr, | |
| XINT | clen, | |||
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxh1v | ( | char | val | ) |
| int do_fioxh1v_mp | ( | char | val, | |
| unit ** | fu | |||
| ) |
| int do_fioxi1 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxi1_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxi1v | ( | char | val | ) |
| int do_fioxi1v_mp | ( | char | val, | |
| unit ** | fu | |||
| ) |
| int do_fioxi2 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxi2_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxi2v | ( | short | val | ) |
| int do_fioxi2v_mp | ( | short | val, | |
| unit ** | fu | |||
| ) |
| int do_fioxi4 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxi4_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxi4v | ( | ftnint | val | ) |
| int do_fioxi8 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxi8_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxi8v | ( | ftnll | val | ) |
| int do_fioxi8v_mp | ( | ftnll | val, | |
| unit ** | fu | |||
| ) |
| int do_fioxl1 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxl1_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxl1v | ( | char | val | ) |
| int do_fioxl1v_mp | ( | char | val, | |
| unit ** | fu | |||
| ) |
| int do_fioxl2 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxl2_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxl2v | ( | short | val | ) |
| int do_fioxl2v_mp | ( | short | val, | |
| unit ** | fu | |||
| ) |
| int do_fioxl4 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxl4_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxl4v | ( | ftnint | val | ) |
| int do_fioxl8 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxl8_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxl8v | ( | ftnll | val | ) |
| int do_fioxl8v_mp | ( | ftnll | val, | |
| unit ** | fu | |||
| ) |
| int do_fioxr16 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxr16_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxr16v | ( | long double | val | ) |
| int do_fioxr4 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxr4_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxr4v | ( | float | val | ) |
| int do_fioxr4v_mp | ( | float | val, | |
| unit ** | fu | |||
| ) |
| int do_fioxr8 | ( | char * | ptr, | |
| XINT | num | |||
| ) |
| int do_fioxr8_mp | ( | char * | ptr, | |
| XINT | num, | |||
| unit ** | fu | |||
| ) |
| int do_fioxr8v | ( | double | val | ) |
| int do_fioxr8v_mp | ( | double | val, | |
| unit ** | fu | |||
| ) |
| int e_d | ( | unit * | ftnunit, | |
| char * | s, | |||
| char ** | p | |||
| ) |
| int en_fio | ( | unit ** | ftnunit | ) |
Definition at line 496 of file fmt.c.
References do_fio_SIZE_mp, L, NULL, one, TYINT, and XINT.
Referenced by e_rdfe_mp(), e_rsfe_mp(), e_rsfi_mp(), e_wdfe_mp(), and e_wsfi_mp().
| static char * f_list | ( | unit * | ftnunit, | |
| char * | s | |||
| ) | [static] |
| static char * f_s | ( | unit * | ftnunit, | |
| char * | s, | |||
| int | curloc | |||
| ) | [static] |
Definition at line 758 of file fmt.c.
Referenced by c_si(), s_rdfe64_mp(), s_rsfe_com(), s_wdfe64_mp(), and wsfe().
| static char * gt_num | ( | unit * | ftnunit, | |
| char * | s, | |||
| int * | n | |||
| ) | [static] |
| static char * gt_wnum | ( | unit * | ftnunit, | |
| char * | s, | |||
| int * | n | |||
| ) | [static] |
| static char * i_tem | ( | unit * | ftnunit, | |
| char * | s | |||
| ) | [static] |
| int ne_d | ( | unit * | ftnunit, | |
| char * | s, | |||
| char ** | p | |||
| ) |
| int pars_f | ( | unit * | ftnunit, | |
| char * | s | |||
| ) |
Definition at line 80 of file fmt.c.
Referenced by c_si(), s_rdfe64_mp(), s_rsfe_com(), s_wdfe64_mp(), and wsfe().
| vfmt_struct f77vfmt_com_ |
1.5.6