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:
parent
e13bc9ca7e
commit
f8df147015
5
file.c
5
file.c
@ -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
1
file.h
@ -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
6
log.c
@ -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 ;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user