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