Annotation of 42BSD/usr.bin/lint/llib-lcurses, revision 1.1

1.1     ! root        1: /* @(#)llib-lcurses    1.5 (Berkeley) 3/27/83 */
        !             2: 
        !             3: /* LINTLIBRARY */
        !             4: # include      "curses.h"
        !             5: 
        !             6: /*
        !             7:  * Fake declarations; all of these are declared as externs in curses.h,
        !             8:  * but lint needs something a little more solid than that
        !             9:  */
        !            10: 
        !            11: bool   AM, BS, CA, DA, DB, EO, GT, HZ, IN, MI, MS, NC, OS, UL, XN;
        !            12: 
        !            13: char   *AL, *BC, *BT, *CD, *CE, *CL, *CM, *DC, *DL, *DM, *DO, *ED,
        !            14:        *EI, *HO, *IC, *IM, *IP, *LL, *MA, *ND, *SE, *SF, *SO, *SR,
        !            15:        *TA, *TE, *TI, *UC, *UE, *UP, *US, *VB, *VE, *VS, PC;
        !            16: 
        !            17: /*
        !            18:  * From the tty modes...
        !            19:  */
        !            20: 
        !            21: bool   NONL, UPPERCASE, normtty, _pfast;
        !            22: 
        !            23: # define       WINDOW  struct _win_st
        !            24: 
        !            25: bool   My_term, _echoit, _rawmode, _endwin;
        !            26: 
        !            27: char   *Def_term, ttytype[];
        !            28: 
        !            29: int    LINES, COLS, _tty_ch, _res_flg;
        !            30: 
        !            31: SGTTY  _tty;
        !            32: 
        !            33: WINDOW *stdscr, *curscr;
        !            34: 
        !            35:        box(win,vert,hor) WINDOW *win; int vert, hor; {}
        !            36:        delwin(win) WINDOW *win; {}
        !            37:        endwin() {}
        !            38:        gettmode() {}
        !            39: WINDOW *initscr() {
        !            40:        AL = AL;
        !            41:        AM = AM;
        !            42:        BC = BC;
        !            43:        BS = BS;
        !            44:        BT = BT;
        !            45:        CA = CA;
        !            46:        CD = CD;
        !            47:        CE = CE;
        !            48:        CL = CL;
        !            49:        CM = CM;
        !            50:        DA = DA;
        !            51:        DB = DB;
        !            52:        DC = DC;
        !            53:        DL = DL;
        !            54:        DM = DM;
        !            55:        DO = DO;
        !            56:        ED = ED;
        !            57:        EO = EO;
        !            58:        EI = EI;
        !            59:        GT = GT;
        !            60:        HO = HO;
        !            61:        HZ = HZ;
        !            62:        IC = IC;
        !            63:        IN = IN;
        !            64:        IM = IM;
        !            65:        IP = IP;
        !            66:        LL = LL;
        !            67:        MA = MA;
        !            68:        MI = MI;
        !            69:        NC = NC;
        !            70:        ND = ND;
        !            71:        OS = OS;
        !            72:        PC = PC;
        !            73:        SE = SE;
        !            74:        SF = SF;
        !            75:        SO = SO;
        !            76:        SR = SR;
        !            77:        TA = TA;
        !            78:        TE = TE;
        !            79:        TI = TI;
        !            80:        UC = UC;
        !            81:        UE = UE;
        !            82:        UL = UL;
        !            83:        UP = UP;
        !            84:        US = US;
        !            85:        VB = VB;
        !            86:        VE = VE;
        !            87:        VS = VS;
        !            88:        XN = XN;
        !            89:        NONL = NONL;
        !            90:        UPPERCASE = UPPERCASE;
        !            91:        normtty = normtty;
        !            92:        _pfast = _pfast;
        !            93:        _tty = _tty;
        !            94:        My_term = My_term;
        !            95:        _echoit = _echoit;
        !            96:        _rawmode = _rawmode;
        !            97:        LINES = LINES;
        !            98:        COLS = COLS;
        !            99:        _tty_ch = _tty_ch;
        !           100:        _res_flg = _res_flg;
        !           101:        stdscr = stdscr;
        !           102:        curscr = curscr;
        !           103:        _echoit = _echoit;
        !           104:        _rawmode = _rawmode;
        !           105:        _tty_ch = _tty_ch;
        !           106:        return (WINDOW *) 0;
        !           107: }
        !           108: char * longname(bp, def) char *bp, *def; { return bp; }
        !           109:        mvcur(ly,lx,y,x) int ly, lx, y, x; { }
        !           110: /* VARARGS3 */
        !           111:        mvprintw(y,x,fmt) int y, x; char *fmt; { return 0; }
        !           112: /* VARARGS3 */
        !           113:        mvscanw(y,x,fmt) int y, x; char *fmt; { return 0; }
        !           114: /* VARARGS4 */
        !           115:        mvwprintw(win,y,x,fmt) WINDOW *win; int y, x; char *fmt; { return 0; }
        !           116: /* VARARGS4 */
        !           117:        mvwscanw(win,y,x,fmt) WINDOW *win; int y, x; char *fmt; { return 0; }
        !           118: WINDOW *newwin(Nl, Nc, by, bx) int Nl, Nc, by, bx; { return (WINDOW *) 0; }
        !           119:        overlay(win1, win2) WINDOW *win1, *win2; { }
        !           120:        overwrite(win1, win2) WINDOW *win1, *win2; { }
        !           121: /* VARARGS1 */
        !           122:        printw(fmt) char *fmt; { return 0; }
        !           123: /* VARARGS1 */
        !           124:        scanw(fmt) char *fmt; { return 0; }
        !           125:        scroll(win) WINDOW *win; { return 0; }
        !           126:        setterm(type) char *type; { return 0; }
        !           127: WINDOW *subwin(o, Nl, Nc, by, bx) WINDOW *o; int Nl, Nc, by, bx; { return o; }
        !           128:        waddch(win,ch) WINDOW *win; char ch; { return 0; }
        !           129:        waddstr(win,str) WINDOW *win; char *str; { return 0; }
        !           130:        wclear(win) WINDOW *win; { return 0; }
        !           131:        wclrtobot(win) WINDOW *win; { return 0; }
        !           132:        wclrtoeol(win) WINDOW *win; { return 0; }
        !           133:        wdeleteln(win) WINDOW *win; { return 0; }
        !           134:        werase(win) WINDOW *win; { return 0; }
        !           135:        wgetch(win) WINDOW *win; { return '0'; }
        !           136:        wgetstr(win,str) WINDOW *win; char *str; { return 0; }
        !           137:        winsertln(win) WINDOW *win; { return 0; }
        !           138:        wmove(win,y,x) WINDOW *win; int y, x; { return 0; }
        !           139: /* VARARGS2 */
        !           140:        wprintw(win,fmt) WINDOW *win; char *fmt; { return 0; }
        !           141:        wrefresh(win) WINDOW *win; { return 0; }
        !           142: /* VARARGS2 */
        !           143:        wscanw(win,fmt) WINDOW *win; char *fmt; { return 0; }
        !           144:        /* These really return char *'s but this will do. */
        !           145: int    wstandout(win) WINDOW *win; { return 0; }
        !           146: int    wstandend(win) WINDOW *win; { return 0; }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.