13 |
|
#define _USE_MATH_DEFINES |
14 |
|
#include <stdio.h> |
15 |
|
#include <stdlib.h> |
16 |
+ |
#include <string.h> |
17 |
|
#include <math.h> |
18 |
+ |
#include <ctype.h> |
19 |
|
#include "ezxml.h" |
20 |
|
#include "hilbert.h" |
21 |
|
#include "bsdf.h" |
109 |
|
if ((geom = ezxml_child(wdb, "Geometry")) == NULL || |
110 |
|
(mgfstr = ezxml_txt(geom)) == NULL) |
111 |
|
return SDEnone; |
112 |
+ |
while (isspace(*mgfstr)) |
113 |
+ |
++mgfstr; |
114 |
+ |
if (!*mgfstr) |
115 |
+ |
return SDEnone; |
116 |
|
if ((fmt = ezxml_attr(geom, "format")) != NULL && |
117 |
|
strcasecmp(fmt, "MGF")) { |
118 |
|
sprintf(SDerrorDetail, |
814 |
|
|
815 |
|
#include "standard.h" |
816 |
|
#include "paths.h" |
811 |
– |
#include <ctype.h> |
817 |
|
|
818 |
|
#define MAXLATS 46 /* maximum number of latitudes */ |
819 |
|
|
933 |
|
{ |
934 |
|
ANGLE_BASIS *ab = (ANGLE_BASIS *)p; |
935 |
|
int li, ndx; |
936 |
< |
double pol, azi, d; |
936 |
> |
double pol, azi; |
937 |
|
|
938 |
|
if ((v[2] < -1.0) | (v[2] > 1.0)) |
939 |
|
return(-1); |
1173 |
|
) |
1174 |
|
{ |
1175 |
|
double *omega_iarr, *omega_oarr; |
1176 |
< |
double dom, contrib, hemi_total, full_total; |
1176 |
> |
double dom, hemi_total, full_total; |
1177 |
|
int nneg; |
1178 |
|
FVECT v; |
1179 |
|
int i, o; |