diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Program/gnome/library/gnome_stats.c')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Program/gnome/library/gnome_stats.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/library/gnome_stats.c b/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/library/gnome_stats.c index ca36b97f22..cef7ac33a9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/library/gnome_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/library/gnome_stats.c @@ -18,8 +18,6 @@ #ifdef NATIVE_STATS -int GNOME_nativeFunctionCount = 20; -int GNOME_nativeFunctionCallCount[20]; char * GNOME_nativeFunctionNames[] = { "GnomeVFSMimeApplication_1sizeof", "_1gnome_1icon_1lookup", @@ -42,6 +40,9 @@ char * GNOME_nativeFunctionNames[] = { "_1gnome_1vfs_1url_1show", "memmove", }; +#define NATIVE_FUNCTION_COUNT sizeof(GNOME_nativeFunctionNames) / sizeof(char*) +int GNOME_nativeFunctionCount = NATIVE_FUNCTION_COUNT; +int GNOME_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT]; #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func |