1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-23 17:46:23 -05:00
uemacs/log.c

28 lines
523 B
C

#include "log.h"
static void logdump( const char *buf, ...) {
}
void (*logwrite)( const char *, ...) = logdump ;
static boolean logit( boolean retcode, const char *buf, ...) {
return retcode ;
}
boolean (*logger)( boolean, const char *, ...) = logit ;
/*
* tell the user that this command is illegal while we are in
* VIEW (read-only) mode
*/
boolean rdonly( void) {
return logger( FALSE, "%B(Key illegal in VIEW mode)");
}
boolean resterr( void) {
return logger( FALSE, "%B(That command is RESTRICTED)");
}