2013-06-14 05:35:35 -04:00
|
|
|
#include "log.h"
|
|
|
|
|
2013-09-17 22:56:11 -04:00
|
|
|
static void logdump( const char *buf, ...) {
|
2013-06-14 05:35:35 -04:00
|
|
|
}
|
|
|
|
|
2015-01-21 08:30:01 -05:00
|
|
|
void (*writefmt)( const char *, ...) = logdump ;
|
2013-09-17 22:56:11 -04:00
|
|
|
|
2015-01-21 08:30:01 -05:00
|
|
|
void writestr( const char *str) {
|
|
|
|
writefmt( "%s", str) ;
|
2013-09-17 22:56:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* tell the user that this command is illegal while we are in
|
|
|
|
* VIEW (read-only) mode
|
|
|
|
*/
|
2015-01-20 09:34:28 -05:00
|
|
|
boolean rdonly( void) {
|
2015-01-21 08:30:01 -05:00
|
|
|
writefmt( "%B(Key illegal in VIEW mode)") ;
|
|
|
|
return FALSE ;
|
2013-09-17 22:56:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-20 09:34:28 -05:00
|
|
|
boolean resterr( void) {
|
2015-01-21 08:30:01 -05:00
|
|
|
writefmt( "%B(That command is RESTRICTED)") ;
|
|
|
|
return FALSE ;
|
2013-09-18 02:25:39 -04:00
|
|
|
}
|