From 0666c8f9a353b42ffde4902dc0cdec66f925a6e3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 2 Dec 2023 18:32:34 +0100 Subject: Bug 1481 - Hide [ArgumentIs]PascalString argument's length Native pascal strings shall be just treated as normal Java strings on the Java side. Hence drop the length parameter across generated API, i.e. - C Function bindings - Java Callbacks --- doc/manual/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/manual/index.html') diff --git a/doc/manual/index.html b/doc/manual/index.html index 68173ec..d9e4b02 100755 --- a/doc/manual/index.html +++ b/doc/manual/index.html @@ -1078,9 +1078,8 @@ using CustomJavaCode to write the exposed API. In this case is most useful in conjunction with RenameJavaMethod.

ArgumentIsString
-Syntax: -ArgumentIsString [function name] [indices...] -where the first argument index is 0
+Syntax: ArgumentIsString [function name] [indices...] where +the first argument index is 0
(optional) For a C function with one or more outgoing char* (or compatible data type) arguments, indicates that those arguments are semantically null-terminated C strings rather than arbitrary arrays of @@ -1089,7 +1088,7 @@ as java.lang.String objects rather than byte[] or ByteBuffer.

ArgumentIsPascalString
Syntax: -ArgumentIsPascalString [function name] [indice-tuples...], +ArgumentIsPascalString [function name] [indice-tuples...], with each tuple being the argument-index for the 'int length' and the 'char* value' argument with index 0 for the the first argument
@@ -1099,7 +1098,8 @@ data type) arguments, indicates that those arguments are semantically non-null-terminated Pascal strings rather than null-terminated C strings or arbitrary arrays of bytes. The generated glue code will be modified to emit those arguments as java.lang.String objects rather than -byte[] or ByteBuffer.

+byte[] or ByteBuffer as well as dropping the +redundant 'int length' argument on the Java side.

ClassJavadoc
Syntax: ClassJavadoc [class name] [code...]
(optional) Causes the specified line of code to be emitted in the -- cgit v1.2.3