Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2001-09-12 17:21:51 -0400
committerCarolyn MacLeod2001-09-12 17:21:51 -0400
commit4618dd93d85e017ebc2becacaddc235af02598d4 (patch)
tree55807cbc1b50826509da3529fb36d15fa94a1ef4 /bundles/org.eclipse.swt/Eclipse SWT
parentbdd24f2fa4720ba4dbe7eb13cb597c4248d72906 (diff)
downloadeclipse.platform.swt-4618dd93d85e017ebc2becacaddc235af02598d4.tar.gz
eclipse.platform.swt-4618dd93d85e017ebc2becacaddc235af02598d4.tar.xz
eclipse.platform.swt-4618dd93d85e017ebc2becacaddc235af02598d4.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c b/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c
index d1bdfd6013..d1414df355 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c
@@ -236,9 +236,8 @@ JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_Callback_getEnabled
int callback(int index, ...)
{
- if (!CallbacksEnabled) {
- return 0;
- } else {
+ if (!CallbacksEnabled) return 0;
+
DECL_GLOB(pGlob)
jobject callback = PGLOB(dllCallbackInfo)[index].callin;
JNIEnv *env = PGLOB(dllCallbackInfo)[index].env;
@@ -302,7 +301,6 @@ int callback(int index, ...)
fprintf(stderr, "* callback exiting %d\n", --PGLOB(counter));
#endif
return result;
- }
}
/*

Back to the top