Commit Graph

11 Commits

Author SHA1 Message Date
Glenn Randers-Pehrson
73e28ef13d [devel] Reverted changes to call png_longjmp in contrib/gregbook
where it is not appropriate.  If mainprog->jmpbuf is used by setjmp,
then png_longjmp cannot be used.
Reversed patch to remove error handler when the jmp_buf is stored in the
main program structure, not the png_struct.
The error handler is needed because the default handler in libpng will
always use the jmp_buf in the library control structure; this is never
set.  The gregbook code is a useful example because, even though it
uses setjmp/longjmp, it shows how error handling can be implemented
using control mechanisms not directly supported by libpng.  The
technique will work correctly with mechanisms such as Microsoft
Structure Exceptions or C++ exceptions (compiler willing - note that gcc
does not by default support interworking of C and C++ error handling.)
2010-06-28 20:19:57 -05:00
Glenn Randers-Pehrson
65a223794a [devel] Bump to version libpng-1.5.0beta11 2010-03-03 05:39:36 -06:00
Glenn Randers-Pehrson
d259e6c570 [devel] Revised png_longjmp() calls in contrib/gregbook to use png_ptr 2010-02-21 23:36:35 -06:00
Glenn Randers-Pehrson
f98726ae98 [devel] Added exported png_longjmp() function. 2010-02-19 09:54:53 -06:00
Glenn Randers-Pehrson
eb58091392 Imported from libpng-1.4.0beta25.tar 2009-04-06 16:10:05 -05:00
Glenn Randers-Pehrson
520a764cd7 Imported from libpng-1.0.6.tar 2009-04-06 16:04:52 -05:00
Glenn Randers-Pehrson
a77ef625a6 Imported from libpng-1.0.5s.tar 2009-04-06 16:04:50 -05:00
Glenn Randers-Pehrson
166c5a397e Imported from libpng-1.0.5h.tar 2009-04-06 16:04:47 -05:00
Glenn Randers-Pehrson
860ab2b1c0 Imported from libpng-1.0.5.tar 2009-04-06 16:04:42 -05:00
Glenn Randers-Pehrson
ad5dd1f0fb Imported from libpng-1.0.5-pre1.tar 2009-04-06 16:04:41 -05:00
Glenn Randers-Pehrson
33b25bf1a8 Imported from libpng-1.0.4f.tar 2009-04-06 16:04:40 -05:00