#include <cif.h>#include <malloc.h>#include <memory.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "cif_int.h"

Go to the source code of this file.
Defines | |
| #define | CIF_VERSION 3 |
| #define | NFORTCHARS 8 |
| #define | CIF_MCF_TAILGT 0x01 |
| #define | CIF_MCF_BDM 0x02 |
| #define | CIF_MCF_CIGS 0x04 |
| #define | CIF_MCF_EMA 0x08 |
| #define | CIF_MCF_READVL 0x10 |
| #define | CIF_MCF_VPOP 0x20 |
| #define | CIF_MCF_VRECUR 0x40 |
| #define | CIF_MCF_AVL 0x80 |
| #define | UBINCR 5 |
Functions/Subroutines | |
| static int ascii_callsite | __ ((struct Cif_callsite *)) |
| static int ascii_cifhdr | __ ((struct Cif_cifhdr *)) |
| static int ascii_comblk | __ ((struct Cif_comblk *)) |
| static int ascii_const | __ ((struct Cif_const *)) |
| static int ascii_entry | __ ((struct Cif_entry *)) |
| static int ascii_file | __ ((struct Cif_file *)) |
| static int ascii_loop | __ ((struct Cif_loop *)) |
| static int ascii_include | __ ((struct Cif_include *)) |
| static int ascii_label | __ ((struct Cif_label *)) |
| static int ascii_message | __ ((struct Cif_message *)) |
| static int ascii_namelist | __ ((struct Cif_namelist *)) |
| static int ascii_object | __ ((struct Cif_object *)) |
| static int ascii_srcfile | __ ((struct Cif_srcfile *)) |
| static int ascii_summary | __ ((struct Cif_summary *)) |
| static int ascii_unit | __ ((struct Cif_unit *)) |
| static int ascii_endunit | __ ((struct Cif_endunit *)) |
| static int ascii_usage | __ ((struct Cif_usage *)) |
| static int ascii_nd_msg | __ ((struct Cif_nd_msg *)) |
| static int ascii_edopts | __ ((struct Cif_edopts *)) |
| static int ascii_mach_char | __ ((struct Cif_mach_char *)) |
| static int ascii_misc_opts | __ ((struct Cif_misc_opts *)) |
| static int ascii_opt_opts | __ ((struct Cif_opt_opts *)) |
| static int ascii_stmt_type | __ ((struct Cif_stmt_type *)) |
| static int ascii_transform | __ ((struct Cif_transform *)) |
| static int ascii_cdir | __ ((struct Cif_cdir *)) |
| static int ascii_cdir_doshared | __ ((struct Cif_cdir_doshared *)) |
| static int ascii_geometry | __ ((struct Cif_geometry *)) |
| static int ascii_continuation | __ ((struct Cif_continuation *)) |
| static int ascii_c_tag | __ ((struct Cif_c_tag *)) |
| static int ascii_c_opts | __ ((struct Cif_c_opts *)) |
| static int ascii_c_message | __ ((struct Cif_c_message *)) |
| static int ascii_c_const | __ ((struct Cif_c_const *)) |
| static int ascii_c_entry | __ ((struct Cif_c_entry *)) |
| static int ascii_c_object | __ ((struct Cif_c_object *)) |
| static int ascii_c_entry_end | __ ((struct Cif_c_entry_end *)) |
| static int ascii_c_lint_directive | __ ((struct Cif_c_lint_directive *)) |
| static int ascii_c_macro_def | __ ((struct Cif_c_macro_def *)) |
| static int ascii_c_macro_undef | __ ((struct Cif_c_macro_undef *)) |
| static int ascii_c_macro_usage | __ ((struct Cif_c_macro_usage *)) |
| static int ascii_f90_callsite | __ ((struct Cif_f90_callsite *)) |
| static int ascii_f90_comblk | __ ((struct Cif_f90_comblk *)) |
| static int ascii_f90_const | __ ((struct Cif_f90_const *)) |
| static int ascii_f90_entry | __ ((struct Cif_f90_entry *)) |
| static int ascii_f90_loop | __ ((struct Cif_f90_loop *)) |
| static int ascii_f90_derived_type | __ ((struct Cif_f90_derived_type *)) |
| static int ascii_f90_label | __ ((struct Cif_f90_label *)) |
| static int ascii_f90_namelist | __ ((struct Cif_f90_namelist *)) |
| static int ascii_f90_object | __ ((struct Cif_f90_object *)) |
| static int ascii_f90_misc_opts | __ ((struct Cif_f90_misc_opts *)) |
| static int ascii_f90_opt_opts | __ ((struct Cif_f90_opt_opts *)) |
| static int ascii_f90_begin_scope | __ ((struct Cif_f90_begin_scope *)) |
| static int ascii_f90_end_scope | __ ((struct Cif_f90_end_scope *)) |
| static int ascii_f90_scope_info | __ ((struct Cif_f90_scope_info *)) |
| static int ascii_f90_use_module | __ ((struct Cif_f90_use_module *)) |
| static int ascii_f90_rename | __ ((struct Cif_f90_rename *)) |
| static int ascii_f90_int_block | __ ((struct Cif_f90_int_block *)) |
| static int ascii_f90_vectorization | __ ((struct Cif_f90_vectorization *)) |
| static int ascii_BE_node | __ ((struct Cif_BE_node *)) |
| static int ascii_BE_fid | __ ((struct Cif_BE_fid *)) |
| static int ascii_cc_type | __ ((struct Cif_cc_type *)) |
| static int ascii_cc_entry | __ ((struct Cif_cc_entry *)) |
| static int ascii_cc_obj | __ ((struct Cif_cc_obj *)) |
| static int ascii_cc_subtype | __ ((struct Cif_cc_subtype *)) |
| static int ascii_cc_enum | __ ((struct Cif_cc_enum *)) |
| static int ascii_cc_expr | __ ((struct Cif_cc_expr *)) |
| static int ascii_src_pos | __ ((struct Cif_src_pos *)) |
| static int ascii_orig_cmd | __ ((struct Cif_orig_cmd *)) |
| static int binary_record | __ ((struct Cif_generic **, FILE *)) |
| static char * | token () |
| static int | compuse (struct Cif_use *u1, struct Cif_use *u2) |
| int | Cif_Getrecord (int cifd, struct Cif_generic **cif_record) |
| int | _Cif_binary_map_version (int rtype, struct Cif_generic *map_buffer, struct Cif_generic *cr) |
| static int | binary_record (struct Cif_generic **cif_record, FILE *fd) |
| static int | strlist (char ***args) |
| static int | llist (long **args, int *varargs) |
| static int | filltype (int *basic, int *qual, struct Cif_tmod **tmod) |
| static int | ascii_c_const (struct Cif_c_const *con) |
| static int | ascii_c_entry (struct Cif_c_entry *ent) |
| static int | ascii_c_entry_end (struct Cif_c_entry_end *ent_end) |
| static int | ascii_c_lint_directive (struct Cif_c_lint_directive *lint_dir) |
| static int | ascii_c_macro_def (struct Cif_c_macro_def *macro_def) |
| static int | ascii_c_macro_undef (struct Cif_c_macro_undef *macro_undef) |
| static int | ascii_c_macro_usage (struct Cif_c_macro_usage *macro_use) |
| static int | ascii_c_message (struct Cif_c_message *msg) |
| static int | ascii_c_object (struct Cif_c_object *obj) |
| static int | ascii_c_opts (struct Cif_c_opts *opt) |
| static int | ascii_c_tag (struct Cif_c_tag *tag) |
| static int | ascii_callsite (struct Cif_callsite *cs) |
| static int | ascii_cifhdr (struct Cif_cifhdr *hdr) |
| static int | ascii_comblk (struct Cif_comblk *cb) |
| static int | ascii_const (struct Cif_const *con) |
| static int | ascii_edopts (struct Cif_edopts *eo) |
| static int | ascii_entry (struct Cif_entry *entry) |
| static int | ascii_file (struct Cif_file *file) |
| static int | ascii_include (struct Cif_include *inc) |
| static int | ascii_label (struct Cif_label *label) |
| static int | ascii_loop (struct Cif_loop *loop) |
| static int | ascii_mach_char (struct Cif_mach_char *mc) |
| static int | ascii_message (struct Cif_message *msg) |
| static int | ascii_misc_opts (struct Cif_misc_opts *mo) |
| static int | ascii_namelist (struct Cif_namelist *nl) |
| static int | ascii_nd_msg (struct Cif_nd_msg *nmsg) |
| static int | ascii_object (struct Cif_object *obj) |
| static int | ascii_opt_opts (struct Cif_opt_opts *oo) |
| static int | ascii_srcfile (struct Cif_srcfile *src) |
| static int | ascii_transform (struct Cif_transform *tran) |
| static int | ascii_stmt_type (struct Cif_stmt_type *stmt) |
| static int | ascii_summary (struct Cif_summary *sum) |
| static int | ascii_cdir (struct Cif_cdir *cdir) |
| static int | ascii_cdir_doshared (struct Cif_cdir_doshared *dos) |
| static int | ascii_geometry (struct Cif_geometry *geom) |
| static int | ascii_continuation (struct Cif_continuation *co) |
| static int | ascii_f90_callsite (struct Cif_f90_callsite *cs) |
| static int | ascii_f90_comblk (struct Cif_f90_comblk *cb) |
| static int | ascii_f90_const (struct Cif_f90_const *con) |
| static int | ascii_f90_entry (struct Cif_f90_entry *entry) |
| static int | ascii_f90_loop (struct Cif_f90_loop *loop) |
| static int | ascii_f90_derived_type (struct Cif_f90_derived_type *dt) |
| static int | ascii_f90_label (struct Cif_f90_label *label) |
| static int | ascii_f90_namelist (struct Cif_f90_namelist *nl) |
| static int | ascii_f90_object (struct Cif_f90_object *obj) |
| static int | ascii_f90_misc_opts (struct Cif_f90_misc_opts *mo) |
| static int | ascii_f90_opt_opts (struct Cif_f90_opt_opts *opt) |
| static int | ascii_f90_begin_scope (struct Cif_f90_begin_scope *bs) |
| static int | ascii_f90_end_scope (struct Cif_f90_end_scope *es) |
| static int | ascii_f90_scope_info (struct Cif_f90_scope_info *si) |
| static int | ascii_f90_use_module (struct Cif_f90_use_module *um) |
| static int | ascii_f90_rename (struct Cif_f90_rename *rn) |
| static int | ascii_f90_int_block (struct Cif_f90_int_block *ib) |
| static int | ascii_f90_vectorization (struct Cif_f90_vectorization *vect) |
| static int | ascii_unit (struct Cif_unit *unit) |
| static int | ascii_endunit (struct Cif_endunit *eu) |
| static int | ascii_usage (struct Cif_usage *usage) |
| static int | ascii_f90_usage (struct Cif_usage *usage) |
| static int | ascii_BE_node (struct Cif_BE_node *ent) |
| static int | ascii_BE_fid (struct Cif_BE_fid *ent) |
| static int | ascii_cc_type (struct Cif_cc_type *spos) |
| static int | ascii_cc_entry (struct Cif_cc_entry *spos) |
| static int | ascii_cc_obj (struct Cif_cc_obj *spos) |
| static int | ascii_cc_subtype (struct Cif_cc_subtype *spos) |
| static int | ascii_cc_enum (struct Cif_cc_enum *spos) |
| static int | ascii_cc_expr (struct Cif_cc_expr *spos) |
| static int | ascii_src_pos (struct Cif_src_pos *spos) |
| static int | ascii_orig_cmd (struct Cif_orig_cmd *ocmd) |
Variables | |
| static char | USMID [] = "@(#) libcif/cifgetrec.c 30.18 06/27/97 14:34:02" |
| static int(* | ascii_record [CIF_MAXRECORD])() |
| static short | valid_record [CIF_MAXRECORD] |
| struct Cif_generic * | _cif_map_buffer = (struct Cif_generic *) NULL |
| static int | lcifd |
| static int | lmode |
| static int | global_msgfid = -1 |
| static char * | ntoken |
| static char | delim |
| #define CIF_MCF_AVL 0x80 |
| #define CIF_MCF_BDM 0x02 |
| #define CIF_MCF_CIGS 0x04 |
| #define CIF_MCF_EMA 0x08 |
| #define CIF_MCF_READVL 0x10 |
| #define CIF_MCF_TAILGT 0x01 |
| #define CIF_MCF_VPOP 0x20 |
| #define CIF_MCF_VRECUR 0x40 |
| #define CIF_VERSION 3 |
Definition at line 50 of file cifgetrec.c.
| #define NFORTCHARS 8 |
| #define UBINCR 5 |
Referenced by ascii_usage().
| static int binary_record __ | ( | (struct Cif_generic **, FILE *) | ) | [static] |
| static int ascii_orig_cmd __ | ( | (struct Cif_orig_cmd *) | ) | [static] |
| static int ascii_src_pos __ | ( | (struct Cif_src_pos *) | ) | [static] |
| static int ascii_cc_expr __ | ( | (struct Cif_cc_expr *) | ) | [static] |
| static int ascii_cc_enum __ | ( | (struct Cif_cc_enum *) | ) | [static] |
| static int ascii_cc_subtype __ | ( | (struct Cif_cc_subtype *) | ) | [static] |
| static int ascii_cc_obj __ | ( | (struct Cif_cc_obj *) | ) | [static] |
| static int ascii_cc_entry __ | ( | (struct Cif_cc_entry *) | ) | [static] |
| static int ascii_cc_type __ | ( | (struct Cif_cc_type *) | ) | [static] |
| static int ascii_BE_fid __ | ( | (struct Cif_BE_fid *) | ) | [static] |
| static int ascii_BE_node __ | ( | (struct Cif_BE_node *) | ) | [static] |
| static int ascii_f90_vectorization __ | ( | (struct Cif_f90_vectorization *) | ) | [static] |
| static int ascii_f90_int_block __ | ( | (struct Cif_f90_int_block *) | ) | [static] |
| static int ascii_f90_rename __ | ( | (struct Cif_f90_rename *) | ) | [static] |
| static int ascii_f90_use_module __ | ( | (struct Cif_f90_use_module *) | ) | [static] |
| static int ascii_f90_scope_info __ | ( | (struct Cif_f90_scope_info *) | ) | [static] |
| static int ascii_f90_end_scope __ | ( | (struct Cif_f90_end_scope *) | ) | [static] |
| static int ascii_f90_begin_scope __ | ( | (struct Cif_f90_begin_scope *) | ) | [static] |
| static int ascii_f90_opt_opts __ | ( | (struct Cif_f90_opt_opts *) | ) | [static] |
| static int ascii_f90_misc_opts __ | ( | (struct Cif_f90_misc_opts *) | ) | [static] |
| static int ascii_f90_object __ | ( | (struct Cif_f90_object *) | ) | [static] |
| static int ascii_f90_namelist __ | ( | (struct Cif_f90_namelist *) | ) | [static] |
| static int ascii_f90_label __ | ( | (struct Cif_f90_label *) | ) | [static] |
| static int ascii_f90_derived_type __ | ( | (struct Cif_f90_derived_type *) | ) | [static] |
| static int ascii_f90_loop __ | ( | (struct Cif_f90_loop *) | ) | [static] |
| static int ascii_f90_entry __ | ( | (struct Cif_f90_entry *) | ) | [static] |
| static int ascii_f90_const __ | ( | (struct Cif_f90_const *) | ) | [static] |
| static int ascii_f90_comblk __ | ( | (struct Cif_f90_comblk *) | ) | [static] |
| static int ascii_f90_callsite __ | ( | (struct Cif_f90_callsite *) | ) | [static] |
| static int ascii_c_macro_usage __ | ( | (struct Cif_c_macro_usage *) | ) | [static] |
| static int ascii_c_macro_undef __ | ( | (struct Cif_c_macro_undef *) | ) | [static] |
| static int ascii_c_macro_def __ | ( | (struct Cif_c_macro_def *) | ) | [static] |
| static int ascii_c_lint_directive __ | ( | (struct Cif_c_lint_directive *) | ) | [static] |
| static int ascii_c_entry_end __ | ( | (struct Cif_c_entry_end *) | ) | [static] |
| static int ascii_c_object __ | ( | (struct Cif_c_object *) | ) | [static] |
| static int ascii_c_entry __ | ( | (struct Cif_c_entry *) | ) | [static] |
| static int ascii_c_const __ | ( | (struct Cif_c_const *) | ) | [static] |
| static int ascii_c_message __ | ( | (struct Cif_c_message *) | ) | [static] |
| static int ascii_c_opts __ | ( | (struct Cif_c_opts *) | ) | [static] |
| static int ascii_continuation __ | ( | (struct Cif_continuation *) | ) | [static] |
| static int ascii_geometry __ | ( | (struct Cif_geometry *) | ) | [static] |
| static int ascii_cdir_doshared __ | ( | (struct Cif_cdir_doshared *) | ) | [static] |
| static int ascii_cdir __ | ( | (struct Cif_cdir *) | ) | [static] |
| static int ascii_transform __ | ( | (struct Cif_transform *) | ) | [static] |
| static int ascii_stmt_type __ | ( | (struct Cif_stmt_type *) | ) | [static] |
| static int ascii_opt_opts __ | ( | (struct Cif_opt_opts *) | ) | [static] |
| static int ascii_misc_opts __ | ( | (struct Cif_misc_opts *) | ) | [static] |
| static int ascii_mach_char __ | ( | (struct Cif_mach_char *) | ) | [static] |
| static int ascii_edopts __ | ( | (struct Cif_edopts *) | ) | [static] |
| static int ascii_nd_msg __ | ( | (struct Cif_nd_msg *) | ) | [static] |
| static int ascii_endunit __ | ( | (struct Cif_endunit *) | ) | [static] |
| static int ascii_summary __ | ( | (struct Cif_summary *) | ) | [static] |
| static int ascii_srcfile __ | ( | (struct Cif_srcfile *) | ) | [static] |
| static int ascii_object __ | ( | (struct Cif_object *) | ) | [static] |
| static int ascii_namelist __ | ( | (struct Cif_namelist *) | ) | [static] |
| static int ascii_message __ | ( | (struct Cif_message *) | ) | [static] |
| static int ascii_include __ | ( | (struct Cif_include *) | ) | [static] |
| static int ascii_comblk __ | ( | (struct Cif_comblk *) | ) | [static] |
| static int ascii_cifhdr __ | ( | (struct Cif_cifhdr *) | ) | [static] |
| static int ascii_callsite __ | ( | (struct Cif_callsite *) | ) | [static] |
| int _Cif_binary_map_version | ( | int | rtype, | |
| struct Cif_generic * | map_buffer, | |||
| struct Cif_generic * | cr | |||
| ) |
Definition at line 496 of file cifgetrec.c.
References _Cif_filetbl, _Cif_shortsize, Cif_c_entry::btype, CIF_C_ENTRY, CIF_C_MESSAGE, CIF_C_OBJECT, CIF_C_TAG, CIF_COMBLK, CIF_CONST, CIF_FILE, CIF_MACH_CHAR, CIF_MESSAGE, CIF_MISC_OPTS, CIF_OBJECT, CIF_OPT_OPTS, CIF_ST_STATIC, CIF_STMT_TYPE, CIF_USAGE, CIFSTMT, Cif_c_tag::entity, Cif_c_object::entity, if(), memcpy, Cif_c_object::mods, Cif_c_object::name, Cif_c_entry::nargs, Cif_c_entry::nlen, Cif_c_entry::nmods, NULL, Cif_c_entry::ptype, Cif_c_entry::qual, Cif_c_entry::rectype, Cif_generic::rectype, _Cif_File_Tbl::return_version, Cif_c_entry::retvalue, Cif_c_entry::scope, Cif_object::storage, Cif_c_entry::symclass, Cif_c_entry::symid, tag, Cif_opt_opts::values, Cif_c_entry::varargs, version, and void.
Referenced by binary_record(), and Cif_Recgroup().
| static int ascii_BE_fid | ( | struct Cif_BE_fid * | ent | ) | [static] |
Definition at line 4390 of file cifgetrec.c.
References _Cif_space, atoi(), CIF_BADFORM, CIF_NOMEM, i, n, NULL, and token.
| static int ascii_BE_node | ( | struct Cif_BE_node * | ent | ) | [static] |
Definition at line 4257 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), CIF_BADFORM, CIF_NOMEM, i, n, NULL, strcpy, strlen(), token, version, and void.
| static int ascii_c_const | ( | struct Cif_c_const * | con | ) | [static] |
Definition at line 1223 of file cifgetrec.c.
References _Cif_space, atol(), CIF_C_CONST, CIF_NOMEM, i, NULL, SEPARATOR, strcpy, strlen(), strtol(), token, and void.
| static int ascii_c_entry | ( | struct Cif_c_entry * | ent | ) | [static] |
Definition at line 1253 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), atol(), basic(), c, CIF_C_ENTRY, CIF_NOMEM, filltype(), i, llist(), NULL, SEPARATOR, strcpy, strlen(), token, version, and void.
| static int ascii_c_entry_end | ( | struct Cif_c_entry_end * | ent_end | ) | [static] |
| static int ascii_c_lint_directive | ( | struct Cif_c_lint_directive * | lint_dir | ) | [static] |
| static int ascii_c_macro_def | ( | struct Cif_c_macro_def * | macro_def | ) | [static] |
| static int ascii_c_macro_undef | ( | struct Cif_c_macro_undef * | macro_undef | ) | [static] |
| static int ascii_c_macro_usage | ( | struct Cif_c_macro_usage * | macro_use | ) | [static] |
| static int ascii_c_message | ( | struct Cif_c_message * | msg | ) | [static] |
Definition at line 1438 of file cifgetrec.c.
References _Cif_filetbl, atoi(), atol(), c, CIF_C_MESSAGE, CIF_NOMEM, strlist(), tmp, token, version, and void.
| static int ascii_c_object | ( | struct Cif_c_object * | obj | ) | [static] |
Definition at line 1500 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), atol(), basic(), c, CIF_C_OBJECT, CIF_NOMEM, filltype(), i, NULL, SEPARATOR, strcpy, strlen(), token, version, and void.
| static int ascii_c_opts | ( | struct Cif_c_opts * | opt | ) | [static] |
Definition at line 1579 of file cifgetrec.c.
References _Cif_space, atoi(), c, CIF_C_OPTS, CIF_NOMEM, i, NULL, strcpy, strlen(), strlist(), strncpy(), token, and void.
Definition at line 1616 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), atol(), basic(), c, CIF_C_TAG, CIF_NOMEM, filltype(), i, llist(), NULL, strcpy, strlen(), tmp, token, version, and void.
| static int ascii_callsite | ( | struct Cif_callsite * | cs | ) | [static] |
Definition at line 1660 of file cifgetrec.c.
References _Cif_space, atoi(), atol(), CIF_CALLSITE, CIF_NOMEM, i, NULL, SEPARATOR, and token.
| static int ascii_cc_entry | ( | struct Cif_cc_entry * | spos | ) | [static] |
| static int ascii_cc_enum | ( | struct Cif_cc_enum * | spos | ) | [static] |
| static int ascii_cc_expr | ( | struct Cif_cc_expr * | spos | ) | [static] |
| static int ascii_cc_obj | ( | struct Cif_cc_obj * | spos | ) | [static] |
| static int ascii_cc_subtype | ( | struct Cif_cc_subtype * | spos | ) | [static] |
| static int ascii_cc_type | ( | struct Cif_cc_type * | spos | ) | [static] |
Definition at line 4418 of file cifgetrec.c.
References _Cif_space, atoi(), atol(), c, CIF_CCT_ARRAY, CIF_CCT_CLASS, CIF_CCT_COMPLEX, CIF_CCT_ENUM, CIF_CCT_FLOAT, CIF_CCT_FUNCTION, CIF_CCT_INT, CIF_CCT_POINTER, CIF_CCT_PTRMEM, CIF_CCT_QUALIFIED, CIF_CCT_STRUCT, CIF_CCT_TEMPAR, CIF_CCT_TYPEDEF, CIF_CCT_UNION, CIF_NOMEM, i, int, n, NULL, strcpy, strlen(), token, and void.
| static int ascii_cdir | ( | struct Cif_cdir * | cdir | ) | [static] |
Definition at line 2917 of file cifgetrec.c.
| static int ascii_cdir_doshared | ( | struct Cif_cdir_doshared * | dos | ) | [static] |
Definition at line 2938 of file cifgetrec.c.
References _Cif_space, atoi(), atol(), c, i, int, and token.
| static int ascii_cifhdr | ( | struct Cif_cifhdr * | hdr | ) | [static] |
Definition at line 1685 of file cifgetrec.c.
References _Cif_filetbl, ASCII_CIF_FORMAT, ascii_f90_usage(), ascii_record, ascii_usage(), atoi(), atol(), CIF_CIFHDR, CIF_LG_F90, CIF_USAGE, _Cif_File_Tbl::lang, _Cif_File_Tbl::seek, _Cif_File_Tbl::srcfid, strcpy, strncpy(), token, and void.
| static int ascii_comblk | ( | struct Cif_comblk * | cb | ) | [static] |
Definition at line 1737 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), atol(), c, CIF_COMBLK, CIF_NOMEM, i, NULL, strcpy, strlen(), token, version, and void.
Definition at line 1799 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), atol(), c, CIF_CONST, CIF_NOMEM, CO_ATTR_CHAR, CO_ATTR_DIM, CO_ATTR_IMPTYPE, i, n, NULL, SEPARATOR, strcpy, strlen(), strtol(), token, version, and void.
| static int ascii_continuation | ( | struct Cif_continuation * | co | ) | [static] |
| static int ascii_edopts | ( | struct Cif_edopts * | eo | ) | [static] |
| static int ascii_endunit | ( | struct Cif_endunit * | eu | ) | [static] |
Definition at line 3912 of file cifgetrec.c.
References _Cif_space, atol(), c, CIF_ENDUNIT, CIF_NOMEM, i, NULL, strcpy, strlen(), token, and void.
Definition at line 1934 of file cifgetrec.c.
References _Cif_space, atoi(), atol(), c, CIF_ENTRY, CIF_NOMEM, EN_ATTR_CHAR, EN_ATTR_EXTERN, EN_ATTR_IMPTYPE, EN_ATTR_INTRIN, EN_ATTR_RECUR, EN_ATTR_STMTF, i, len, NULL, strcpy, strlen(), strtol(), token, and void.
| static int ascii_f90_begin_scope | ( | struct Cif_f90_begin_scope * | bs | ) | [static] |
| static int ascii_f90_callsite | ( | struct Cif_f90_callsite * | cs | ) | [static] |
| static int ascii_f90_comblk | ( | struct Cif_f90_comblk * | cb | ) | [static] |
| static int ascii_f90_const | ( | struct Cif_f90_const * | con | ) | [static] |
| static int ascii_f90_derived_type | ( | struct Cif_f90_derived_type * | dt | ) | [static] |
| static int ascii_f90_end_scope | ( | struct Cif_f90_end_scope * | es | ) | [static] |
| static int ascii_f90_entry | ( | struct Cif_f90_entry * | entry | ) | [static] |
Definition at line 3184 of file cifgetrec.c.
References _Cif_space, atoi(), atol(), c, CIF_NOMEM, F90_EN_ATTR_DEFINED, F90_EN_ATTR_INT_BLOCK, F90_EN_ATTR_OPTIONAL, F90_EN_ATTR_PRIVATE, F90_EN_ATTR_RECUR, F90_EN_ATTR_REFERENCED, F90_EN_ATTR_USE, i, len, NULL, strcpy, strlen(), strtol(), token, and void.
| static int ascii_f90_int_block | ( | struct Cif_f90_int_block * | ib | ) | [static] |
| static int ascii_f90_label | ( | struct Cif_f90_label * | label | ) | [static] |
| static int ascii_f90_loop | ( | struct Cif_f90_loop * | loop | ) | [static] |
| static int ascii_f90_misc_opts | ( | struct Cif_f90_misc_opts * | mo | ) | [static] |
| static int ascii_f90_namelist | ( | struct Cif_f90_namelist * | nl | ) | [static] |
| static int ascii_f90_object | ( | struct Cif_f90_object * | obj | ) | [static] |
Definition at line 3398 of file cifgetrec.c.
References _Cif_f90_to_f77_dtypes, _Cif_filetbl, _Cif_space, atoi(), atol(), c, CIF_DM_ASSUMED, CIF_DM_CONSTANT, CIF_DM_EXPR, CIF_NOMEM, F90_CO_ATTR_ALLOCATABLE, F90_CO_ATTR_ARRAY_DEC, F90_CO_ATTR_DATA, F90_CO_ATTR_DEF_TYPE, F90_CO_ATTR_EQUIV, F90_CO_ATTR_GEOM_DEC, F90_CO_ATTR_IMPTYPE, F90_CO_ATTR_INTENTIN, F90_CO_ATTR_INTENTINOUT, F90_CO_ATTR_INTENTOUT, F90_CO_ATTR_KIND_TYPE, F90_CO_ATTR_LOCAL_NAME, F90_CO_ATTR_OPTIONAL, F90_CO_ATTR_PE_RESIDENT, F90_CO_ATTR_POINTEE, F90_CO_ATTR_POINTER, F90_CO_ATTR_PRIVATE, F90_CO_ATTR_SAVE, F90_CO_ATTR_STAR_TYPE, F90_CO_ATTR_TARGET, i, int, Cif_dim::lower, Cif_dim::ltype, NULL, strcpy, strlen(), strtol(), token, Cif_dim::upper, Cif_dim::utype, version, and void.
| static int ascii_f90_opt_opts | ( | struct Cif_f90_opt_opts * | opt | ) | [static] |
Definition at line 3646 of file cifgetrec.c.
References _Cif_space, atoi(), CIF_NOMEM, i, int, NULL, strtol(), and token.
| static int ascii_f90_rename | ( | struct Cif_f90_rename * | rn | ) | [static] |
| static int ascii_f90_scope_info | ( | struct Cif_f90_scope_info * | si | ) | [static] |
Definition at line 3700 of file cifgetrec.c.
References _Cif_space, atoi(), atol(), CIF_NOMEM, i, int, NULL, SC_ATTR_CALL, SC_ATTR_CMIC, SC_ATTR_IMPNONE, SC_ATTR_IO, SEPARATOR, strtol(), and token.
Definition at line 4199 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), atol(), CIF_USAGE, Cif_use::cpos, Cif_use::fid, i, int, Cif_use::line, NULL, SEPARATOR, token, and Cif_use::utype.
Referenced by ascii_cifhdr().
| static int ascii_f90_use_module | ( | struct Cif_f90_use_module * | um | ) | [static] |
| static int ascii_f90_vectorization | ( | struct Cif_f90_vectorization * | vect | ) | [static] |
Definition at line 1985 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atol(), c, CIF_FILE, CIF_LG_F77, CIF_MAXRECORD, CIF_NOMEM, exit(), fprintf(), len, NULL, _Cif_File_Tbl::return_version, SEPARATOR, strcpy, strlen(), token, and void.
| static int ascii_geometry | ( | struct Cif_geometry * | geom | ) | [static] |
| static int ascii_include | ( | struct Cif_include * | inc | ) | [static] |
| static int ascii_mach_char | ( | struct Cif_mach_char * | mc | ) | [static] |
Definition at line 2128 of file cifgetrec.c.
References _Cif_filetbl, atoi(), atol(), CIF_LG_F77, CIF_MACH_CHAR, CIF_MC_AVL, CIF_MC_BDM, CIF_MC_CIGS, CIF_MC_EMA, CIF_MC_READVL, CIF_MC_TAILGT, CIF_MC_VPOP, CIF_MC_VRECUR, CIF_MCF_AVL, CIF_MCF_BDM, CIF_MCF_CIGS, CIF_MCF_EMA, CIF_MCF_READVL, CIF_MCF_TAILGT, CIF_MCF_VPOP, CIF_MCF_VRECUR, i, NFORTCHARS, NULL, SEPARATOR, strcpy, strtol(), token, version, and void.
| static int ascii_message | ( | struct Cif_message * | msg | ) | [static] |
Definition at line 2290 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), atol(), c, CIF_MESSAGE, CIF_NOMEM, i, NULL, SEPARATOR, strcpy, strlen(), strlist(), tmp, token, version, and void.
| static int ascii_misc_opts | ( | struct Cif_misc_opts * | mo | ) | [static] |
Definition at line 2366 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), c, CIF_MISC_OPTS, CIF_NOMEM, i, llist(), NULL, SEPARATOR, strcpy, strlen(), strlist(), strtol(), tmp, token, version, and void.
| static int ascii_namelist | ( | struct Cif_namelist * | nl | ) | [static] |
Definition at line 2520 of file cifgetrec.c.
References _Cif_space, atoi(), atol(), c, CIF_NAMELIST, CIF_NOMEM, i, int, NULL, strcpy, strlen(), token, and void.
| static int ascii_nd_msg | ( | struct Cif_nd_msg * | nmsg | ) | [static] |
| static int ascii_object | ( | struct Cif_object * | obj | ) | [static] |
Definition at line 2571 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), atol(), c, CIF_DM_ASSUMED, CIF_DM_CONSTANT, CIF_DM_EXPR, CIF_NOMEM, CIF_OBJECT, CO_ATTR_ARRAY_DEC, CO_ATTR_AUTO, CO_ATTR_CHAR, CO_ATTR_DATA, CO_ATTR_DIM, CO_ATTR_EQUIV, CO_ATTR_GEOM_DEC, CO_ATTR_IMPTYPE, CO_ATTR_PE_RESIDENT, CO_ATTR_POINTEE, CO_ATTR_SAVE, i, int, Cif_dim::lower, Cif_dim::ltype, NULL, strcpy, strlen(), strtol(), token, Cif_dim::upper, Cif_dim::utype, version, and void.
| static int ascii_opt_opts | ( | struct Cif_opt_opts * | oo | ) | [static] |
Definition at line 2805 of file cifgetrec.c.
References _Cif_filetbl, atoi(), CIF_OOF_INLINE, CIF_OPT_OPTS, NULL, strtol(), token, version, and void.
| static int ascii_orig_cmd | ( | struct Cif_orig_cmd * | ocmd | ) | [static] |
| static int ascii_src_pos | ( | struct Cif_src_pos * | spos | ) | [static] |
| static int ascii_srcfile | ( | struct Cif_srcfile * | src | ) | [static] |
Definition at line 2846 of file cifgetrec.c.
References atoi(), atol(), CIF_SRCFILE, SEPARATOR, and token.
| static int ascii_stmt_type | ( | struct Cif_stmt_type * | stmt | ) | [static] |
Definition at line 2870 of file cifgetrec.c.
References _Cif_filetbl, atol(), CIF_MAXRECORD, CIF_STMT_TYPE, _Cif_File_Tbl::return_version, and token.
| static int ascii_summary | ( | struct Cif_summary * | sum | ) | [static] |
Definition at line 2900 of file cifgetrec.c.
References atol(), CIF_SUMMARY, strcpy, token, and void.
| static int ascii_transform | ( | struct Cif_transform * | tran | ) | [static] |
Definition at line 3931 of file cifgetrec.c.
References _Cif_filetbl, _Cif_space, atoi(), atol(), c, CIF_BUFSIZE, Cif_Getpos(), CIF_LG_C, CIF_NOMEM, Cif_Setpos(), CIF_SYSERR, CIF_USAGE, compuse(), Cif_use::cpos, fd, feof(), fgets(), Cif_use::fid, i, _Cif_File_Tbl::ifull, _Cif_File_Tbl::ip, Cif_use::line, malloc, memcpy, memset, NULL, qsort(), realloc, SEPARATOR, strtol(), token, UBINCR, Cif_use::utype, void, and YES.
Referenced by ascii_cifhdr().
| static int binary_record | ( | struct Cif_generic ** | cif_record, | |
| FILE * | fd | |||
| ) | [static] |
Definition at line 912 of file cifgetrec.c.
References _Cif_binary_map_version(), _Cif_binread(), _Cif_filetbl, _Cif_shortsize, _Cif_space, _Cif_structsize, CIF_BADFORM, CIF_EOF, Cif_Free(), CIF_MAXRECORD, CIF_MEM_INDIV, CIF_NOMEM, CIF_SYSERR, feof(), fread, IO_ERROR, malloc, memset, mode, NO, NULL, Cif_generic::rectype, _Cif_File_Tbl::return_version, size, version, _Cif_File_Tbl::version, and void.
Referenced by Cif_Getrecord().
| int Cif_Getrecord | ( | int | cifd, | |
| struct Cif_generic ** | cif_record | |||
| ) |
Definition at line 395 of file cifgetrec.c.
References _Cif_filetbl, _Cif_memarea, _Cif_space, _Cif_structsize, ASCII_CIF, ascii_record, atoi(), binary_record(), CIF_BADREQ, CIF_BUFSIZE, CIF_EOF, Cif_Free(), CIF_FT_SIZE, CIF_MAXRECORD, CIF_MEM_DEFAULT, CIF_MEM_FIXED, CIF_MEM_INDIV, Cif_Memmode(), CIF_NOMEM, CIF_NOTOPEN, CIF_SYSERR, fd, feof(), fgets(), _Cif_File_Tbl::fme, _Cif_File_Tbl::ifull, _Cif_File_Tbl::ip, memset, _Cif_File_Tbl::mode, _Cif_Mem_Area::mused, NO, NOT_A_CIF, NULL, _Cif_File_Tbl::return_version, token, and void.
Referenced by Cif_Make_Cifconv(), Cif_Make_Lines(), cif_next_entry(), Cif_Open(), Cif_Recgroup(), copy_units(), print_buffered_messages(), and sortfile().
Definition at line 1135 of file cifgetrec.c.
References _Cif_space, atol(), c, CIF_NOMEM, CIF_TMC_ARRAY, CIF_TMC_FUNCNOPR, CIF_TMC_FUNCPRO, digit, i, len, Cif_tmod::mod, n, NO, NULL, strlen(), strtol(), token, Cif_tmod::val, and YES.
Referenced by ascii_c_entry(), ascii_c_object(), and ascii_c_tag().
Definition at line 1094 of file cifgetrec.c.
References _Cif_space, aptr, atoi(), c, CIF_NOMEM, i, n, NULL, and token.
Referenced by ascii_c_entry(), ascii_c_tag(), ascii_f90_misc_opts(), and ascii_misc_opts().
| static int strlist | ( | char *** | args | ) | [static] |
Definition at line 1063 of file cifgetrec.c.
References _Cif_space, aptr, atoi(), c, CIF_NOMEM, i, len, n, NULL, strcpy, strlen(), token, and void.
Referenced by ANL_FILE_MNGR::_General_Check(), ANL_FILE_MNGR::_Is_Open_Check(), ANL_FILE_MNGR::_Not_Open_Check(), ANL_FILE_MNGR::_Overwrite_Warning(), ascii_c_message(), ascii_c_opts(), ascii_f90_misc_opts(), ascii_message(), ascii_misc_opts(), and ascii_nd_msg().
| static char* token | ( | ) | [static] |
| struct Cif_generic* _cif_map_buffer = (struct Cif_generic *) NULL |
int(* ascii_record[CIF_MAXRECORD])() [static] |
Referenced by ascii_cifhdr(), and Cif_Getrecord().
char delim [static] |
Definition at line 342 of file cifgetrec.c.
int global_msgfid = -1 [static] |
Definition at line 329 of file cifgetrec.c.
int lcifd [static] |
Definition at line 318 of file cifgetrec.c.
int lmode [static] |
char* ntoken [static] |
Definition at line 341 of file cifgetrec.c.
char USMID[] = "@(#) libcif/cifgetrec.c 30.18 06/27/97 14:34:02" [static] |
Definition at line 41 of file cifgetrec.c.
short valid_record[CIF_MAXRECORD] [static] |
Definition at line 234 of file cifgetrec.c.
1.5.6