Backout of jat's checkin for 78649 - win32 line endings will break some

commercial unix compilers.
This commit is contained in:
tor%cs.brown.edu 2001-06-20 00:53:26 +00:00
Родитель 83262af5d4
Коммит eda50db60b
4 изменённых файлов: 867 добавлений и 882 удалений

Просмотреть файл

@ -1283,12 +1283,10 @@ png_combine_row(png_structp png_ptr, png_bytep row, int mask)
default: // png_ptr->row_info.pixel_depth != 1,2,4,8,16,24,32,48,64 default: // png_ptr->row_info.pixel_depth != 1,2,4,8,16,24,32,48,64
{ {
// this should never happen // this should never happen
#ifdef DEBUG
fprintf(stderr, fprintf(stderr,
"libpng internal error: png_ptr->row_info.pixel_depth = %d\n", "libpng internal error: png_ptr->row_info.pixel_depth = %d\n",
png_ptr->row_info.pixel_depth); png_ptr->row_info.pixel_depth);
fflush(stderr); fflush(stderr);
#endif
break; break;
} }
} /* end switch (png_ptr->row_info.pixel_depth) */ } /* end switch (png_ptr->row_info.pixel_depth) */
@ -3032,10 +3030,8 @@ png_read_filter_row_mmx_avg(png_row_infop row_info, png_bytep row,
{ {
// GRR: PRINT ERROR HERE: SHOULD NEVER BE REACHED // GRR: PRINT ERROR HERE: SHOULD NEVER BE REACHED
#ifdef DEBUG
fprintf(stderr, fprintf(stderr,
"libpng: internal logic error (png_read_filter_row_mmx_avg())\n"); "libpng: internal logic error (png_read_filter_row_mmx_avg())\n");
#endif
#if 0 #if 0
__asm__ __volatile__ ( __asm__ __volatile__ (

Просмотреть файл

@ -429,17 +429,13 @@ il_png_error_handler(png_structp png_ptr, png_const_charp msg)
* been defined. Adapted from readpng2_error_handler() in "PNG: The * been defined. Adapted from readpng2_error_handler() in "PNG: The
* Definitive Guide" (O'Reilly, 1999). */ * Definitive Guide" (O'Reilly, 1999). */
#ifdef DEBUG
fprintf(stderr, "nspng libpng error: %s\n", msg); fprintf(stderr, "nspng libpng error: %s\n", msg);
fflush(stderr); fflush(stderr);
#endif
ipng_p = (ipng_structp)png_get_error_ptr(png_ptr); ipng_p = (ipng_structp)png_get_error_ptr(png_ptr);
if (ipng_p == NULL) { /* we are completely hosed now */ if (ipng_p == NULL) { /* we are completely hosed now */
#ifdef DEBUG
fprintf(stderr, "nspng severe error: jmpbuf not recoverable.\n"); fprintf(stderr, "nspng severe error: jmpbuf not recoverable.\n");
fflush(stderr); fflush(stderr);
#endif
PR_ASSERT(ipng_p != NULL); /* instead of exit(99); */ PR_ASSERT(ipng_p != NULL); /* instead of exit(99); */
} }

Просмотреть файл

@ -1278,7 +1278,6 @@ IL_ChromeAlphaAbuseCheck(il_container *ic)
else if (alpha[x] == 255) else if (alpha[x] == 255)
num255++; num255++;
} }
#ifdef DEBUG
if (num000+num255 == header->width*header->height) { if (num000+num255 == header->width*header->height) {
fprintf(stderr, "CHROME ALPHA ABUSE\n"); fprintf(stderr, "CHROME ALPHA ABUSE\n");
fprintf(stderr, "\tusing an 8-bit alpha channel to represent binary alpha\n"); fprintf(stderr, "\tusing an 8-bit alpha channel to represent binary alpha\n");
@ -1286,7 +1285,6 @@ IL_ChromeAlphaAbuseCheck(il_container *ic)
fprintf(stderr, "\tnum000=%d num255=%d sum=%d w*h=%d\n", fprintf(stderr, "\tnum000=%d num255=%d sum=%d w*h=%d\n",
num000, num255, num000+num255, header->width*header->height); num000, num255, num000+num255, header->width*header->height);
} }
#endif
} else if (ic->image->header.alpha_bits == 1) { } else if (ic->image->header.alpha_bits == 1) {
PRBool constAlpha=PR_TRUE; PRBool constAlpha=PR_TRUE;
@ -1311,13 +1309,12 @@ IL_ChromeAlphaAbuseCheck(il_container *ic)
constAlpha = PR_FALSE; constAlpha = PR_FALSE;
break; break;
} }
#ifdef DEBUG
if (constAlpha) { if (constAlpha) {
fprintf(stderr, "CHROME ALPHA ABUSE\n"); fprintf(stderr, "CHROME ALPHA ABUSE\n");
fprintf(stderr, "\tfully opaque 1-bit alpha mask\n"); fprintf(stderr, "\tfully opaque 1-bit alpha mask\n");
fprintf(stderr, "\t%s\n", ic->url_address); fprintf(stderr, "\t%s\n", ic->url_address);
} }
#endif
} }
} }

Просмотреть файл

@ -431,11 +431,7 @@ NS_IMETHODIMP nsJPEGDecoder::WriteFrom(nsIInputStream *inStr, PRUint32 count, PR
return NS_OK; /* I/O suspension */ return NS_OK; /* I/O suspension */
default: default:
{
#ifdef DEBUG
printf("got someo other state!?\n"); printf("got someo other state!?\n");
#endif
}
} }
} }
} }