aboutsummaryrefslogtreecommitdiff
path: root/dep/src/zlib/inflate.c
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-17 16:20:24 -0700
committermaximius <none@none>2009-10-17 16:20:24 -0700
commit3f338cc1c328c7280957583b50598292cd8fb64b (patch)
treeca209c2cd024e3902b7844b3224bceff7c5bb570 /dep/src/zlib/inflate.c
parente585187b248f48b3c6e9247b49fa07c6565d65e5 (diff)
*Massive cleanup redux.
--HG-- branch : trunk
Diffstat (limited to 'dep/src/zlib/inflate.c')
-rw-r--r--dep/src/zlib/inflate.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/dep/src/zlib/inflate.c b/dep/src/zlib/inflate.c
index 792fdee8e9c..6b7a57e747c 100644
--- a/dep/src/zlib/inflate.c
+++ b/dep/src/zlib/inflate.c
@@ -62,7 +62,7 @@
* 1.2.beta6 4 Jan 2003
* - Added comments in inffast.c on effectiveness of POSTINC
* - Typecasting all around to reduce compiler warnings
- * - Changed loops from while (1) or do {} while (1) to for (;;), again to
+ * - Changed loops from while (1) or do {} while (1) to for (; ; ), again to
* make compilers happy
* - Changed type of window in inflateBackInit() to unsigned char *
*
@@ -284,7 +284,7 @@ void makefixed()
size = 1U << 9;
printf(" static const code lenfix[%u] = {", size);
low = 0;
- for (;;) {
+ for (; ; ) {
if ((low % 7) == 0) printf("\n ");
printf("{%u,%u,%d}", state.lencode[low].op, state.lencode[low].bits,
state.lencode[low].val);
@@ -295,7 +295,7 @@ void makefixed()
size = 1U << 5;
printf("\n static const code distfix[%u] = {", size);
low = 0;
- for (;;) {
+ for (; ; ) {
if ((low % 6) == 0) printf("\n ");
printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
state.distcode[low].val);
@@ -474,7 +474,7 @@ unsigned out;
much output data as possible before returning. The state machine is
structured roughly as follows:
- for (;;) switch (state) {
+ for (; ; ) switch (state) {
...
case STATEn:
if (not enough input data or output space to make progress)
@@ -584,7 +584,7 @@ int flush;
in = have;
out = left;
ret = Z_OK;
- for (;;)
+ for (; ; )
switch (state->mode) {
case HEAD:
if (state->wrap == 0) {
@@ -875,7 +875,7 @@ int flush;
state->mode = CODELENS;
case CODELENS:
while (state->have < state->nlen + state->ndist) {
- for (;;) {
+ for (; ; ) {
this = state->lencode[BITS(state->lenbits)];
if ((unsigned)(this.bits) <= bits) break;
PULLBYTE();
@@ -954,14 +954,14 @@ int flush;
LOAD();
break;
}
- for (;;) {
+ for (; ; ) {
this = state->lencode[BITS(state->lenbits)];
if ((unsigned)(this.bits) <= bits) break;
PULLBYTE();
}
if (this.op && (this.op & 0xf0) == 0) {
last = this;
- for (;;) {
+ for (; ; ) {
this = state->lencode[last.val +
(BITS(last.bits + last.op) >> last.bits)];
if ((unsigned)(last.bits + this.bits) <= bits) break;
@@ -999,14 +999,14 @@ int flush;
Tracevv((stderr, "inflate: length %u\n", state->length));
state->mode = DIST;
case DIST:
- for (;;) {
+ for (; ; ) {
this = state->distcode[BITS(state->distbits)];
if ((unsigned)(this.bits) <= bits) break;
PULLBYTE();
}
if ((this.op & 0xf0) == 0) {
last = this;
- for (;;) {
+ for (; ; ) {
this = state->distcode[last.val +
(BITS(last.bits + last.op) >> last.bits)];
if ((unsigned)(last.bits + this.bits) <= bits) break;