1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-18 07:16:23 -05:00

Insure restflag and resterr() belong to same scope.

This commit is contained in:
Renaud 2015-02-13 11:23:12 +08:00
parent e13bc9ca7e
commit f8df147015
4 changed files with 6 additions and 7 deletions

5
file.c
View File

@ -50,6 +50,11 @@ static const char *eolname[] = {
boolean restflag = FALSE ; /* restricted use? */ boolean restflag = FALSE ; /* restricted use? */
boolean resterr( void) {
writefmt( "%B(That command is RESTRICTED)") ;
return FALSE ;
}
/* /*
* Read a file into the current * Read a file into the current
* buffer. This is really easy; all you do it * buffer. This is really easy; all you do it

1
file.h
View File

@ -11,6 +11,7 @@ int set_encryption_key( int f, int n) ;
#endif #endif
extern boolean restflag ; /* restricted use? */ extern boolean restflag ; /* restricted use? */
boolean resterr( void) ; /* restricted error message */
int fileread( int f, int n) ; int fileread( int f, int n) ;
int insfile( int f, int n) ; int insfile( int f, int n) ;

6
log.c
View File

@ -18,9 +18,3 @@ boolean rdonly( void) {
writefmt( "%B(Key illegal in VIEW mode)") ; writefmt( "%B(Key illegal in VIEW mode)") ;
return FALSE ; return FALSE ;
} }
boolean resterr( void) {
writefmt( "%B(That command is RESTRICTED)") ;
return FALSE ;
}

1
log.h
View File

@ -5,4 +5,3 @@ extern void (*writefmt)( const char *, ...) ;
void writestr( const char *str) ; void writestr( const char *str) ;
boolean rdonly( void) ; boolean rdonly( void) ;
boolean resterr( void) ;