📄 mos2dest.c
字号:
/**********Copyright 1990 Regents of the University of California. All rights reserved.Author: 1985 Thomas L. Quarles**********//* */#include "spice.h"#include <stdio.h>#include "util.h"#include "mos2defs.h"#include "suffix.h"voidMOS2destroy(inModel) GENmodel **inModel;{ MOS2model **model = (MOS2model **)inModel; MOS2instance *here; MOS2instance *prev = NULL; MOS2model *mod = *model; MOS2model *oldmod = NULL; for( ; mod ; mod = mod->MOS2nextModel) { if(oldmod) FREE(oldmod); oldmod = mod; prev = (MOS2instance *)NULL; for(here = mod->MOS2instances ; here ; here = here->MOS2nextInstance) { if(prev){ if(prev->MOS2sens) FREE(prev->MOS2sens); FREE(prev); } prev = here; } if(prev) FREE(prev); } if(oldmod) FREE(oldmod); *model = NULL;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -