亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? front.c

?? spice中支持多層次元件模型仿真的可單獨運行的插件源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/**********Copyright 1990 Regents of the University of California.  All rights reserved.Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group**********//* * The front-end command loop. */#include "spice.h"#include "util.h"#include "cpdefs.h"#include "suffix.h"static char *doblock();static void docommand();static void dodump();static struct control *findlabel();static wordlist *getcommand();static void pwlist();/* Return values from doblock().  I am assuming that nobody will use these * characters in a string. */#define NORMAL      '\001'#define BROKEN      '\002'#define CONTINUED   '\003'#define NORMAL_STR  "\001"#define BROKEN_STR  "\002"#define CONTINUED_STR   "\003"/* Are we waiting for a command? This lets (void) signal handling be more clever. */bool cp_cwait = false;      char *cp_csep = ";";bool cp_dounixcom = false;/* Stuff to do control structures. We keep a history (seperate from the * cshpar history, for now at least) of commands and their event numbers, * with a block considered as a statement. In a goto, the first word in * co_text is where to go, likewise for label. For conditional controls, * we have to call ft_getpnames and ft_evaluate each time, since the * dvec pointers will change... Also we should do variable and backquote * substitution each time... */struct control {    int co_type;            /* One of CO_* ... */    wordlist *co_cond;      /* if, while, dowhile */    char *co_foreachvar;        /* foreach */    int co_numtimes;        /* repeat, break & continue levels */    wordlist *co_text;      /* Ordinary text and foreach values. */    struct control *co_parent;  /* If this is inside a block. */    struct control *co_children;    /* The contents of this block. */    struct control *co_elseblock;   /* For if-then-else. */    struct control *co_next;    struct control *co_prev;} ;#define CO_UNFILLED 0#define CO_STATEMENT    1#define CO_WHILE    2#define CO_DOWHILE  3#define CO_IF       4#define CO_FOREACH  5#define CO_BREAK    6#define CO_CONTINUE 7#define CO_LABEL    8#define CO_GOTO     9#define CO_REPEAT   10/* We have to keep the control structures in a stack, so that when we do * a 'source', we can push a fresh set onto the top...  Actually there have * to be two stacks -- one for the pointer to the list of control structs, * and one for the 'current command' pointer... */#define CONTROLSTACKSIZE 256    /* Better be enough. */static struct control *control[CONTROLSTACKSIZE], *cend[CONTROLSTACKSIZE];static int stackp = 0;/* If there is an argument, give this to cshpar to use instead of stdin. In * a few places, we call cp_evloop again if it returns 1 and exit (or close * a file) if it returns 0... Because of the way sources are done, we can't * allow the control structures to get blown away every time we return -- * probably every time we type source at the keyboard and every time a * source returns to keyboard input is ok though -- use ft_controlreset. */static char *noredirect[] = { "stop", NULL } ;  /* Only one?? */intcp_evloop(string)    char *string;{    wordlist *wlist, *ww;    struct control *x;    char *i;    int nn;#define newblock    cend[stackp]->co_children = alloc(struct control);      \	    ZERO(cend[stackp]->co_children,struct control), \            cend[stackp]->co_children->co_parent = cend[stackp]; \            cend[stackp] = cend[stackp]->co_children;        \            cend[stackp]->co_type = CO_UNFILLED;    for (;;) {        wlist = getcommand(string);        if (wlist == NULL) {    /* End of file or end of user input. */            if (cend[stackp]->co_parent && !string) {                cp_resetcontrol();                continue;            } else                return (0);        }        if ((wlist->wl_word == NULL) || (*wlist->wl_word == '\0')) {            /* User just typed return. */            if (string)                return (1);            else {                cp_event--;                continue;            }        }        /* Just a check... */        for (ww = wlist; ww; ww = ww->wl_next)            if (!ww->wl_word) {                fprintf(cp_err,             "cp_evloop: Internal Error: NULL word pointer\n");                continue;            }        /* Add this to the control structure list. If cend->co_type         * is CO_UNFILLED, the last line was the beginning of a          * block, and this is the unfilled first statement.         */        if (cend[stackp] && (cend[stackp]->co_type != CO_UNFILLED)) {            cend[stackp]->co_next = alloc(struct control);	    ZERO(cend[stackp]->co_next, struct control);            cend[stackp]->co_next->co_prev = cend[stackp];            cend[stackp]->co_next->co_parent =                     cend[stackp]->co_parent;            cend[stackp] = cend[stackp]->co_next;        } else if (!cend[stackp]) {            control[stackp] = cend[stackp] = alloc(struct control);	    ZERO(cend[stackp], struct control);	}        if (eq(wlist->wl_word, "while")) {            cend[stackp]->co_type = CO_WHILE;            cend[stackp]->co_cond = wlist->wl_next;            if (!cend[stackp]->co_cond) {                fprintf(stderr,                    "Error: missing while condition.\n");            }            newblock;        } else if (eq(wlist->wl_word, "dowhile")) {            cend[stackp]->co_type = CO_DOWHILE;            cend[stackp]->co_cond = wlist->wl_next;            if (!cend[stackp]->co_cond) {                fprintf(stderr,                    "Error: missing dowhile condition.\n");            }            newblock;        } else if (eq(wlist->wl_word, "repeat")) {            cend[stackp]->co_type = CO_REPEAT;            if (!wlist->wl_next) {                cend[stackp]->co_numtimes = -1;            } else {                char *s;                double *dd;                wlist = cp_variablesubst(cp_bquote(                        cp_doglob(wl_copy(wlist))));                s = wlist->wl_next->wl_word;                dd = ft_numparse(&s, false);                if (dd) {                    if (*dd < 0) {                        fprintf(cp_err,             "Error: can't repeat a negative number of times\n");                        *dd = 0.0;                    }                    cend[stackp]->co_numtimes = (int) *dd;                } else                    fprintf(cp_err,                     "Error: bad repeat argument %s\n",                        wlist->wl_next->wl_word);            }            newblock;        } else if (eq(wlist->wl_word, "if")) {            cend[stackp]->co_type = CO_IF;            cend[stackp]->co_cond = wlist->wl_next;            if (!cend[stackp]->co_cond) {                fprintf(stderr,                     "Error: missing if condition.\n");            }            newblock;        } else if (eq(wlist->wl_word, "foreach")) {            cend[stackp]->co_type = CO_FOREACH;            if (wlist->wl_next) {                wlist = wlist->wl_next;                cend[stackp]->co_foreachvar =                         copy(wlist->wl_word);                wlist = wlist->wl_next;            } else                fprintf(stderr,                     "Error: missing foreach variable.\n");            wlist = cp_doglob(wlist);            cend[stackp]->co_text = wl_copy(wlist);            newblock;        } else if (eq(wlist->wl_word, "label")) {            cend[stackp]->co_type = CO_LABEL;            if (wlist->wl_next) {                cend[stackp]->co_text = wl_copy(wlist->wl_next);                /* I think of everything, don't I? */                cp_addkword(CT_LABEL, wlist->wl_next->wl_word);                if (wlist->wl_next->wl_next)                    fprintf(cp_err,                 "Warning: ignored extra junk after label.\n");            } else                fprintf(stderr, "Error: missing label.\n");        } else if (eq(wlist->wl_word, "goto")) {            /* Incidentally, this won't work if the values 1 and             * 2 ever get to be valid character pointers -- I             * think it's reasonably safe to assume they aren't...             */            cend[stackp]->co_type = CO_GOTO;            if (wlist->wl_next) {                cend[stackp]->co_text = wl_copy(wlist->wl_next);                if (wlist->wl_next->wl_next)                    fprintf(cp_err,                 "Warning: ignored extra junk after goto.\n");            } else                fprintf(stderr, "Error: missing label.\n");        } else if (eq(wlist->wl_word, "continue")) {            cend[stackp]->co_type = CO_CONTINUE;            if (wlist->wl_next) {                cend[stackp]->co_numtimes = scannum(wlist->                        wl_next->wl_word);                if (wlist->wl_next->wl_next)                    fprintf(cp_err,             "Warning: ignored extra junk after continue %d.\n",                        cend[stackp]->co_numtimes);            } else                cend[stackp]->co_numtimes = 1;        } else if (eq(wlist->wl_word, "break")) {            cend[stackp]->co_type = CO_BREAK;            if (wlist->wl_next) {                cend[stackp]->co_numtimes = scannum(wlist->                        wl_next->wl_word);                if (wlist->wl_next->wl_next)                    fprintf(cp_err,                 "Warning: ignored extra junk after break %d.\n",                        cend[stackp]->co_numtimes);            } else                cend[stackp]->co_numtimes = 1;        } else if (eq(wlist->wl_word, "end")) {            /* Throw away this thing. */            if (!cend[stackp]->co_parent) {                fprintf(stderr, "Error: no block to end.\n");                cend[stackp]->co_type = CO_UNFILLED;            } else if (cend[stackp]->co_prev) {                cend[stackp]->co_prev->co_next = NULL;                x = cend[stackp];                cend[stackp] = cend[stackp]->co_parent;                tfree(x);            } else {                x = cend[stackp];                cend[stackp] = cend[stackp]->co_parent;                cend[stackp]->co_children = NULL;                tfree(x);            }        } else if (eq(wlist->wl_word, "else")) {            if (!cend[stackp]->co_parent ||                    (cend[stackp]->co_parent->co_type !=                    CO_IF)) {                fprintf(stderr, "Error: misplaced else.\n");                cend[stackp]->co_type = CO_UNFILLED;            } else {                if (cend[stackp]->co_prev)                    cend[stackp]->co_prev->co_next = NULL;                else                    cend[stackp]->co_parent->co_children =                            NULL;                cend[stackp]->co_parent->co_elseblock =                         cend[stackp];                cend[stackp]->co_prev = NULL;            }        } else {            cend[stackp]->co_type = CO_STATEMENT;            cend[stackp]->co_text = wlist;        }        if (!cend[stackp]->co_parent) {            x = cend[stackp];            /* We have to toss this do-while loop in here so             * that gotos at the top level will work.             */            do {                i = doblock(x, &nn);                switch (*i) {                    case NORMAL:                        break;                    case BROKEN:                        fprintf(cp_err,     "Error: break not in loop or too many break levels given\n");                        break;                    case CONTINUED:                        fprintf(cp_err,     "Error: continue not in loop or too many continue levels given\n");                        break;                    default:                        x = findlabel(i,                             control[stackp]);                        if (!x)                            fprintf(cp_err,                         "Error: label %s not found\n",                                i);                }                if (x)                    x = x->co_next;            } while (x);        }        if (string)            return (1); /* The return value is irrelevant. */    }}/* Execute a block.  There can be a number of return values from this routine. *  NORMAL indicates a normal termination *  BROKEN indicates a break -- if the caller is a breakable loop, *      terminate it, otherwise pass the break upwards *  CONTINUED indicates a continue -- if the caller is a continuable loop, *      continue, else pass the continue upwards *  Any other return code is considered a pointer to a string which is *      a label somewhere -- if this label is present in the block, *      goto it, otherwise pass it up. Note that this prevents jumping *      into a loop, which is good. * Note that here is where we expand variables, ``, and globs for controls. * The 'num' argument is used by break n and continue n. */static char *doblock(bl, num)    struct control *bl;    int *num;{    struct control *ch, *cn = NULL;    wordlist *wl;    char *i;    int nn;    switch (bl->co_type) {        case CO_WHILE:        while (bl->co_cond && cp_istrue(bl->co_cond)) {            for (ch = bl->co_children; ch; ch = cn) {                cn = ch->co_next;                i = doblock(ch, &nn);                switch (*i) {                    case NORMAL:                    break;                    case BROKEN:    /* Break. */                    if (nn < 2)                        return (NORMAL_STR);                    else {                        *num = nn - 1;                        return (BROKEN_STR);                    }                    case CONTINUED: /* Continue. */                    if (nn < 2) {                        cn = NULL;                        break;                    } else {                        *num = nn - 1;                        return (CONTINUED_STR);                    }                    default:                    cn = findlabel(i, bl->co_children);                    if (!cn)                        return (i);                }            }        }        break;        case CO_DOWHILE:        do {            for (ch = bl->co_children; ch; ch = cn) {                cn = ch->co_next;                i = doblock(ch, &nn);                switch (*i) {                    case NORMAL:                    break;                    case BROKEN:    /* Break. */                    if (nn < 2)                        return (NORMAL_STR);                    else {                        *num = nn - 1;                        return (BROKEN_STR);                    }                    case CONTINUED: /* Continue. */                    if (nn < 2) {                        cn = NULL;                        break;                    } else {                        *num = nn - 1;                        return (CONTINUED_STR);                    }                    default:                    cn = findlabel(i, bl->co_children);                    if (!cn)                        return (i);                }            }        } while (bl->co_cond && cp_istrue(bl->co_cond));        break;        case CO_REPEAT:        while ((bl->co_numtimes > 0) ||                (bl->co_numtimes == -1)) {            if (bl->co_numtimes != -1)                bl->co_numtimes--;            for (ch = bl->co_children; ch; ch = cn) {                cn = ch->co_next;                i = doblock(ch, &nn);                switch (*i) {                    case NORMAL:                    break;                    case BROKEN:    /* Break. */                    if (nn < 2)                        return (NORMAL_STR);                    else {                        *num = nn - 1;                        return (BROKEN_STR);                    }                    case CONTINUED: /* Continue. */                    if (nn < 2) {                        cn = NULL;                        break;                    } else {                        *num = nn - 1;                        return (CONTINUED_STR);                    }                    default:                    cn = findlabel(i, bl->co_children);                    if (!cn)                        return (i);                }            }        }        break;        case CO_IF:        if (bl->co_cond && cp_istrue(bl->co_cond)) {            for (ch = bl->co_children; ch; ch = cn) {                cn = ch->co_next;                i = doblock(ch, &nn);                if (*i > 2) {                    cn = findlabel(i,                        bl->co_children);                    if (!cn)                        return (i);                } else if (*i != NORMAL) {                    *num = nn;                    return (i);                }            }        } else {            for (ch = bl->co_elseblock; ch; ch = cn) {                cn = ch->co_next;                i = doblock(ch, &nn);                if (*i > 2) {                    cn = findlabel(i,                        bl->co_elseblock);                    if (!cn)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品专区在线影院重磅| 日韩av一区二区在线影视| 韩国在线一区二区| 久久网站热最新地址| 国内欧美视频一区二区| 精品99一区二区三区| 国产一区二区在线免费观看| 久久久一区二区三区| 国产福利一区二区三区在线视频| 国产精品午夜免费| 色综合久久中文综合久久牛| 一级日本不卡的影视| 欧美精品乱码久久久久久 | 欧美国产精品v| 成人h动漫精品| 亚洲一区二区在线免费看| 91麻豆精品国产91久久久久久| 精品一区免费av| 国产精品久久三| 欧美在线你懂得| 久久超碰97人人做人人爱| 视频在线观看一区二区三区| 26uuu国产在线精品一区二区| 风间由美中文字幕在线看视频国产欧美| 中文字幕制服丝袜一区二区三区| 精品视频1区2区3区| 激情六月婷婷久久| 一区二区三区在线观看动漫| 91精品福利在线一区二区三区| 国产精品18久久久久| 亚洲自拍偷拍综合| 精品国产区一区| 色婷婷综合激情| 国产精品综合二区| 亚洲小少妇裸体bbw| 久久精子c满五个校花| 在线日韩av片| 国产传媒日韩欧美成人| 无码av中文一区二区三区桃花岛| 国产日韩成人精品| 777午夜精品视频在线播放| 成人午夜视频福利| 美女视频一区二区三区| 一区二区高清免费观看影视大全| 久久嫩草精品久久久久| 欧美色综合影院| 成+人+亚洲+综合天堂| 久99久精品视频免费观看| 一级特黄大欧美久久久| 国产精品视频一二三区| 精品女同一区二区| 欧美日本乱大交xxxxx| 成人av在线资源网| 国产在线麻豆精品观看| 日韩精品欧美成人高清一区二区| 亚洲日本一区二区三区| 久久久久国产精品免费免费搜索| 欧美二区三区的天堂| 一本久久a久久精品亚洲| 国产精品原创巨作av| 秋霞午夜鲁丝一区二区老狼| 亚洲综合999| 亚洲图片另类小说| 国产精品久久久久aaaa樱花| 2023国产精品| 2017欧美狠狠色| 欧美大片免费久久精品三p| 欧美男同性恋视频网站| 精品视频一区二区三区免费| 91视频com| 91首页免费视频| 99精品偷自拍| 9色porny自拍视频一区二区| 春色校园综合激情亚洲| 国产伦精品一区二区三区视频青涩 | 一二三区精品视频| 亚洲视频在线观看一区| 亚洲欧洲无码一区二区三区| 欧美激情一区二区三区不卡| 欧美激情一区二区三区在线| 亚洲国产精品成人综合| 国产女主播视频一区二区| 久久久99精品免费观看不卡| 国产日韩欧美麻豆| 国产精品亲子乱子伦xxxx裸| 国产精品美女久久久久久久| 国产精品久久久久国产精品日日| 1000精品久久久久久久久| 中文字幕一区二区在线播放 | 亚洲精品你懂的| 伊人婷婷欧美激情| 亚洲r级在线视频| 日韩成人免费电影| 国产一区二区三区高清播放| 国产馆精品极品| 成人18精品视频| 欧美三片在线视频观看| 欧美一卡2卡3卡4卡| 精品国产伦一区二区三区观看体验| 欧美tickling挠脚心丨vk| 久久影院午夜论| 国产精品久久久久久久蜜臀| 一区二区三区产品免费精品久久75| 亚洲www啪成人一区二区麻豆| 久久成人麻豆午夜电影| 福利一区在线观看| 欧美又粗又大又爽| 欧美大片在线观看一区二区| 国产精品丝袜久久久久久app| 亚洲丝袜另类动漫二区| 天天操天天干天天综合网| 国产综合色在线视频区| 91丨porny丨蝌蚪视频| 制服丝袜亚洲色图| 国产精品久久久久永久免费观看 | 石原莉奈在线亚洲二区| 久久91精品久久久久久秒播| 不卡一区二区中文字幕| 欧美三级资源在线| 国产网站一区二区三区| 一级精品视频在线观看宜春院| 精品在线一区二区三区| 色吧成人激情小说| 欧美精品一区视频| 亚洲五月六月丁香激情| 国产成人精品免费| 欧美乱妇20p| 国产精品久久网站| 精品一区免费av| 欧美日韩精品一区二区天天拍小说| 久久久久久久久久久99999| 亚洲自拍偷拍图区| 成人综合婷婷国产精品久久免费| 欧美人妇做爰xxxⅹ性高电影| 欧美国产禁国产网站cc| 水野朝阳av一区二区三区| 99在线精品视频| 久久久久久久久久久黄色| 日韩成人精品在线观看| 95精品视频在线| 国产亚洲精品福利| 日本视频免费一区| 在线视频中文字幕一区二区| 中文字幕欧美区| 狠狠色丁香久久婷婷综合丁香| 欧美精品在欧美一区二区少妇| 亚洲欧美自拍偷拍色图| 国产精品一区二区久久精品爱涩| 在线播放中文一区| 一区二区三区日韩在线观看| 99久久精品免费看| 国产精品麻豆久久久| 狠狠色狠狠色综合| 欧美xxxxx牲另类人与| 日韩中文字幕区一区有砖一区 | 欧美性一二三区| 亚洲视频中文字幕| av在线一区二区三区| 欧美激情在线一区二区| 激情久久久久久久久久久久久久久久| 欧美剧情电影在线观看完整版免费励志电影 | 欧美高清激情brazzers| 洋洋av久久久久久久一区| 99久久国产综合精品麻豆| 中文天堂在线一区| 国产91丝袜在线播放| 欧美激情资源网| 国产91清纯白嫩初高中在线观看 | 欧美国产综合一区二区| 国产伦精品一区二区三区免费| 欧美sm美女调教| 久草中文综合在线| 久久视频一区二区| 成人午夜私人影院| 国产精品成人网| 色诱视频网站一区| 亚洲一级二级在线| 欧美日韩和欧美的一区二区| 午夜伦理一区二区| 6080yy午夜一二三区久久| 日本亚洲欧美天堂免费| 久久综合九色综合欧美98| 国产一区二三区| 日韩一区在线免费观看| 日本精品一级二级| 丝袜国产日韩另类美女| 精品成人佐山爱一区二区| 国产精品小仙女| 亚洲视频你懂的| 欧美精品国产精品| 激情综合网激情| 国产精品国产a| 欧美性生活久久| 精品一区二区日韩| 国产精品麻豆网站| 欧美日本在线观看| 国产乱码字幕精品高清av| 亚洲欧美日韩综合aⅴ视频| 欧美日韩成人激情| 国产电影一区二区三区|