mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[libpng16] Changed tabs to 3 spaces in png_debug macros and changed '"%s"m'
to '"%s" m' to improve portability among compilers. Changed png_free_default() to free() in pngtest.c
This commit is contained in:
		
							parent
							
								
									44db02364e
								
							
						
					
					
						commit
						1f63da349b
					
				
							
								
								
									
										8
									
								
								ANNOUNCE
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								ANNOUNCE
									
									
									
									
									
								
							@ -1,5 +1,5 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Libpng 1.6.8beta02 - November 25, 2013
 | 
					Libpng 1.6.8beta02 - November 28, 2013
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This is not intended to be a public release.  It will be replaced
 | 
					This is not intended to be a public release.  It will be replaced
 | 
				
			||||||
within a few weeks by a public version or by another test version.
 | 
					within a few weeks by a public version or by another test version.
 | 
				
			||||||
@ -26,7 +26,7 @@ Other information:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Changes since the last public release (1.6.7):
 | 
					Changes since the last public release (1.6.7):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Version 1.6.8beta01 [November 25, 2013]
 | 
					Version 1.6.8beta01 [November 28, 2013]
 | 
				
			||||||
  Changed #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED in pngpread.c to
 | 
					  Changed #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED in pngpread.c to
 | 
				
			||||||
    #ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED to be consistent with
 | 
					    #ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED to be consistent with
 | 
				
			||||||
    what is in pngpriv.h.
 | 
					    what is in pngpriv.h.
 | 
				
			||||||
@ -44,9 +44,11 @@ Version 1.6.8beta01 [November 25, 2013]
 | 
				
			|||||||
    This reverts to the previous 'static' implementation and works round
 | 
					    This reverts to the previous 'static' implementation and works round
 | 
				
			||||||
    the 'unused static function' warning by using PNG_UNUSED().
 | 
					    the 'unused static function' warning by using PNG_UNUSED().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Version 1.6.8beta02 [November 25, 2013]
 | 
					Version 1.6.8beta02 [November 28, 2013]
 | 
				
			||||||
  Removed or marked PNG_UNUSED some harmless "dead assignments" reported
 | 
					  Removed or marked PNG_UNUSED some harmless "dead assignments" reported
 | 
				
			||||||
    by clang scan-build.
 | 
					    by clang scan-build.
 | 
				
			||||||
 | 
					  Changed tabs to 3 spaces in png_debug macros and changed '"%s"m' to '"%s" m'
 | 
				
			||||||
 | 
					  Changed png_free_default() to free() in pngtest.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 | 
					Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 | 
				
			||||||
