Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a pimple to our code to silence some useless warning from eclipse -- sorry
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 23 Apr 2012 15:32:30 +0000 (17:32 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 23 Apr 2012 15:32:30 +0000 (17:32 +0200)
src/jmsg.c

index f4a4a16..61d916b 100644 (file)
 
 #include "jmsg.h"
 
+/* Shut up some errors in eclipse online compiler. I wish such a pimple wouldn't be needed */
+#ifndef JNIEXPORT
+#define JNIEXPORT
+#endif
+#ifndef JNICALL
+#define JNICALL
+#endif
+/* end of eclipse-mandated pimple */
+
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
 
 static JavaVM *__java_vm = NULL;
@@ -340,7 +349,7 @@ Java_org_simgrid_msg_MsgNative_hostGetByName(JNIEnv * env, jclass cls,
 
   if (!MSG_host_get_data(host)) {       /* native host not associated yet with java host */
 
-    /* instanciate a new java host */
+    /* Instantiate a new java host */
     jhost = jhost_new_instance(env);
 
     if (!jhost) {