Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/*
2
 * unix.c
3
 * Copyright (C) 1998-2000 A.J. van Os; Released under GPL
4
 *
5
 * Description:
6
 * Unix approximations of RISC-OS functions
7
 */
8
 
9
#include <stdio.h>
10
#include <stdlib.h>
11
#include <stdarg.h>
12
#include "antiword.h"
13
 
14
 
15
/*
16
 * werr - write an error message and exit if needed
17
 */
18
void
19
werr(int iFatal, const char *szFormat, ...)
20
{
21
	va_list tArg;
22
 
23
	va_start(tArg, szFormat);
24
	(void)vfprintf(stderr, szFormat, tArg);
25
	va_end(tArg);
26
	fprintf(stderr, "\n");
27
	switch (iFatal) {
28
	case 0:		/* The message is just a warning, so no exit */
29
		return;
30
	case 1:		/* Fatal error with a standard exit */
31
		exit(EXIT_FAILURE);
32
	default:	/* Fatal error with a non-standard exit */
33
		exit(iFatal);
34
	}
35
} /* end of werr */
36
 
37
void
38
Hourglass_On(void)
39
{
40
} /* end of Hourglass_On */
41
 
42
void
43
Hourglass_Off(void)
44
{
45
} /* end of Hourglass_Off */