(subscription required; visit
 | 
					(subscription required; visit
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								CHANGES
									
									
									
									
									
								
							@ -4730,9 +4730,11 @@ Version 1.6.8beta01 [November 24, 2013]
 | 
				
			|||||||
    This reverts to the previous 'static' implementation and works round
 | 
					    This reverts to the previous 'static' implementation and works round
 | 
				
			||||||
    the 'unused static function' warning by using PNG_UNUSED().
 | 
					    the 'unused static function' warning by using PNG_UNUSED().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Version 1.6.8beta02 [November 25, 2013]
 | 
					Version 1.6.8beta02 [November 28, 2013]
 | 
				
			||||||
  Removed or marked PNG_UNUSED some harmless "dead assignments" reported
 | 
					  Removed or marked PNG_UNUSED some harmless "dead assignments" reported
 | 
				
			||||||
    by clang scan-build.
 | 
					    by clang scan-build.
 | 
				
			||||||
 | 
					  Changed tabs to 3 spaces in png_debug macros and changed '"%s"m' to '"%s" m'
 | 
				
			||||||
 | 
					  Changed png_free_default() to free() in pngtest.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 | 
					Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 | 
				
			||||||
(subscription required; visit
 | 
					(subscription required; visit
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										19
									
								
								pngdebug.h
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								pngdebug.h
									
									
									
									
									
								
							@ -1,11 +1,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* pngdebug.h - Debugging macros for libpng, also used in pngtest.c
 | 
					/* pngdebug.h - Debugging macros for libpng, also used in pngtest.c
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Copyright (c) 1998-2011 Glenn Randers-Pehrson
 | 
					 * Copyright (c) 1998-2013 Glenn Randers-Pehrson
 | 
				
			||||||
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
					 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
 | 
				
			||||||
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
					 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Last changed in libpng 1.5.0 [January 6, 2011]
 | 
					 * Last changed in libpng 1.6.8 [(PENDING RELEASE)]
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * This code is released under the libpng license.
 | 
					 * This code is released under the libpng license.
 | 
				
			||||||
 * For conditions of distribution and use, see the disclaimer
 | 
					 * For conditions of distribution and use, see the disclaimer
 | 
				
			||||||
@ -77,32 +77,29 @@
 | 
				
			|||||||
#      endif /* PNG_DEBUG_FILE */
 | 
					#      endif /* PNG_DEBUG_FILE */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#      if (PNG_DEBUG > 1)
 | 
					#      if (PNG_DEBUG > 1)
 | 
				
			||||||
/* Note: ["%s"m PNG_STRING_NEWLINE] probably does not work on
 | 
					 | 
				
			||||||
 * non-ISO compilers
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
#        ifdef __STDC__
 | 
					#        ifdef __STDC__
 | 
				
			||||||
#          ifndef png_debug
 | 
					#          ifndef png_debug
 | 
				
			||||||
#            define png_debug(l,m) \
 | 
					#            define png_debug(l,m) \
 | 
				
			||||||
       do { \
 | 
					       do { \
 | 
				
			||||||
       int num_tabs=l; \
 | 
					       int num_tabs=l; \
 | 
				
			||||||
       fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
 | 
					       fprintf(PNG_DEBUG_FILE,"%s" m PNG_STRING_NEWLINE,(num_tabs==1 ? "   " : \
 | 
				
			||||||
         (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":"")))); \
 | 
					         (num_tabs==2 ? "      " : (num_tabs>2 ? "         " : "")))); \
 | 
				
			||||||
       } while (0)
 | 
					       } while (0)
 | 
				
			||||||
#          endif
 | 
					#          endif
 | 
				
			||||||
#          ifndef png_debug1
 | 
					#          ifndef png_debug1
 | 
				
			||||||
#            define png_debug1(l,m,p1) \
 | 
					#            define png_debug1(l,m,p1) \
 | 
				
			||||||
       do { \
 | 
					       do { \
 | 
				
			||||||
       int num_tabs=l; \
 | 
					       int num_tabs=l; \
 | 
				
			||||||
       fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
 | 
					       fprintf(PNG_DEBUG_FILE,"%s" m PNG_STRING_NEWLINE,(num_tabs==1 ? "   " : \
 | 
				
			||||||
         (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1); \
 | 
					         (num_tabs==2 ? "      " : (num_tabs>2 ? "         " : ""))),p1); \
 | 
				
			||||||
       } while (0)
 | 
					       } while (0)
 | 
				
			||||||
#          endif
 | 
					#          endif
 | 
				
			||||||
#          ifndef png_debug2
 | 
					#          ifndef png_debug2
 | 
				
			||||||
#            define png_debug2(l,m,p1,p2) \
 | 
					#            define png_debug2(l,m,p1,p2) \
 | 
				
			||||||
       do { \
 | 
					       do { \
 | 
				
			||||||
       int num_tabs=l; \
 | 
					       int num_tabs=l; \
 | 
				
			||||||
       fprintf(PNG_DEBUG_FILE,"%s"m PNG_STRING_NEWLINE,(num_tabs==1 ? "\t" : \
 | 
					       fprintf(PNG_DEBUG_FILE,"%s" m PNG_STRING_NEWLINE,(num_tabs==1 ? "   " : \
 | 
				
			||||||
         (num_tabs==2 ? "\t\t":(num_tabs>2 ? "\t\t\t":""))),p1,p2); \
 | 
					         (num_tabs==2 ? "      " : (num_tabs>2 ? "         " : ""))),p1,p2);\
 | 
				
			||||||
       } while (0)
 | 
					       } while (0)
 | 
				
			||||||
#          endif
 | 
					#          endif
 | 
				
			||||||
#        else /* __STDC __ */
 | 
					#        else /* __STDC __ */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user