2013-06-14 05:35:35 -04:00
|
|
|
#include "log.h"
|
|
|
|
|
2013-09-19 00:18:38 -04:00
|
|
|
#include "retcode.h"
|
2013-09-17 22:56:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2013-09-19 04:32:20 -04:00
|
|
|
static boolean logit( boolean retcode, boolean beep_f, const char *buf, ...) {
|
2013-09-17 22:56:11 -04:00
|
|
|
return retcode ;
|
|
|
|
}
|
|
|
|
|
2013-09-19 04:32:20 -04:00
|
|
|
boolean (*logger)( boolean, boolean, const char *, ...) = logit ;
|
2013-09-17 22:56:11 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* tell the user that this command is illegal while we are in
|
|
|
|
* VIEW (read-only) mode
|
|
|
|
*/
|
2013-09-19 04:32:20 -04:00
|
|
|
boolean rdonly(void)
|
2013-09-17 22:56:11 -04:00
|
|
|
{
|
|
|
|
/* TTbeep();
|
|
|
|
mlwrite("(Key illegal in VIEW mode)");
|
|
|
|
return FALSE;
|
|
|
|
*/
|
|
|
|
return logger( FALSE, TRUE, "(Key illegal in VIEW mode)");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-09-18 02:25:39 -04:00
|
|
|
|
2013-09-19 04:32:20 -04:00
|
|
|
boolean resterr(void)
|
2013-09-18 02:25:39 -04:00
|
|
|
{
|
|
|
|
/* TTbeep();
|
|
|
|
mlwrite("(That command is RESTRICTED)");
|
|
|
|
return FALSE;
|
|
|
|
*/
|
|
|
|
return logger( FALSE, TRUE, "(That command is RESTRICTED)");
|
|
|
|
}
|
|
|
|
|
|
|
|
|