1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-06-10 14:00:41 +00:00
uemacs/log.c

39 lines
699 B
C
Raw Normal View History

#include "log.h"
static void logdump( const char *buf, ...) {
}
void (*logwrite)( const char *, ...) = logdump ;
2013-09-19 08:32:20 +00:00
static boolean logit( boolean retcode, boolean beep_f, const char *buf, ...) {
return retcode ;
}
2013-09-19 08:32:20 +00:00
boolean (*logger)( boolean, boolean, const char *, ...) = logit ;
/*
* tell the user that this command is illegal while we are in
* VIEW (read-only) mode
*/
2013-09-19 08:32:20 +00:00
boolean rdonly(void)
{
/* TTbeep();
mlwrite("(Key illegal in VIEW mode)");
return FALSE;
*/
return logger( FALSE, TRUE, "(Key illegal in VIEW mode)");
}
2013-09-18 06:25:39 +00:00
2013-09-19 08:32:20 +00:00
boolean resterr(void)
2013-09-18 06:25:39 +00:00
{
/* TTbeep();
mlwrite("(That command is RESTRICTED)");
return FALSE;
*/
return logger( FALSE, TRUE, "(That command is RESTRICTED)");
}