1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2025-04-21 12:27:27 +03:00

fix whitespace anomalies

/ \t/, / $/, and /\t$/
This commit is contained in:
Werner Almesberger
2012-05-28 03:11:15 -03:00
parent 4c3dea7111
commit f2d3986600
19 changed files with 29 additions and 31 deletions

6
expr.c
View File

@@ -330,7 +330,7 @@ static struct num sin_cos(const struct expr *self,
if (is_undef(res))
return undef;
if (!is_dimensionless(res)) {
fail("angle must be dimensionless");
fail("angle must be dimensionless");
return undef;
}
res.n = fn(res.n/180.0*M_PI);
@@ -358,11 +358,11 @@ struct num op_sqrt(const struct expr *self, const struct frame *frame)
if (is_undef(res))
return undef;
if (res.exponent & 1) {
fail("exponent of sqrt argument must be a multiple of two");
fail("exponent of sqrt argument must be a multiple of two");
return undef;
}
if (res.n < 0) {
fail("argument of sqrt must be positive");
fail("argument of sqrt must be positive");
return undef;
}
res.n = sqrt(res.n);