mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-25 02:26:22 -05:00
Renaud Fivet
50b727bf7f
Emphasize which one always return TRUE. Use mloutfail() to introduce consistency when a function fails with error message.
21 lines
371 B
C
21 lines
371 B
C
/* mlout.c -- implements mlout.h */
|
|
|
|
#include "mlout.h"
|
|
|
|
/* by default just use a stub */
|
|
static void mloutdump( const char *buf, ...) {
|
|
}
|
|
|
|
void (*mloutfmt)( const char *, ...) = mloutdump ;
|
|
|
|
void mloutstr( const char *str) {
|
|
mloutfmt( (*str) ? "%s" : "", str) ;
|
|
}
|
|
|
|
boolean mloutfail( const char *msg) {
|
|
mloutfmt( "%B%s", msg) ;
|
|
return FALSE ;
|
|
}
|
|
|
|
/* end of mlout.c */
|