1 |
– |
/* Copyright (c) 1996 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* pfilt.c - program to post-process picture file. |
6 |
|
* |
16 |
|
|
17 |
|
#include "view.h" |
18 |
|
|
22 |
– |
#include "resolu.h" |
23 |
– |
|
19 |
|
#include "paths.h" |
20 |
|
|
21 |
|
extern float *matchlamp(); |
87 |
|
int argc; |
88 |
|
char **argv; |
89 |
|
{ |
90 |
< |
extern long ftell(); |
96 |
< |
extern int quit(), headline(); |
90 |
> |
extern int headline(); |
91 |
|
FILE *fin; |
92 |
|
float *lampcolor; |
93 |
|
char *lamptype = NULL; |
199 |
|
case 'm': |
200 |
|
thresh = atof(argv[++i]); |
201 |
|
if (rad <= FTINY) |
202 |
< |
rad = 1.0; |
202 |
> |
rad = 0.6; |
203 |
|
break; |
204 |
|
case 'b': |
205 |
|
rad = thresh = 0.0; |
326 |
|
double (*ourbright)() = rgb_bright; |
327 |
|
|
328 |
|
|
329 |
+ |
int |
330 |
|
headline(s) /* process line from header */ |
331 |
|
char *s; |
332 |
|
{ |
347 |
|
wrongformat = !globmatch(PICFMT, fmt); |
348 |
|
} else if (isview(s) && sscanview(&ourview, s) > 0) |
349 |
|
gotview++; |
350 |
+ |
return(0); |
351 |
|
} |
352 |
|
|
353 |
|
|
395 |
|
} |
396 |
|
pass1scan(scan, i); |
397 |
|
} |
398 |
< |
free((char *)scan); |
398 |
> |
free((void *)scan); |
399 |
|
} |
400 |
|
|
401 |
|
|
567 |
|
} |
568 |
|
|
569 |
|
|
570 |
+ |
void |
571 |
|
quit(code) /* remove temporary file and exit */ |
572 |
|
int code; |
573 |
|
{ |