[kaffe] CVS kaffe (guilhem): Fix for JNI invokation API.
Kaffe CVS
cvs-commits at kaffe.org
Sun Dec 12 13:20:36 PST 2004
PatchSet 5630
Date: 2004/12/12 21:16:00
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
Fix for JNI invokation API.
* kaffe/kaffevm/jni/jni-base.c
(KaffeJNI_ParseArgs): Fixed parsing of the '-D' option.
Members:
ChangeLog:1.3175->1.3176
kaffe/kaffevm/jni/jni-base.c:1.7->1.8
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3175 kaffe/ChangeLog:1.3176
--- kaffe/ChangeLog:1.3175 Sun Dec 12 18:52:27 2004
+++ kaffe/ChangeLog Sun Dec 12 21:16:00 2004
@@ -1,3 +1,8 @@
+2004-12-12 Guilhem Lavaux <guilhem at kaffe.org>
+
+ * kaffe/kaffevm/jni/jni-base.c
+ (KaffeJNI_ParseArgs): Fixed parsing of the '-D' option.
+
2004-12-12 Dalibor Topic <robilad at kaffe.org>
* kaffe/kaffevm/kaffe-gc/Makefile.am (AM_CPPFLAGS):
Index: kaffe/kaffe/kaffevm/jni/jni-base.c
diff -u kaffe/kaffe/kaffevm/jni/jni-base.c:1.7 kaffe/kaffe/kaffevm/jni/jni-base.c:1.8
--- kaffe/kaffe/kaffevm/jni/jni-base.c:1.7 Fri Jul 9 15:44:29 2004
+++ kaffe/kaffe/kaffevm/jni/jni-base.c Sun Dec 12 21:16:02 2004
@@ -112,20 +112,23 @@
{
userProperty *prop = (userProperty *)malloc(sizeof(userProperty));
int sz;
- char *internalOpt = strdup(opt);
+ char *internalOpt = strdup(&opt[2]);
assert (prop != 0);
prop->next = userProperties;
userProperties = prop;
- for (sz = 2; internalOpt[sz] != 0; sz++)
+ for (sz = 0; internalOpt[sz] != 0; sz++)
{
- internalOpt[sz] = 0;
- sz++;
- break;
+ if (internalOpt[sz] == '=')
+ {
+ internalOpt[sz] = 0;
+ sz++;
+ break;
+ }
}
- prop->key = &internalOpt[2];
+ prop->key = internalOpt;
prop->value = &internalOpt[sz];
}
else if (!strncmp(opt, "-Xbootclasspath:", 16))
More information about the kaffe
mailing list