2021-08-03 01:37:06 -04:00
|
|
|
/* file.h -- file centric commands */
|
|
|
|
|
2013-05-19 05:36:24 -04:00
|
|
|
#ifndef _FILE_H_
|
|
|
|
#define _FILE_H_
|
|
|
|
|
2014-05-30 21:36:25 -04:00
|
|
|
#include "buffer.h"
|
2021-08-03 01:37:06 -04:00
|
|
|
#include "names.h"
|
2013-09-19 03:33:56 -04:00
|
|
|
|
2013-10-09 02:03:56 -04:00
|
|
|
extern boolean restflag ; /* restricted use? */
|
2015-02-12 22:23:12 -05:00
|
|
|
boolean resterr( void) ; /* restricted error message */
|
2013-10-09 02:03:56 -04:00
|
|
|
|
2021-08-03 01:37:06 -04:00
|
|
|
/* Bindable functions */
|
|
|
|
BINDABLE( filefind) ;
|
|
|
|
BINDABLE( fileread) ;
|
|
|
|
BINDABLE( filename) ;
|
|
|
|
BINDABLE( filesave) ;
|
|
|
|
BINDABLE( filewrite) ;
|
|
|
|
BINDABLE( insfile) ;
|
|
|
|
BINDABLE( viewfile) ;
|
|
|
|
|
2013-09-19 03:33:56 -04:00
|
|
|
int getfile( const char *fname, boolean lockfl) ;
|
|
|
|
int readin( const char *fname, boolean lockfl) ;
|
2014-05-30 21:36:25 -04:00
|
|
|
void makename( bname_t bname, const char *fname) ;
|
2013-05-19 05:36:24 -04:00
|
|
|
void unqname( char *name) ;
|
2013-09-19 03:33:56 -04:00
|
|
|
int writeout( const char *fn) ;
|
2013-05-19 05:36:24 -04:00
|
|
|
|
|
|
|
#endif
|
2021-08-03 01:37:06 -04:00
|
|
|
|
|
|
|
/* end of file.h */
|