cpstd.h

来自「spice中支持多层次元件模型仿真的可单独运行的插件源码」· C头文件 代码 · 共 73 行

H
73
字号
/**********Copyright 1990 Regents of the University of California.  All rights reserved.Author: 1986 Wayne A. Christopher, U. C. Berkeley CAD Group**********//* * Standard definitions. This file serves as the header file for std.c and * wlist.c */#ifndef _STD_H_#define _STD_H_typedef int bool;#include "misc.h"#ifndef FILE/* XXX Bogus */#  include <stdio.h>#endif/* Doubly linked lists of words. */struct wordlist {    char *wl_word;    struct wordlist *wl_next;    struct wordlist *wl_prev;} ;typedef struct wordlist wordlist;/* Complex numbers. */struct _complex {   /* IBM portability... */    double cx_real;    double cx_imag;} ;typedef struct _complex complex;#define realpart(cval)  ((struct _complex *) (cval))->cx_real#define imagpart(cval)  ((struct _complex *) (cval))->cx_imag/* Externs defined in std.c */extern char *getusername();extern char *gethome();extern char *tildexpand();extern char *printnum();extern int cp_numdgt;extern void fatal();extern void setenv();extern void cp_printword();/* Externs from wlist.c */extern char **wl_mkvec();extern char *wl_flatten();extern int wl_length();extern void wl_free();extern void wl_print();extern void wl_sort();extern wordlist *wl_append();extern wordlist *wl_build();extern wordlist *wl_copy();extern wordlist *wl_range();extern wordlist *wl_nthelem();extern wordlist *wl_reverse();extern wordlist *wl_splice();#endif /* _STD_H_*/

⌨️ 快捷键说明

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