⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mac.c

📁 spice中支持多层次元件模型仿真的可单独运行的插件源码
💻 C
字号:
#include <memory.h>#include "spice.h"#include "ftegraph.h"#include "ftedev.h"#include "fteinput.h"#include "ftedefs.h"  #include <console.h>char *argv[2];intinitmac(av)  char ***av;{		MoreMasters;	MoreMasters;	MoreMasters;	MoreMasters;	MoreMasters;	MoreMasters;	console_options.pause_atexit=false;	console_options.title="\pBerkeley Spice";	argv[0] = 0;	argv[1] = 0;	*av = argv;	return(1);}char *_memavl() { 	long int grow, free;	free = MaxMem(&grow);	if (grow == 0) return((char *)free);	return((char *)grow); }int  QDraw_Init(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_NewViewport(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_Close(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_Clear(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_DrawLine(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_Arc(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_Text(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_DefineColor(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_DefineLinestyle(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_SetLinestyle(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_SetColor(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_Update(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_Track(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_MakeMenu(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_MakeDialog(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}intQDraw_Input(request, response)    REQUEST *request;    RESPONSE *response;{    switch (request->option) {      case char_option:        response->reply.ch = inchar(request->fp);        response->option = request->option;        break;      default:        /* just ignore, since we don't want a million error messages */	if (response)	    response->option = error_option;        break;    }    return;} intQDraw_DatatoScreen(){    sprintf(ErrorMessage,        "This operation is not defined for display type %s.",        dispdev->name);    internalerror(ErrorMessage);    return(1);}

⌨️ 快捷键说明

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