pp_ifs.c

来自「ngspice又一个电子CAD仿真软件代码.功能更全」· C语言 代码 · 共 90 行

C
90
字号
/*============================================================================FILE  pp_ifs.cMEMBER OF process cmppCopyright 1991Georgia Tech Research CorporationAtlanta, Georgia 30332All Rights ReservedPROJECT A-8503AUTHORS    9/12/91  Bill KuhnMODIFICATIONS    <date> <person name> <nature of modifications>SUMMARY    This file contains the main function for processing an Interface Spec    File (ifspec.ifs).INTERFACES    preprocess_ifs_file()REFERENCED FILES    None.NON-STANDARD FEATURES    None.============================================================================*/#include <stdlib.h>#include  "cmpp.h"/* *********************************************************************** *//*preprocess_ifs_fileFunction preprocess_ifs_file is the top-level driver function forpreprocessing an Interface Specification file (ifspec.ifs).  Thisfunction calls read_ifs_file() requesting it to read and parsethe Interface Specification file and place the informationcontained in it into an internal data structure.  Thenwrite_ifs_c_file() is called to write the information out in a Cfile that will be compiled and linked with the simulator.*/void preprocess_ifs_file(void){    Ifs_Table_t     ifs_table;   /* Repository for info read from ifspec.ifs file */    Status_t        status;      /* Return status */    /* Read the entire ifspec.ifs file and load the data into ifs_table */    status = read_ifs_file(IFSPEC_FILENAME,GET_IFS_TABLE,&ifs_table);    if(status != OK) {        exit(1);    }    /* Write the ifspec.c file required by the spice simulator */    status = write_ifs_c_file("ifspec.c",&ifs_table);    if(status != OK) {        exit(1);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?