gfx/cairo/nonfatal-assertions.patch

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 diff -r b79d47dad1ea gfx/cairo/cairo/src/cairoint.h
michael@0 2 --- a/gfx/cairo/cairo/src/cairoint.h Fri Jun 08 18:09:53 2007 -0700
michael@0 3 +++ b/gfx/cairo/cairo/src/cairoint.h Fri Jun 29 09:18:02 2007 +0200
michael@0 4 @@ -159,6 +159,13 @@ CAIRO_BEGIN_DECLS
michael@0 5
michael@0 6 #ifndef M_PI
michael@0 7 #define M_PI 3.14159265358979323846
michael@0 8 +#endif
michael@0 9 +
michael@0 10 +#ifndef NDEBUG
michael@0 11 +#undef assert
michael@0 12 +#define assert(expr) \
michael@0 13 + do { if (!(expr)) fprintf(stderr, "Assertion failed at %s:%d: %s\n", \
michael@0 14 + __FILE__, __LINE__, #expr); } while (0)
michael@0 15 #endif
michael@0 16
michael@0 17 #undef ARRAY_LENGTH

mercurial