mirror of
https://github.com/rfivet/uemacs.git
synced 2025-01-18 06:06:23 -05:00
usage obsolete as refactored into wrapper.
This commit is contained in:
parent
86afdef45e
commit
c9a59faf42
1
Makefile
1
Makefile
@ -154,7 +154,6 @@ search.o: search.c estruct.h edef.h
|
||||
spawn.o: spawn.c estruct.h edef.h
|
||||
tcap.o: tcap.c estruct.h edef.h
|
||||
termio.o: termio.c estruct.h edef.h
|
||||
usage.o: usage.c usage.h
|
||||
utf8.o: utf8.c utf8.h
|
||||
vmsvt.o: vmsvt.c estruct.h edef.h
|
||||
vt52.o: vt52.c estruct.h edef.h
|
||||
|
27
usage.c
27
usage.c
@ -1,27 +0,0 @@
|
||||
/* usage.c -- implements usage.h */
|
||||
|
||||
/* TODO: align exit return code */
|
||||
|
||||
#include "usage.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static void report( const char *prefix, const char *err, va_list params) {
|
||||
char msg[ 4096] ;
|
||||
|
||||
vsnprintf( msg, sizeof msg, err, params) ;
|
||||
fprintf( stderr, "%s%s\n", prefix, msg) ;
|
||||
}
|
||||
|
||||
void die( const char *err, ...) {
|
||||
va_list params ;
|
||||
|
||||
va_start( params, err) ;
|
||||
report( "fatal: ", err, params) ;
|
||||
va_end( params) ;
|
||||
exit( 128) ;
|
||||
}
|
||||
|
||||
/* end of usage.c */
|
Loading…
Reference in New Issue
Block a user