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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? front.c

?? 支持數(shù)字元件仿真的SPICE插件
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* RCS Info: $Revision: 1.1 $ on $Date: 91/04/02 12:04:13 $ *           $Source: //pepper/atesse_spice/spice3/CP/RCS/front.c,v $ * Copyright (c) 1985 Wayne A. Christopher, U. C. Berkeley CAD Group * * The front-end command loop.  There are some tricky things that we have to * do here... */#include "prefix.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(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(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(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)                        return (i);                } else if (*i != NORMAL) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
aaa欧美日韩| 波波电影院一区二区三区| 自拍偷拍国产精品| 91丝袜美腿高跟国产极品老师 | 国产精品1区2区3区| 久久久精品综合| 成人精品免费看| 国产三级一区二区| 欧美亚洲自拍偷拍| 毛片不卡一区二区| 综合精品久久久| 亚洲欧美自拍偷拍| 99久久精品免费精品国产| 日韩综合在线视频| 中文在线一区二区| 欧美一区二区三区四区在线观看 | 99久久久国产精品免费蜜臀| 成人av电影在线网| 色呦呦国产精品| 麻豆国产精品777777在线| 全部av―极品视觉盛宴亚洲| 成人免费在线视频| 亚洲欧美色图小说| 精品国产青草久久久久福利| av成人免费在线观看| 99视频有精品| 欧美日韩在线一区二区| 成人av网址在线| 91美女片黄在线| 欧美日韩一级二级| 精品久久久久久综合日本欧美 | 精品国产成人在线影院 | 亚洲精品免费播放| 精品国产乱码久久久久久久 | 国产一区不卡在线| 水野朝阳av一区二区三区| 免费看日韩a级影片| 国产一区999| 一本大道av伊人久久综合| 欧美猛男gaygay网站| 成人av在线观| 欧美日韩一本到| 亚洲精品在线三区| 《视频一区视频二区| 日韩av中文字幕一区二区| 亚洲一区在线看| 亚洲精品五月天| 日本欧美在线看| 成人av电影免费在线播放| 欧美精品第一页| 国产欧美日韩卡一| 国产精品久久久一区麻豆最新章节| 精品国产一区二区亚洲人成毛片| 国产精品午夜在线观看| 国产午夜久久久久| 亚洲综合成人网| 国产精品一区二区免费不卡 | 欧美私人免费视频| 精品福利视频一区二区三区| 1000精品久久久久久久久| 蜜桃91丨九色丨蝌蚪91桃色| 91亚洲精品一区二区乱码| 日韩免费高清av| 日韩免费视频一区二区| 亚洲欧美日韩人成在线播放| 九色综合狠狠综合久久| 国产乱色国产精品免费视频| 欧美色图第一页| 国产精品久久久久一区| 韩国女主播一区| 东方aⅴ免费观看久久av| 成人sese在线| 欧美电视剧在线观看完整版| 亚洲最大的成人av| 日本在线播放一区二区三区| 99久久99久久精品免费看蜜桃| 日韩欧美国产电影| 偷拍一区二区三区| 国产精品一区在线观看乱码| 777久久久精品| 国产调教视频一区| 免费不卡在线观看| 717成人午夜免费福利电影| 最新国产の精品合集bt伙计| 亚洲码国产岛国毛片在线| 日韩午夜激情av| 欧美性大战久久| 久久精品视频免费| 亚洲综合网站在线观看| 99免费精品在线观看| 日韩女优视频免费观看| 亚洲伊人色欲综合网| 成人动漫在线一区| 欧美videofree性高清杂交| 国产精品国产三级国产aⅴ中文| 国产伦精品一区二区三区视频青涩 | 国产91精品入口| 欧美日韩国产美| 亚洲欧美日韩精品久久久久| 韩国在线一区二区| 制服丝袜在线91| 亚洲精品菠萝久久久久久久| 国产福利电影一区二区三区| 日韩色视频在线观看| 亚洲一区二区五区| 99久久精品免费看| 国产欧美日韩麻豆91| 三级久久三级久久久| 欧美日韩在线播放三区四区| 国产精品久99| 国产黄人亚洲片| 精品国产免费人成在线观看| 性做久久久久久免费观看| 国产欧美一区二区精品仙草咪| 日本成人在线视频网站| 777a∨成人精品桃花网| 亚洲国产精品久久久久婷婷884| 五月婷婷激情综合| 欧美亚洲综合在线| 亚洲一卡二卡三卡四卡| 色菇凉天天综合网| 欧美一区二区高清| 亚洲欧美aⅴ...| 欧美视频一区二区三区在线观看| 亚洲精品国产视频| 在线看一区二区| 亚洲精品免费视频| 色哟哟国产精品免费观看| 夜夜精品浪潮av一区二区三区| 91蜜桃传媒精品久久久一区二区| 中文字幕日本不卡| 99久久99久久精品国产片果冻| 国产香蕉久久精品综合网| 91影院在线观看| 一区二区三区在线播放| 91免费版在线| 亚洲小说欧美激情另类| 欧美色图激情小说| 亚洲一区在线视频| 欧美精品一区二区三区蜜臀| 国内精品写真在线观看| 久久婷婷久久一区二区三区| 亚洲三级在线免费观看| 成人黄色av网站在线| 综合久久久久久久| 精品视频一区二区三区免费| 日本免费在线视频不卡一不卡二| 精品入口麻豆88视频| 国产一区在线观看视频| 欧美精品一区二区三区视频| 色婷婷综合久久| 亚洲第一福利一区| 精品女同一区二区| 国产精品一级在线| 亚洲丝袜制服诱惑| 欧美无乱码久久久免费午夜一区 | 麻豆国产精品官网| 精品少妇一区二区三区免费观看 | 国产欧美中文在线| 99视频超级精品| 丝袜亚洲另类丝袜在线| 精品国产一区二区三区四区四| 成人综合婷婷国产精品久久蜜臀| 亚洲一区影音先锋| 欧美不卡一区二区| 99久久er热在这里只有精品66| 亚洲国产精品久久久男人的天堂| 日韩精品一区二区在线| 成人动漫一区二区在线| 精品亚洲aⅴ乱码一区二区三区| 中文字幕免费不卡| 欧美图片一区二区三区| 国内精品免费**视频| 亚洲精品国产第一综合99久久| 欧美日高清视频| 99re热视频精品| 日本在线播放一区二区三区| 国产精品黄色在线观看| 91精选在线观看| thepron国产精品| 国产成人一级电影| 日韩成人av影视| 国产精品国产三级国产三级人妇 | 欧美高清一级片在线| 国产传媒欧美日韩成人| 午夜欧美视频在线观看| 精品国产髙清在线看国产毛片| 欧美色窝79yyyycom| 国产成人精品免费| 日韩精品亚洲一区二区三区免费| 国产欧美日韩三级| 日韩欧美中文一区| 色视频成人在线观看免| 国产精品一品视频| 视频精品一区二区| 亚洲人成电影网站色mp4| 久久综合av免费| 精品久久久久久久久久久院品网| 欧美最新大片在线看| 成人黄色综合网站|