1 |
|
#ifndef lint |
2 |
< |
static const char RCSid[] = "$Id$"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
4 |
|
/* |
5 |
|
* pfilt.c - program to post-process picture file. |
8 |
|
* 6/23/93 Added additional buffers for value spreading |
9 |
|
*/ |
10 |
|
|
11 |
– |
#include "standard.h" |
12 |
– |
|
11 |
|
#include <signal.h> |
12 |
|
|
13 |
+ |
#include "standard.h" |
14 |
|
#include "color.h" |
16 |
– |
|
15 |
|
#include "view.h" |
18 |
– |
|
16 |
|
#include "paths.h" |
17 |
|
|
18 |
|
extern float *matchlamp(); |
19 |
|
|
20 |
|
#define FEQ(a,b) ((a) >= .98*(b) && (a) <= 1.02*(b)) |
21 |
|
|
22 |
< |
double CHECKRAD = 1.5; /* radius to check for filtering */ |
22 |
> |
double CHECKRAD = 2.0; /* radius to check for filtering */ |
23 |
|
|
24 |
|
#define THRESHRAD 5.0 /* maximum sample spread in output */ |
25 |
|
|
92 |
|
double outaspect = 0.0; |
93 |
|
double d; |
94 |
|
int i, j; |
95 |
< |
#ifdef MSDOS |
96 |
< |
extern int _fmode; |
97 |
< |
_fmode = O_BINARY; |
101 |
< |
setmode(fileno(stdin), O_BINARY); |
102 |
< |
setmode(fileno(stdout), O_BINARY); |
103 |
< |
#endif |
95 |
> |
SET_DEFAULT_BINARY(); |
96 |
> |
SET_FILE_BINARY(stdin); |
97 |
> |
SET_FILE_BINARY(stdout); |
98 |
|
if (signal(SIGINT, quit) == SIG_IGN) |
99 |
|
signal(SIGINT, SIG_IGN); |
100 |
|
if (signal(SIGHUP, quit) == SIG_IGN) |