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