]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/JORTEDomainPropSet.c
Reformat the sources with orte/uncrustify script
[orte.git] / orte / libjorte / JORTEDomainPropSet.c
index fe6abd80255c8592116a7221e520360c58ff6e44..f9459327434e107fd9f7bdf52b70741a64008067 100644 (file)
@@ -5,45 +5,46 @@
 
 #include "jorte/org_ocera_orte_types_DomainProp.h"
 
-  JNIEXPORT jboolean JNICALL Java_org_ocera_orte_types_DomainProp_jORTEDomainPropSet
-  (
-   JNIEnv *env,
-   jobject obj,
-   jlong propshandle,        //ORTEDomainProp handle
-   jstring mgrs              //Managers
-  )
-  {
-    const char     *str = NULL;
-    //
-    int flag_ok = 0;
-
-    ORTEDomainProp *dp = NULL;
+JNIEXPORT jboolean JNICALL
+Java_org_ocera_orte_types_DomainProp_jORTEDomainPropSet
+(
+  JNIEnv *env,
+  jobject obj,
+  jlong propshandle,         //ORTEDomainProp handle
+  jstring mgrs               //Managers
+)
+{
+  const char     *str = NULL;
+  //
+  int flag_ok = 0;
+
+  ORTEDomainProp *dp = NULL;
 
     #ifdef TEST_STAGE
-      printf(":c: jORTEDomainPropSet() called.. \n");
+  printf(":c: jORTEDomainPropSet() called.. \n");
     #endif
 
-    do {
-      dp = (ORTEDomainProp *) propshandle;
-      if(dp == 0) {
-        #ifdef TEST_STAGE
-          printf(":!c: *dp = NULL \n");
-        #endif
-        break;
-      }
-
-      //call ReleaseStringUTFChars from destructor !!
-      str = (*env)->GetStringUTFChars(env,mgrs,0);
-      
-      //set managers
-      dp->mgrs=(char *)str;
-
-      flag_ok = 1;
-    } while (0);
-
-    if(flag_ok) {
-      return  ORTE_TRUE;
+  do {
+    dp = (ORTEDomainProp *)propshandle;
+    if (dp == 0) {
+       #ifdef TEST_STAGE
+      printf(":!c: *dp = NULL \n");
+       #endif
+      break;
     }
 
-    return ORTE_FALSE;
-  }
\ No newline at end of file
+    //call ReleaseStringUTFChars from destructor !!
+    str = (*env)->GetStringUTFChars(env, mgrs, 0);
+
+    //set managers
+    dp->mgrs = (char *)str;
+
+    flag_ok = 1;
+  } while (0);
+
+  if (flag_ok) {
+    return ORTE_TRUE;
+  }
+
+  return ORTE_FALSE;
+}