improve readability of stdlib: fix indentation and remove trailing spaces

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>

Change-Id: I7dd90a0816b5376ffc1de4499d56935e0bd574a1
This commit is contained in:
André Goddard Rosa 2010-02-05 18:32:52 -02:00 committed by Jean-Baptiste Queru
parent 1698d9ebfc
commit e734769276
11 changed files with 230 additions and 232 deletions

View File

@ -53,7 +53,7 @@ const char _C_ctype_[1 + CTYPE_NUM_CHARS] = {
_P, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L, _P, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L|_X, _L,
_L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L,
_L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L, _L,
/* determine printability based on the IS0 8859 8-bit standard */ /* determine printability based on the IS0 8859 8-bit standard */
_L, _L, _L, _P, _P, _P, _P, _C, _L, _L, _L, _P, _P, _P, _P, _C,
_C, _C, _C, _C, _C, _C, _C, _C, /* 80 */ _C, _C, _C, _C, _C, _C, _C, _C, /* 80 */

View File

@ -157,5 +157,5 @@ loop: SWAPINIT(a, es);
n = r / es; n = r / es;
goto loop; goto loop;
} }
/* qsort(pn - r, r / es, es, cmp);*/ /* qsort(pn - r, r / es, es, cmp); */
} }

View File

@ -238,8 +238,7 @@ unsigned char finalcount[8];
while ((context->count[0] & 504) != 448) { while ((context->count[0] & 504) != 448) {
SHA1Update(context, (unsigned char *)"\0", 1); SHA1Update(context, (unsigned char *)"\0", 1);
} }
SHA1Update(context, finalcount, 8); /* Should cause a SHA1Transform() SHA1Update(context, finalcount, 8); /* Should cause a SHA1Transform() */
*/
for (i = 0; i < 20; i++) { for (i = 0; i < 20; i++) {
digest[i] = (unsigned char) digest[i] = (unsigned char)
((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255); ((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255);

View File

@ -364,7 +364,7 @@ Bigint {
struct Bigint *next; struct Bigint *next;
int k, maxwds, sign, wds; int k, maxwds, sign, wds;
ULong x[1]; ULong x[1];
}; };
typedef struct Bigint Bigint; typedef struct Bigint Bigint;
@ -405,7 +405,7 @@ Balloc
mutex_unlock(&freelist_mutex); mutex_unlock(&freelist_mutex);
return rv; return rv;
} }
static void static void
Bfree Bfree
@ -423,7 +423,7 @@ Bfree
mutex_unlock(&freelist_mutex); mutex_unlock(&freelist_mutex);
} }
} }
#define Bcopy(x,y) memcpy(&x->sign, &y->sign, \ #define Bcopy(x,y) memcpy(&x->sign, &y->sign, \
y->wds*sizeof(Long) + 2*sizeof(int)) y->wds*sizeof(Long) + 2*sizeof(int))
@ -471,7 +471,7 @@ multadd
b->wds = wds; b->wds = wds;
} }
return b; return b;
} }
static Bigint * static Bigint *
s2b s2b
@ -509,7 +509,7 @@ s2b
for(; i < nd; i++) for(; i < nd; i++)
b = multadd(b, 10, *s++ - '0'); b = multadd(b, 10, *s++ - '0');
return b; return b;
} }
static int static int
hi0bits hi0bits
@ -543,7 +543,7 @@ hi0bits
return 32; return 32;
} }
return k; return k;
} }
static int static int
lo0bits lo0bits
@ -591,7 +591,7 @@ lo0bits
} }
*y = x; *y = x;
return k; return k;
} }
static Bigint * static Bigint *
i2b i2b
@ -607,7 +607,7 @@ i2b
b->x[0] = i; b->x[0] = i;
b->wds = 1; b->wds = 1;
return b; return b;
} }
static Bigint * static Bigint *
mult mult
@ -695,7 +695,7 @@ mult
for(xc0 = c->x, xc = xc0 + wc; wc > 0 && !*--xc; --wc) ; for(xc0 = c->x, xc = xc0 + wc; wc > 0 && !*--xc; --wc) ;
c->wds = wc; c->wds = wc;
return c; return c;
} }
static Bigint *p5s; static Bigint *p5s;
@ -736,7 +736,7 @@ pow5mult
p5 = p51; p5 = p51;
} }
return b; return b;
} }
static Bigint * static Bigint *
lshift lshift
@ -796,7 +796,7 @@ lshift
b1->wds = n1 - 1; b1->wds = n1 - 1;
Bfree(b); Bfree(b);
return b1; return b1;
} }
static int static int
cmp cmp
@ -830,7 +830,7 @@ cmp
break; break;
} }
return 0; return 0;
} }
static Bigint * static Bigint *
diff diff
@ -912,7 +912,7 @@ diff
wa--; wa--;
c->wds = wa; c->wds = wa;
return c; return c;
} }
static double static double
ulp ulp
@ -952,7 +952,7 @@ ulp
} }
#endif #endif
return value(a); return value(a);
} }
static double static double
b2d b2d
@ -1022,7 +1022,7 @@ b2d
#undef d1 #undef d1
#endif #endif
return value(d); return value(d);
} }
static Bigint * static Bigint *
d2b d2b
@ -1154,7 +1154,7 @@ d2b
} }
#endif #endif
return b; return b;
} }
#undef d0 #undef d0
#undef d1 #undef d1
@ -1197,7 +1197,7 @@ ratio
} }
#endif #endif
return value(da) / value(db); return value(da) / value(db);
} }
static CONST double static CONST double
tens[] = { tens[] = {
@ -1207,7 +1207,7 @@ tens[] = {
#ifdef VAX #ifdef VAX
, 1e23, 1e24 , 1e23, 1e24
#endif #endif
}; };
#ifdef IEEE_Arith #ifdef IEEE_Arith
static CONST double bigtens[] = { 1e16, 1e32, 1e64, 1e128, 1e256 }; static CONST double bigtens[] = { 1e16, 1e32, 1e64, 1e128, 1e256 };
@ -1498,7 +1498,6 @@ strtod
else else
word0(rv) += P*Exp_msk1; word0(rv) += P*Exp_msk1;
} }
} }
} }
else if (e1 < 0) { else if (e1 < 0) {
@ -1802,7 +1801,7 @@ strtod
/* LINTED interface specification */ /* LINTED interface specification */
*se = (char *)s; *se = (char *)s;
return sign ? -value(rv) : value(rv); return sign ? -value(rv) : value(rv);
} }
static int static int
quorem quorem
@ -1908,7 +1907,7 @@ quorem
} }
} }
return q; return q;
} }
/* freedtoa(s) must be used to free values s returned by dtoa /* freedtoa(s) must be used to free values s returned by dtoa
* when MULTIPLE_THREADS is #defined. It should be used in all cases, * when MULTIPLE_THREADS is #defined. It should be used in all cases,
@ -2584,7 +2583,7 @@ __dtoa
if (rve) if (rve)
*rve = s; *rve = s;
return s0; return s0;
} }
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif