Annotation of 43BSDReno/contrib/jove/externs.h, revision 1.1

1.1     ! root        1: /***************************************************************************
        !             2:  * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
        !             3:  * is provided to you without charge, and with no warranty.  You may give  *
        !             4:  * away copies of JOVE, including sources, provided that this notice is    *
        !             5:  * included in all the files.                                              *
        !             6:  ***************************************************************************/
        !             7: 
        !             8: extern char
        !             9: /* proc.c */
        !            10:        *MakeName proto((char *command)),
        !            11: 
        !            12: /* ask.c */
        !            13:        *ask_file proto((char *prmt, char *def, char *buf)),
        !            14:        *ask proto((char *, char *, ...)),
        !            15:        *do_ask proto((char *, int (*) proto((int)), char *, char *, ...));
        !            16: 
        !            17: extern int
        !            18:        yes_or_no_p proto((char *, ...));
        !            19: 
        !            20: extern void
        !            21:        minib_add proto((char *str,int movedown));
        !            22: 
        !            23: extern void
        !            24:        isprocbuf proto((char *bufname)),
        !            25:        DoAutoExec proto((char *new,char *old)),
        !            26:        RegToUnix proto((struct buffer *outbuf,char *cmd));
        !            27: 
        !            28: extern void
        !            29:        /* extend.c */
        !            30:        vpr_aux proto((const struct variable *, char *)),
        !            31: 
        !            32:        /* proc.c */
        !            33: #ifndef        MSDOS
        !            34:        dowait proto((int pid, int *status)),
        !            35: #endif
        !            36:        get_FL_info proto((char *, char *)),
        !            37:        ErrFree proto((void));
        !            38: 
        !            39: extern int
        !            40: /* jove.c */
        !            41:        finish proto((int code)),       /* doesn't return at all! */
        !            42: /* ctype.h */
        !            43:        ismword proto((int c)),
        !            44: 
        !            45: /* proc.c */
        !            46:        UnixToBuf proto((char *, int, int, int, ...)),
        !            47: 
        !            48: /* extend.c */
        !            49:        addgetc proto((void)),
        !            50:        ask_int proto((char *prompt,int base)),
        !            51:        aux_complete proto((int c)),
        !            52:        chr_to_int proto((char *cp,int base,int allints, int *result)),
        !            53:        complete proto((char * *possible,char *prompt,int flags)),
        !            54:        joverc proto((char *file)),
        !            55: 
        !            56: /* jove.c */
        !            57: #ifdef MAC
        !            58:        win_reshape proto((int /*junk*/)),
        !            59: #endif
        !            60:        charp proto((void)),
        !            61:        getch proto((void)),
        !            62:        jgetchar proto((void)),
        !            63:        getrawinchar proto((void));
        !            64: 
        !            65: extern void
        !            66:        error proto((char *, ...)),
        !            67:        complain proto((char *, ...)),
        !            68:        confirm proto((char *, ...)),
        !            69:        ttyset proto((int n)),
        !            70:        tty_reset proto ((void)),
        !            71:        ToError proto((int forward)),
        !            72:        Ungetc proto((int c));
        !            73: 
        !            74: 
        !            75: #ifdef IBMPC
        !            76: extern int
        !            77:        lower proto((char *c)),
        !            78:        rawkey_ready proto((void));
        !            79: extern char
        !            80:        switchar proto((void));
        !            81: #endif
        !            82: 
        !            83: extern Bufpos
        !            84: /* insert.c */
        !            85:        *DoYank proto((struct line *fline,int fchar,struct line *tline,int tchar,struct line *atline,int atchar,struct buffer *whatbuf)),
        !            86:        *lisp_indent proto((void));
        !            87: 
        !            88: extern void
        !            89:        Insert proto((int c)),
        !            90:        LineInsert proto((int num));
        !            91: 
        !            92: /* c.c */
        !            93: extern Bufpos
        !            94:        *c_indent proto((int brace)),
        !            95:        *m_paren proto((int p_type,int dir,int can_mismatch,int can_stop));
        !            96: 
        !            97: extern void
        !            98:        mp_error proto((void));
        !            99: 
        !           100: extern unsigned char
        !           101:        chpl proto((void)),
        !           102:        lpp proto((void));
        !           103: 
        !           104: extern void
        !           105:        DoJustify proto((struct line *l1,int c1,struct line *l2,int c2,int scrunch,int indent)),
        !           106: 
        !           107:        /* abbrev.c */
        !           108: #ifdef ABBREV
        !           109:        AbbrevExpand proto((void)),
        !           110: #endif
        !           111: 
        !           112:        /* disp.c */
        !           113:        message proto((char *)),
        !           114: 
        !           115:        /* insert.c */
        !           116: #ifdef ABBREV
        !           117:        MaybeAbbrevExpand proto((void)),
        !           118: #endif
        !           119:        GCchunks proto((void)),
        !           120: 
        !           121:        /* fmt.c */
        !           122:        format proto((char *buf, size_t len, char *fmt, char *ap)),
        !           123:        add_mess proto((char *, ...)),
        !           124:        f_mess proto((char *, ...)),
        !           125:        fwritef proto((struct _file *, char *, ...)),
        !           126:        writef proto((char *, ...)),
        !           127:        s_mess proto((char *, ...)),
        !           128:        swritef proto((char *, char *, ...)),
        !           129: 
        !           130:        /* keymaps.c */
        !           131:        InitKeymaps proto((void)),
        !           132: 
        !           133:        /* paragraph.c */
        !           134:        do_rfill proto((int ulm)),
        !           135: 
        !           136:        /* macros.c */
        !           137:        mac_init proto((void)),
        !           138: 
        !           139:        /* misc.c */
        !           140:        skip_wht_space proto((void)),
        !           141:        put_bufs proto((int askp)),
        !           142: 
        !           143:        /* term.c */
        !           144: #ifndef        IBMPC
        !           145:        getTERM proto((void)),
        !           146: #endif
        !           147:        putpad proto((char *str,int lines)),
        !           148:        putargpad proto((char *str, int arg, int lines)),
        !           149:        settout proto((char *ttbuf));
        !           150: 
        !           151: #if defined(IBMPC)
        !           152: extern void
        !           153:        write_em proto((char *s)),
        !           154:        write_emc proto((char *s,int n)),
        !           155:        write_emif proto(()),
        !           156:        write_emif proto((char *s));
        !           157: #endif
        !           158: 
        !           159: #ifdef MAC
        !           160: 
        !           161: extern int
        !           162:        creat proto((char *,int)),
        !           163:        open proto((char *,int)),
        !           164:        close proto((int)),
        !           165:        read proto((int,char *,unsigned)),
        !           166:        write proto((int,char *,unsigned)),
        !           167:        unlink proto((char *)),
        !           168:        chdir proto((char *)),
        !           169:        rawchkc proto((void)),
        !           170:        getArgs proto((char ***));
        !           171: 
        !           172: extern long
        !           173:        lseek proto((int,long,unsigned));
        !           174: 
        !           175: extern time_t
        !           176:        time proto((time_t *));
        !           177: 
        !           178: #endif /* MAC */
        !           179: 
        !           180: extern char
        !           181:        *pwd proto((void)),
        !           182: #ifdef MAC
        !           183:        *getwd(),
        !           184: #else
        !           185:        *getwd proto((char *)),
        !           186: #endif
        !           187:        *pfile proto((char *)),
        !           188:        *gfile proto((char *));
        !           189: 
        !           190: #ifdef MAC
        !           191: extern void
        !           192:        MacInit proto((void)),
        !           193:        InitBinds proto((void)),
        !           194:        NPlacur proto((int,int)),
        !           195:        i_lines proto((int,int,int)),
        !           196:        d_lines proto((int,int,int)),
        !           197:        clr_page proto((void)),
        !           198:        clr_eoln proto((void)),
        !           199:        docontrols proto((void)),
        !           200:        RemoveScrollBar proto((Window *)),
        !           201:        InitEvents proto((void)),
        !           202:        menus_on proto((void)),
        !           203:        menus_off proto((void));
        !           204: #endif
        !           205: 
        !           206: /* Wired Commands */
        !           207: 
        !           208: extern void
        !           209:        UnbindC proto((void)),
        !           210:        ShowVersion proto((void)),
        !           211:        WVisSpace proto((void)),
        !           212:        AppReg proto((void)),
        !           213:        Apropos proto((void)),
        !           214:        BackChar proto((void)),
        !           215:        BList proto((void)),
        !           216:        FList proto((void)),
        !           217:        BUpList proto((void)),
        !           218:        FDownList proto((void)),
        !           219:        BSexpr proto((void)),
        !           220:        BackWord proto((void)),
        !           221:        Bof proto((void)),
        !           222:        Bol proto((void)),
        !           223:        Bos proto((void)),
        !           224:        Bow proto((void)),
        !           225:        BindAKey proto((void)),
        !           226:        BindMac proto((void)),
        !           227:        BufPos proto((void)),
        !           228: #if defined(MSDOS)
        !           229:        Buf1Select proto((void)),
        !           230:        Buf2Select proto((void)),
        !           231:        Buf3Select proto((void)),
        !           232:        Buf4Select proto((void)),
        !           233:        Buf5Select proto((void)),
        !           234:        Buf6Select proto((void)),
        !           235:        Buf7Select proto((void)),
        !           236:        Buf8Select proto((void)),
        !           237:        Buf9Select proto((void)),
        !           238:        Buf10Select proto((void)),
        !           239: #endif /* MSDOS */
        !           240:        CasRegLower proto((void)),
        !           241:        CasRegUpper proto((void)),
        !           242:        CapChar proto((void)),
        !           243:        CapWord proto((void)),
        !           244:        LowWord proto((void)),
        !           245:        UppWord proto((void)),
        !           246:        Chdir proto((void)),
        !           247:        prCWD proto((void)),
        !           248:        prDIRS proto((void)),
        !           249:        Pushd proto((void)),
        !           250:        Popd proto((void)),
        !           251:        prCTIME proto((void)),
        !           252:        ChrToOct proto((void)),
        !           253:        ClAndRedraw proto((void)),
        !           254: #if !defined(MAC)
        !           255:        MakeErrors proto((void)),
        !           256:        ErrParse proto((void)),
        !           257: #endif
        !           258:        CopyRegion proto((void)),
        !           259:        BufSelect proto((void)),
        !           260:        DelBlnkLines proto((void)),
        !           261:        DelNChar proto((void)),
        !           262:        DelNWord proto((void)),
        !           263:        OneWindow proto((void)),
        !           264:        DelPChar proto((void)),
        !           265:        DelPWord proto((void)),
        !           266:        DelReg proto((void)),
        !           267:        KillSome proto((void)),
        !           268:        DelWtSpace proto((void)),
        !           269:        DelCurWindow proto((void)),
        !           270:        KeyDesc proto((void)),
        !           271:        Digit proto((void)),
        !           272:        Digit0 proto((void)),
        !           273:        Digit1 proto((void)),
        !           274:        Digit2 proto((void)),
        !           275:        Digit3 proto((void)),
        !           276:        Digit4 proto((void)),
        !           277:        Digit5 proto((void)),
        !           278:        Digit6 proto((void)),
        !           279:        Digit7 proto((void)),
        !           280:        Digit8 proto((void)),
        !           281:        Digit9 proto((void)),
        !           282:        DescBindings proto((void)),
        !           283:        DescCom proto((void)),
        !           284:        Eof proto((void)),
        !           285:        Eol proto((void)),
        !           286:        Eos proto((void)),
        !           287:        Eow proto((void)),
        !           288:        ForPara proto((void)),
        !           289:        BackPara proto((void)),
        !           290:        BufErase proto((void)),
        !           291:        PtToMark proto((void)),
        !           292:        Extend proto((void)),
        !           293:        ExecMacro proto((void)),
        !           294:        RunMacro proto((void)),
        !           295:        Leave proto((void)),
        !           296:        FindFile proto((void)),
        !           297:        WindFind proto((void)),
        !           298:        FindTag proto((void)),
        !           299:        FDotTag proto((void)),
        !           300:        ToIndent proto((void)),
        !           301:        ForChar proto((void)),
        !           302:        FSexpr proto((void)),
        !           303:        ForWord proto((void)),
        !           304:        TimesFour proto((void)),
        !           305:        GoLine proto((void)),
        !           306: #ifndef _mac   /* conflicts with MacTraps version */
        !           307:        GrowWindow proto((void)),
        !           308: #endif
        !           309:        IncFSearch proto((void)),
        !           310:        IncRSearch proto((void)),
        !           311:        InsFile proto((void)),
        !           312:        Justify proto((void)),
        !           313:        RegJustify proto((void)),
        !           314:        SetLMargin proto((void)),
        !           315:        SetRMargin proto((void)),
        !           316:        LRShift proto((void)),
        !           317:        RRShift proto((void)),
        !           318:        BufKill proto((void)),
        !           319:        KillBos proto((void)),
        !           320:        KillEos proto((void)),
        !           321:        KillEOL proto((void)),
        !           322:        KillExpr proto((void)),
        !           323:        BufList proto((void)),
        !           324:        NotModified proto((void)),
        !           325:        NameMac proto((void)),
        !           326:        DelMacro proto((void)),
        !           327:        Newline proto((void)),
        !           328:        OpenLine proto((void)),
        !           329:        LineAI proto((void)),
        !           330: #if !defined(MAC)
        !           331:        ShowErr proto((void)),
        !           332:        NextError proto((void)),
        !           333: #endif /* MAC */
        !           334: #if defined(MSDOS)
        !           335:        PageScrollUp proto((void)),
        !           336:        PageScrollDown proto((void)),
        !           337: #endif /* MSDOS */
        !           338: #if !defined(MAC)
        !           339:        PrevError proto((void)),
        !           340: #endif /* MAC */
        !           341:        NextLine proto((void)),
        !           342:        NextPage proto((void)),
        !           343:        NextWindow proto((void)),
        !           344:        Recur proto((void)),
        !           345:        PopMark proto((void)),
        !           346:        PageNWind proto((void)),
        !           347:        Tab proto((void)),
        !           348:        DoParen proto((void)),
        !           349: #if !defined(MAC)
        !           350:        ParseAll proto((void)),
        !           351: #endif
        !           352: #if defined(SPELL)
        !           353:        SpelWords proto((void)),
        !           354: #endif
        !           355: #if defined(JOB_CONTROL)
        !           356:        PauseJove proto((void)),
        !           357: #endif
        !           358:        PrevLine proto((void)),
        !           359:        PrevPage proto((void)),
        !           360:        PrevWindow proto((void)),
        !           361: #if !defined(MAC)
        !           362:        Push proto((void)),
        !           363: #endif
        !           364:        RegReplace proto((void)),
        !           365:        QRepSearch proto((void)),
        !           366:        QuotChar proto((void)),
        !           367:        ReadFile proto((void)),
        !           368:        DefKBDMac proto((void)),
        !           369:        RedrawDisplay proto((void)),
        !           370:        ReNamBuf proto((void)),
        !           371:        RepSearch proto((void)),
        !           372:        DownScroll proto((void)),
        !           373:        UpScroll proto((void)),
        !           374:        ForSearch proto((void)),
        !           375:        FSrchND proto((void)),
        !           376:        RevSearch proto((void)),
        !           377:        RSrchND proto((void)),
        !           378:        SelfInsert proto((void)),
        !           379:        SetVar proto((void)),
        !           380:        SetMark proto((void)),
        !           381: #if !defined(MAC)
        !           382:        ShellCom proto((void)),
        !           383:        ShNoBuf proto((void)),
        !           384:        Shtypeout proto((void)),
        !           385:        ShToBuf proto((void)),
        !           386: #endif
        !           387:        ShrWindow proto((void)),
        !           388:        Source proto((void)),
        !           389: #if defined(SPELL)
        !           390:        SpelBuffer proto((void)),
        !           391: #endif
        !           392:        SplitWind proto((void)),
        !           393:        GotoWind proto((void)),
        !           394:        Remember proto((void)),
        !           395:        Forget proto((void)),
        !           396:        StrLength proto((void)),
        !           397:        TransChar proto((void)),
        !           398:        TransLines proto((void)),
        !           399:        SaveFile proto((void)),
        !           400:        WtModBuf proto((void)),
        !           401:        WriteMacs proto((void)),
        !           402:        WrtReg proto((void)),
        !           403:        Yank proto((void)),
        !           404:        YankPop proto((void)),
        !           405:        PrVar proto((void)),
        !           406: #if !defined(MAC)
        !           407:        FilterRegion proto((void)),
        !           408: #endif
        !           409:        WNumLines proto((void)),
        !           410: #if defined(IPROCS)
        !           411:        ShellProc proto((void)),
        !           412:        ProcInt proto((void)),
        !           413:        ProcQuit proto((void)),
        !           414:        ProcKill proto((void)),
        !           415: #  if !defined(PIPEPROCS)
        !           416:        ProcEof proto((void)),
        !           417:        ProcStop proto((void)),
        !           418:        ProcCont proto((void)),
        !           419:        ProcDStop proto((void)),
        !           420: #  endif
        !           421:        ProcSendData proto((void)),
        !           422:        ProcNewline proto((void)),
        !           423:        ProcList proto((void)),
        !           424:        ProcBind proto((void)),
        !           425:        Iprocess proto((void)),
        !           426:        DBXpoutput proto((void)),
        !           427: #endif
        !           428: 
        !           429: #if defined(LISP)
        !           430:        GSexpr proto((void)),   /* Grind S Expression. */
        !           431:        AddSpecial proto((void)),       /* add lisp special form */
        !           432: #endif
        !           433:        CAutoExec proto((void)),
        !           434:        MAutoExec proto((void)),
        !           435: 
        !           436:        DefMAbbrev proto((void)),
        !           437:        DefGAbbrev proto((void)),
        !           438:        SaveAbbrevs proto((void)),
        !           439:        RestAbbrevs proto((void)),
        !           440:        EditAbbrevs proto((void)),
        !           441:        BindMtoW proto((void)),
        !           442: 
        !           443: #if defined(CMT_FMT)
        !           444:        Comment proto((void)),
        !           445: #endif
        !           446: 
        !           447:        ScrollLeft proto((void)),
        !           448:        ScrollRight proto((void)),
        !           449: 
        !           450:        MakeKMap proto((void)),
        !           451:        KmBind proto((void)),
        !           452:        ProcKmBind proto((void)),
        !           453: 
        !           454:        MacInter proto((void));         /* This is the last one. */
        !           455: 
        !           456: /*==== Declarations of Library/System Routines ====*/
        !           457: 
        !           458: /* General Utilities: <stdlib.h> */
        !           459: 
        !           460: extern int     abs proto((int));
        !           461: 
        !           462: extern void    abort proto((void));
        !           463: extern void    exit proto((int));
        !           464: 
        !           465: extern int     atoi proto((const char */*nptr*/));
        !           466: 
        !           467: extern void    qsort proto((UnivPtr /*base*/, size_t /*nmemb*/,
        !           468:        size_t /*size*/, int (*/*compar*/)(UnivConstPtr, UnivConstPtr)));
        !           469: 
        !           470: extern char    *getenv proto((const char *));
        !           471: extern int     system proto((const char *));
        !           472: 
        !           473: extern void
        !           474:        free proto((UnivPtr));
        !           475: 
        !           476: extern char
        !           477:        *calloc proto((unsigned int, unsigned int)),
        !           478:        *malloc proto((size_t)),
        !           479:        *realloc proto((UnivPtr, size_t));
        !           480: 
        !           481: /* Date and Time <time.h> */
        !           482: 
        !           483: extern time_t  time proto((time_t */*tloc*/));
        !           484: extern char    *ctime proto((const time_t *));
        !           485: 
        !           486: /* UNIX */
        !           487: 
        !           488: #ifdef IBMPC
        !           489: #define const  /* the const's in the following defs conflict with MSC 5.1 */
        !           490: #endif
        !           491: 
        !           492: extern int     chdir proto((const char */*path*/));
        !           493: extern int     access proto((const char */*path*/, int /*mode*/));
        !           494: extern int     creat proto((const char */*path*/, int /*mode*/));
        !           495:        /* Open may have an optional third argument, int mode */
        !           496: extern int     open proto((const char */*path*/, int /*flags*/, ...));
        !           497: 
        !           498: #ifdef IBMPC
        !           499: extern int     read proto((int /*fd*/, char * /*buf*/, size_t /*nbytes*/));
        !           500: extern int     write proto((int /*fd*/, char * /*buf*/, size_t /*nbytes*/));
        !           501: #else
        !           502: extern int     read proto((int /*fd*/, UnivPtr /*buf*/, size_t /*nbytes*/));
        !           503: extern int     write proto((int /*fd*/, UnivPtr /*buf*/, size_t /*nbytes*/));
        !           504: #endif
        !           505: 
        !           506: extern int     execl proto((const char */*name*/, const char */*arg0*/, ...));
        !           507: extern int     execlp proto((const char */*name*/, const char */*arg0*/, ...));
        !           508: extern int     execv proto((const char */*name*/, const char */*argv*/[]));
        !           509: extern int     execvp proto((const char */*name*/, const char */*argv*/[]));
        !           510: 
        !           511: #ifdef IBMPC
        !           512: #undef const
        !           513: #endif
        !           514: 
        !           515: extern void    _exit proto((int));     /* exit(), without flush, etc */
        !           516: 
        !           517: extern unsigned        alarm proto((unsigned /*seconds*/));
        !           518: 
        !           519: extern int     pipe proto((int *));
        !           520: extern int     close proto((int));
        !           521: extern int     dup proto((int));
        !           522: extern int     dup2 proto((int /*old_fd*/, int /*new_fd*/));
        !           523: extern long    lseek proto((int /*fd*/, long /*offset*/, int /*whence*/));
        !           524: extern int     fchmod proto((int /*fd*/, int /*mode*/));
        !           525: extern int     unlink proto((const char */*path*/));
        !           526: extern int     fsync proto((int));
        !           527: 
        !           528: extern int     fork proto((void));
        !           529: 
        !           530: extern int     getpid proto((void));
        !           531: extern int     getuid proto((void));
        !           532: 
        !           533: extern int     kill proto((int /*pid*/, int /*sig*/));
        !           534: 
        !           535: extern char    *mktemp proto((char *));
        !           536: 
        !           537: /* BSD UNIX
        !           538:  *
        !           539:  * Note: in most systems, declarations of non-existant functions is
        !           540:  * OK if they are never actually called.  The parentheses around the
        !           541:  * name prevents any macro expansion.
        !           542:  */
        !           543: 
        !           544: extern int     UNDEF(vfork) proto((void));
        !           545: 
        !           546: #ifdef BSD_SIGS
        !           547: extern int     UNDEF(killpg) proto((int /*pgrp*/, int /*sig*/));
        !           548: #endif
        !           549: extern int     UNDEF(setpgrp) proto((int /*pid*/, int /*pgrp*/));      /* Sys V takes no arg */
        !           550: 
        !           551: #ifdef __STDC__
        !           552: struct timeval;        /* forward declaration */
        !           553: #endif /* __STDC__ */
        !           554: extern int     UNDEF(select) proto((int /*width*/, long */*readfds*/, long */*writefds*/,
        !           555:        long */*exceptfds*/, struct timeval */*timeout*/));
        !           556: 
        !           557: extern void    UNDEF(bcopy) proto((UnivConstPtr, UnivPtr, size_t));
        !           558: extern void    UNDEF(bzero) proto((UnivPtr, size_t));
        !           559: extern int     UNDEF(ffs) proto((long));
        !           560: 
        !           561: /* termcap */
        !           562: 
        !           563: extern int     UNDEF(tgetent) proto((char */*buf*/, const char */*name*/));
        !           564: extern int     UNDEF(tgetflag) proto((const char */*id*/));
        !           565: extern int     UNDEF(tgetnum) proto((const char */*id*/));
        !           566: extern char    UNDEF(*tgetstr) proto((const char */*id*/, char **/*area*/));
        !           567: extern void    UNDEF(tputs) proto((const char *, int, void (*) proto((int))));
        !           568: extern char    UNDEF(*tgoto) proto((const char *, int /*destcol*/, int /*destline*/));
        !           569: 
        !           570: 

unix.superglobalmegacorp.com

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