home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / Editors / mjovesrc.zoo / externs.h < prev    next >
C/C++ Source or Header  |  1991-10-08  |  15KB  |  590 lines

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