| 1 |
– |
/* Copyright (c) 1991 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 |
|
* Compute Glare Index given by program name or -t option: |
| 6 |
|
* |
| 22 |
|
#include "standard.h" |
| 23 |
|
#include "view.h" |
| 24 |
|
|
| 28 |
– |
extern double erfc(); |
| 25 |
|
|
| 26 |
|
double posindex(); |
| 27 |
|
|
| 124 |
|
} |
| 125 |
|
|
| 126 |
|
|
| 127 |
+ |
int |
| 128 |
|
headline(s) /* get line from header */ |
| 129 |
|
char *s; |
| 130 |
|
{ |
| 138 |
|
formatval(fmt, s); |
| 139 |
|
wrongformat = strcmp(fmt, "ascii"); |
| 140 |
|
} |
| 141 |
+ |
return(0); |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
|
| 405 |
|
} |
| 406 |
|
|
| 407 |
|
|
| 410 |
– |
extern double erf(), erfc(); |
| 411 |
– |
|
| 408 |
|
#ifndef M_SQRT2 |
| 409 |
|
#define M_SQRT2 1.41421356237309504880 |
| 410 |
|
#endif |
| 416 |
|
guth_vcp(gd) /* compute Guth visual comfort probability */ |
| 417 |
|
struct glare_dir *gd; |
| 418 |
|
{ |
| 419 |
+ |
extern double erfc(); |
| 420 |
|
double dgr; |
| 421 |
|
|
| 422 |
|
dgr = guth_dgr(gd); |