aboutsummaryrefslogtreecommitdiff
path: root/pnginfo.h
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-06-28 20:17:48 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-06-28 20:19:57 -0500
commit73e28ef13db95d372c5e1ad09cec5d4236854d7f (patch)
treeec9f75afcaa6c6cbb78086ca520fd4fce136ef87 /pnginfo.h
parent6cac43c974806cf5823eccc754f42d68b4a55b42 (diff)
downloadlibpng-73e28ef13db95d372c5e1ad09cec5d4236854d7f.tar.gz
[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.)
Diffstat (limited to 'pnginfo.h')
0 files changed, 0 insertions, 0 deletions