mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 23:36:23 -05:00
Review return type of log functions.
This commit is contained in:
parent
f5c715debd
commit
32a5631bde
8
log.c
8
log.c
@ -8,17 +8,17 @@ static void logdump( const char *buf, ...) {
|
|||||||
|
|
||||||
void (*logwrite)( const char *, ...) = logdump ;
|
void (*logwrite)( const char *, ...) = logdump ;
|
||||||
|
|
||||||
static int logit( int retcode, int beep_f, const char *buf, ...) {
|
static boolean logit( boolean retcode, boolean beep_f, const char *buf, ...) {
|
||||||
return retcode ;
|
return retcode ;
|
||||||
}
|
}
|
||||||
|
|
||||||
int (*logger)( int, int, const char *, ...) = logit ;
|
boolean (*logger)( boolean, boolean, const char *, ...) = logit ;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* tell the user that this command is illegal while we are in
|
* tell the user that this command is illegal while we are in
|
||||||
* VIEW (read-only) mode
|
* VIEW (read-only) mode
|
||||||
*/
|
*/
|
||||||
int rdonly(void)
|
boolean rdonly(void)
|
||||||
{
|
{
|
||||||
/* TTbeep();
|
/* TTbeep();
|
||||||
mlwrite("(Key illegal in VIEW mode)");
|
mlwrite("(Key illegal in VIEW mode)");
|
||||||
@ -29,7 +29,7 @@ int rdonly(void)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
int resterr(void)
|
boolean resterr(void)
|
||||||
{
|
{
|
||||||
/* TTbeep();
|
/* TTbeep();
|
||||||
mlwrite("(That command is RESTRICTED)");
|
mlwrite("(That command is RESTRICTED)");
|
||||||
|
8
log.h
8
log.h
@ -1,6 +1,8 @@
|
|||||||
int rdonly( void) ;
|
#include "retcode.h"
|
||||||
int resterr( void) ;
|
|
||||||
|
boolean rdonly( void) ;
|
||||||
|
boolean resterr( void) ;
|
||||||
|
|
||||||
extern void (*logwrite)( const char *, ...) ;
|
extern void (*logwrite)( const char *, ...) ;
|
||||||
extern int (*logger)( int, int, const char *, ...) ;
|
extern boolean (*logger)( boolean, boolean, const char *, ...) ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user