home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / jove-4.16-src.tgz / tar.out / bsd / jove / io.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  2KB  |  84 lines

  1. /************************************************************************
  2.  * This program is Copyright (C) 1986-1996 by Jonathan Payne.  JOVE is  *
  3.  * 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    *HomeDir;
  9.  
  10. extern size_t    HomeLen;
  11.  
  12. extern bool    DOLsave;    /* Do Lsave flag.  If lines aren't being saved
  13.                    when you think they should have been, this
  14.                    flag is probably not being set, or is being
  15.                    cleared before lsave() was called. */
  16.  
  17. extern daddr    DFree;    /* pointer to end of tmp file */
  18.  
  19. extern int    Jr_Len;        /* length of Just Read Line */
  20.  
  21. extern long    io_chars;
  22. extern int    io_lines;
  23.  
  24. extern char
  25.     *lbptr proto((LinePtr line)),
  26.     *pr_name proto((char *fname,bool okay_home)),
  27.     *pwd proto((void));
  28.  
  29. extern File
  30.     *open_file proto((char *fname,char *buf,int how,bool complainifbad));
  31.  
  32. extern void
  33.     setCWD proto((char *d)),
  34.     getCWD proto((void)),
  35.     PathParse proto((char *name,char *intobuf)),
  36.     SyncTmp proto((void)),
  37.     close_file proto((File *fp)),
  38.     d_cache_init proto((void)),
  39.     file_write proto((char *fname, bool app)),
  40.     getline proto((daddr addr,char *buf)),
  41.     lsave proto((void)),
  42.     putreg proto((File *fp,LinePtr line1,int char1,LinePtr line2,int char2,bool makesure)),
  43.     read_file proto((char *file, bool is_insert)),
  44.     put_bufs proto((bool askp)),
  45.     tmpclose proto((void)),
  46.     tmpremove proto((void));
  47.  
  48. extern bool
  49.     chkCWD proto((char *dn));
  50.  
  51. extern daddr
  52.     putline proto((char *buf));
  53.  
  54. /* Commands: */
  55.  
  56. extern void
  57.     AppReg proto((void)),
  58.     Chdir proto((void)),
  59.     InsFile proto((void)),
  60.     Popd proto((void)),
  61.     Pushd proto((void)),
  62.     Pushlibd proto((void)),
  63.     JReadFile proto((void)), /* ReadFile conflicts with Win32 library */
  64.     SaveFile proto((void)),
  65.     JWriteFile proto((void)), /* WriteFile conflicts with Win32 library */
  66.     WtModBuf proto((void)),
  67.     WrtReg proto((void)),
  68.     prCWD proto((void)),
  69.     prDIRS proto((void));
  70.  
  71. /* Variables: */
  72.  
  73. #ifdef BACKUPFILES
  74. extern bool    BkupOnWrite;        /* VAR: make backup files when writing */
  75. #endif
  76. #ifdef UNIX
  77. extern int    CreatMode;        /* VAR: default mode for creat'ing files */
  78. #endif
  79. #ifdef MAC
  80. # define CreatMode    0    /* dummy */
  81. #endif
  82. extern bool    EndWNewline;        /* VAR: end files with a blank line */
  83. extern bool    OkayBadChars;        /* VAR: allow bad characters in files created by JOVE */
  84.