Trivial changes: whitespace and modes.

Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
This commit is contained in:
Dan Cross 2020-01-10 14:44:21 +00:00
parent 77a0a5b519
commit fa325e9b42
1021 changed files with 5688 additions and 6193 deletions

View file

@ -10,25 +10,25 @@ void splin(int mode, int num[], double *ff[]){
np = num;
fp = ff;
while((n = *np++)){
xp = *fp++;
yp = xp + 1;
xp0 = xp;
xp = *fp++;
yp = xp + 1;
xp0 = xp;
yp0 = yp;
xpe = xp0 + 2 * (n - 1);
xpe = xp0 + 2 * (n - 1);
ype = yp0 + 2 * (n - 1);
if (n < 3) {
plotline(*xp, *yp, *(xp + 2), *(yp + 2));
if (n < 3) {
plotline(*xp, *yp, *(xp + 2), *(yp + 2));
continue;
}
if (mode == 4) { /*closed curve*/
xa = 0.5 * (*xpe + *(xpe - 2));
xa = 0.5 * (*xpe + *(xpe - 2));
xc = 0.5 * (*xpe + *xp0);
ya = 0.5 * (*ype + *(ype - 2));
ya = 0.5 * (*ype + *(ype - 2));
yc = 0.5 * (*ype + *yp0);
parabola(xa, ya, xc, yc, *xpe, *ype);
xa = 0.5 * (*xpe + *xp0);
xa = 0.5 * (*xpe + *xp0);
xc = 0.5 * (*(xp0 + 2) + *xp0);
ya = 0.5 * (*ype + *yp0);
ya = 0.5 * (*ype + *yp0);
yc = 0.5 * (*(yp0 + 2) + *yp0);
parabola(xa, ya, xc, yc, *xp0, *yp0);
}
@ -36,12 +36,12 @@ void splin(int mode, int num[], double *ff[]){
if (mode % 2) /*odd mode makes first point double*/
plotline(*xp0,*yp0,0.5*(*xp0+*(xp0+2)),0.5*(*yp0+*(yp0+2)));
}
xp += 2;
xp += 2;
yp += 2;
for (i = 1; i < (n - 1); i++, xp += 2, yp += 2) {
xa = 0.5 * (*(xp - 2) + *xp);
xa = 0.5 * (*(xp - 2) + *xp);
xc = 0.5 * ( *xp + *(xp + 2));
ya = 0.5 * (*(yp - 2) + *yp);
ya = 0.5 * (*(yp - 2) + *yp);
yc = 0.5 * ( *yp + *(yp + 2));
parabola(xa, ya, xc, yc, *xp, *yp);
}