From 6273edc2e7179a4bd1a542de69871084e1f18daa Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 14 Sep 2016 15:03:05 +0100 Subject: Add scripts to remove/replace 'static' from functions. Getting a backtrace out with missing functions makes the backtrace much less useful. Some backtrace routines (such as that used by Memento on Android) are incapable of resolving static functions. We therefore provide 2 scripts (scripts/destatic.sh and scripts/restatic.sh) that respectively remove and replace the 'static' from function definitions. The scripts do not affect "static inline" or "static const" definitions, and they are are restricted to working in the source directory (excluding source/tools), thirdparty/mujs and the platform/{java,android} directories. The transformed source should NOT be checked in. To avoid problems with clashing symbols, some functions are renamed or tweaked slightly in this patch. --- source/html/css-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/html') diff --git a/source/html/css-parse.c b/source/html/css-parse.c index e395e933..7fd8571a 100644 --- a/source/html/css-parse.c +++ b/source/html/css-parse.c @@ -165,7 +165,7 @@ static void css_lex_init(fz_context *ctx, struct lexbuf *buf, const char *s, con buf->string_len = 0; } -static int iswhite(int c) +static inline int iswhite(int c) { return c == ' ' || c == '\t' || c == '\r' || c == '\n' || c == '\f'; } -- cgit v1.2.3