Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2012-09-17 21:21:30 +0000
committerSilenio Quarti2012-09-17 21:21:30 +0000
commit45ebb6f2bb21bad85e6e72f4a7314b8748844909 (patch)
tree2a5ec73a95d4319166f20189659bc637567ad777 /bundles/org.eclipse.swt/Eclipse SWT WebKit
parent26a93997742e3fbea259c9c103559f5ff6796c72 (diff)
downloadeclipse.platform.swt-45ebb6f2bb21bad85e6e72f4a7314b8748844909.tar.gz
eclipse.platform.swt-45ebb6f2bb21bad85e6e72f4a7314b8748844909.tar.xz
eclipse.platform.swt-45ebb6f2bb21bad85e6e72f4a7314b8748844909.zip
do not generate function count to avoid patch conflicts
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT WebKit')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/win32/library/webkit_win32_stats.cpp5
2 files changed, 6 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c
index 6a0c3fcd2f..c0d22658fc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_stats.c
@@ -18,8 +18,6 @@
#ifdef NATIVE_STATS
-int WebKitGTK_nativeFunctionCount = 113;
-int WebKitGTK_nativeFunctionCallCount[113];
char * WebKitGTK_nativeFunctionNames[] = {
"JSClassDefinition_1sizeof",
"_1JSClassCreate",
@@ -135,6 +133,9 @@ char * WebKitGTK_nativeFunctionNames[] = {
"_1webkit_1web_1view_1stop_1loading",
"memmove",
};
+#define NATIVE_FUNCTION_COUNT sizeof(WebKitGTK_nativeFunctionNames) / sizeof(char*)
+int WebKitGTK_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
+int WebKitGTK_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];
#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/win32/library/webkit_win32_stats.cpp b/bundles/org.eclipse.swt/Eclipse SWT WebKit/win32/library/webkit_win32_stats.cpp
index 071ae7f66b..d8a7edfa76 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/win32/library/webkit_win32_stats.cpp
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/win32/library/webkit_win32_stats.cpp
@@ -18,8 +18,6 @@
#ifdef NATIVE_STATS
-int WebKit_win32_nativeFunctionCount = 60;
-int WebKit_win32_nativeFunctionCallCount[60];
char * WebKit_win32_nativeFunctionNames[] = {
"CFArrayGetCount",
"CFArrayGetValueAtIndex",
@@ -82,6 +80,9 @@ char * WebKit_win32_nativeFunctionNames[] = {
"memmove",
"willPerformClientRedirectToURL_1CALLBACK",
};
+#define NATIVE_FUNCTION_COUNT sizeof(WebKit_win32_nativeFunctionNames) / sizeof(char*)
+int WebKit_win32_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
+int WebKit_win32_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];
#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func

Back to the top