[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7908: png-1.5 fix for emacs-23.2 and HEAD

From: Andreas Schwab
Subject: bug#7908: png-1.5 fix for emacs-23.2 and HEAD
Date: Sat, 29 Jan 2011 23:03:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.92 (gnu/linux)

Chong Yidong <address@hidden> writes:

> Eli Zaretskii <address@hidden> writes:
>> Does this alternate definition of PNG_JMPBUF make sense?
>> #define PNG_JMPBUF(ptr) \
>>   (*(jmp_buf *)(fn_png_set_longjmp_fn((ptr), longjmp, sizeof (jmp_buf))))
> Aha, I think it makes sense.  Since DEF_IMGLIB_FN defines a return type
> of int, whereas fn_png_set_longjmp_fn actually returns a (jmp_buf *), we
> do indeed need to perform the extra cast.

You can't expect this to work, though.


Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]