[devel] Added some whitespace in comments.
This commit is contained in:
parent
cb1aee2506
commit
b75b24103d
10
png.c
10
png.c
@ -555,13 +555,13 @@ png_get_copyright(png_const_structp png_ptr)
|
|||||||
#else
|
#else
|
||||||
# ifdef __STDC__
|
# ifdef __STDC__
|
||||||
return PNG_STRING_NEWLINE \
|
return PNG_STRING_NEWLINE \
|
||||||
"libpng version 1.5.3beta03 - April 3, 2011" PNG_STRING_NEWLINE \
|
"libpng version 1.5.3beta03 - April 17, 2011" PNG_STRING_NEWLINE \
|
||||||
"Copyright (c) 1998-2011 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \
|
"Copyright (c) 1998-2011 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \
|
||||||
"Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
|
"Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
|
||||||
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
|
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
|
||||||
PNG_STRING_NEWLINE;
|
PNG_STRING_NEWLINE;
|
||||||
# else
|
# else
|
||||||
return "libpng version 1.5.3beta03 - April 3, 2011\
|
return "libpng version 1.5.3beta03 - April 17, 2011\
|
||||||
Copyright (c) 1998-2011 Glenn Randers-Pehrson\
|
Copyright (c) 1998-2011 Glenn Randers-Pehrson\
|
||||||
Copyright (c) 1996-1997 Andreas Dilger\
|
Copyright (c) 1996-1997 Andreas Dilger\
|
||||||
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
|
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
|
||||||
@ -1102,7 +1102,7 @@ png_ascii_from_fp(png_structp png_ptr, png_charp ascii, png_size_t size,
|
|||||||
if (fp < 0)
|
if (fp < 0)
|
||||||
{
|
{
|
||||||
fp = -fp;
|
fp = -fp;
|
||||||
*ascii++ = 45; /* '-' PLUS 1 TOTAL 1*/
|
*ascii++ = 45; /* '-' PLUS 1 TOTAL 1 */
|
||||||
--size;
|
--size;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1329,7 +1329,7 @@ png_ascii_from_fp(png_structp png_ptr, png_charp ascii, png_size_t size,
|
|||||||
*/
|
*/
|
||||||
size -= cdigits;
|
size -= cdigits;
|
||||||
|
|
||||||
*ascii++ = 69, --size; /* 'E': PLUS 1 TOTAL 2+precision*/
|
*ascii++ = 69, --size; /* 'E': PLUS 1 TOTAL 2+precision */
|
||||||
if (exp_b10 < 0)
|
if (exp_b10 < 0)
|
||||||
{
|
{
|
||||||
*ascii++ = 45, --size; /* '-': PLUS 1 TOTAL 3+precision */
|
*ascii++ = 45, --size; /* '-': PLUS 1 TOTAL 3+precision */
|
||||||
@ -1401,7 +1401,7 @@ png_ascii_from_fixed(png_structp png_ptr, png_charp ascii, png_size_t size,
|
|||||||
|
|
||||||
if (num <= 0x80000000U) /* else overflowed */
|
if (num <= 0x80000000U) /* else overflowed */
|
||||||
{
|
{
|
||||||
unsigned int ndigits = 0, first = 16/*flag value*/;
|
unsigned int ndigits = 0, first = 16 /* flag value */;
|
||||||
char digits[10];
|
char digits[10];
|
||||||
|
|
||||||
while (num)
|
while (num)
|
||||||
|
@ -1288,7 +1288,7 @@ png_push_handle_tEXt(png_structp png_ptr, png_infop info_ptr, png_uint_32
|
|||||||
{
|
{
|
||||||
PNG_UNUSED(info_ptr) /* To quiet some compiler warnings */
|
PNG_UNUSED(info_ptr) /* To quiet some compiler warnings */
|
||||||
png_error(png_ptr, "Out of place tEXt");
|
png_error(png_ptr, "Out of place tEXt");
|
||||||
/*NOT REACHED*/
|
/* NOT REACHED */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PNG_MAX_MALLOC_64K
|
#ifdef PNG_MAX_MALLOC_64K
|
||||||
@ -1385,7 +1385,7 @@ png_push_handle_zTXt(png_structp png_ptr, png_infop info_ptr, png_uint_32
|
|||||||
{
|
{
|
||||||
PNG_UNUSED(info_ptr) /* To quiet some compiler warnings */
|
PNG_UNUSED(info_ptr) /* To quiet some compiler warnings */
|
||||||
png_error(png_ptr, "Out of place zTXt");
|
png_error(png_ptr, "Out of place zTXt");
|
||||||
/*NOT REACHED*/
|
/* NOT REACHED */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PNG_MAX_MALLOC_64K
|
#ifdef PNG_MAX_MALLOC_64K
|
||||||
@ -1589,7 +1589,7 @@ png_push_handle_iTXt(png_structp png_ptr, png_infop info_ptr, png_uint_32
|
|||||||
{
|
{
|
||||||
PNG_UNUSED(info_ptr) /* To quiet some compiler warnings */
|
PNG_UNUSED(info_ptr) /* To quiet some compiler warnings */
|
||||||
png_error(png_ptr, "Out of place iTXt");
|
png_error(png_ptr, "Out of place iTXt");
|
||||||
/*NOT REACHED*/
|
/* NOT REACHED */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PNG_MAX_MALLOC_64K
|
#ifdef PNG_MAX_MALLOC_64K
|
||||||
|
@ -437,8 +437,8 @@ png_decompress_chunk(png_structp png_ptr, int comp_type,
|
|||||||
png_size_t expanded_size = png_inflate(png_ptr,
|
png_size_t expanded_size = png_inflate(png_ptr,
|
||||||
(png_bytep)(png_ptr->chunkdata + prefix_size),
|
(png_bytep)(png_ptr->chunkdata + prefix_size),
|
||||||
chunklength - prefix_size,
|
chunklength - prefix_size,
|
||||||
0, /*output*/
|
0, /* output */
|
||||||
0); /*output size*/
|
0); /* output size */
|
||||||
|
|
||||||
/* Now check the limits on this chunk - if the limit fails the
|
/* Now check the limits on this chunk - if the limit fails the
|
||||||
* compressed data will be removed, the prefix will remain.
|
* compressed data will be removed, the prefix will remain.
|
||||||
|
4
pngset.c
4
pngset.c
@ -341,11 +341,11 @@ png_set_sCAL_s(png_structp png_ptr, png_infop info_ptr,
|
|||||||
png_error(png_ptr, "Invalid sCAL unit");
|
png_error(png_ptr, "Invalid sCAL unit");
|
||||||
|
|
||||||
if (swidth == NULL || (lengthw = png_strlen(swidth)) <= 0 ||
|
if (swidth == NULL || (lengthw = png_strlen(swidth)) <= 0 ||
|
||||||
swidth[0] == 45 /*'-'*/ || !png_check_fp_string(swidth, lengthw))
|
swidth[0] == 45 /* '-' */ || !png_check_fp_string(swidth, lengthw))
|
||||||
png_error(png_ptr, "Invalid sCAL width");
|
png_error(png_ptr, "Invalid sCAL width");
|
||||||
|
|
||||||
if (sheight == NULL || (lengthh = png_strlen(sheight)) <= 0 ||
|
if (sheight == NULL || (lengthh = png_strlen(sheight)) <= 0 ||
|
||||||
sheight[0] == 45 /*'-'*/ || !png_check_fp_string(sheight, lengthh))
|
sheight[0] == 45 /* '-' */ || !png_check_fp_string(sheight, lengthh))
|
||||||
png_error(png_ptr, "Invalid sCAL height");
|
png_error(png_ptr, "Invalid sCAL height");
|
||||||
|
|
||||||
info_ptr->scal_unit = (png_byte)unit;
|
info_ptr->scal_unit = (png_byte)unit;
|
||||||
|
Loading…
Reference in New Issue
Block a user