From 212b4e2878d4e1303f6969497b87298ec13ab0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20D=C3=B6rbandt?= Date: Thu, 8 Feb 2024 20:38:10 +0100 Subject: [PATCH] Implement stringForCString --- .../trufflesqueak/nodes/plugins/ffi/InterpreterProxy.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/plugins/ffi/InterpreterProxy.java b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/plugins/ffi/InterpreterProxy.java index 5bef0664d..45ae87b84 100644 --- a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/plugins/ffi/InterpreterProxy.java +++ b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/plugins/ffi/InterpreterProxy.java @@ -589,6 +589,11 @@ private long statNumGCs() { return MiscUtils.getCollectionCount(); } + @SuppressWarnings("unused") + private long stringForCString(final String string) { + return oopFor(stringForCString(string)); + } + @SuppressWarnings("unused") private long storeIntegerofObjectwithValue(final long index, final long oop, final long integer) { /* TODO */