2013-06-14 05:35:35 -04:00
|
|
|
#include "log.h"
|
|
|
|
|
2013-09-17 22:56:11 -04:00
|
|
|
#include "estruct.h"
|
|
|
|
|
|
|
|
|
|
|
|
static void logdump( const char *buf, ...) {
|
2013-06-14 05:35:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void (*logwrite)( const char *, ...) = logdump ;
|
2013-09-17 22:56:11 -04:00
|
|
|
|
|
|
|
static int logit( int retcode, int beep_f, const char *buf, ...) {
|
|
|
|
return retcode ;
|
|
|
|
}
|
|
|
|
|
|
|
|
int (*logger)( int, int, const char *, ...) = logit ;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* tell the user that this command is illegal while we are in
|
|
|
|
* VIEW (read-only) mode
|
|
|
|
*/
|
|
|
|
int rdonly(void)
|
|
|
|
{
|
|
|
|
/* TTbeep();
|
|
|
|
mlwrite("(Key illegal in VIEW mode)");
|
|
|
|
return FALSE;
|
|
|
|
*/
|
|
|
|
return logger( FALSE, TRUE, "(Key illegal in VIEW mode)");
|
|
|
|
}
|
|
|
|
|
|
|
|
|