mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
Fix docstring.
This commit is contained in:
parent
eecc388ebd
commit
47e91bfd89
@ -1,3 +1,7 @@
|
|||||||
|
#
|
||||||
|
# Simple FFI test script that tests against a simple shared object
|
||||||
|
#
|
||||||
|
|
||||||
(def ffi/loc "examples/ffi/so.so")
|
(def ffi/loc "examples/ffi/so.so")
|
||||||
(def ffi/source-loc "examples/ffi/so.c")
|
(def ffi/source-loc "examples/ffi/so.c")
|
||||||
|
|
||||||
|
@ -1130,7 +1130,6 @@ JANET_CORE_FN(cfun_ffi_buffer_write,
|
|||||||
return janet_wrap_buffer(buffer);
|
return janet_wrap_buffer(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
JANET_CORE_FN(cfun_ffi_buffer_read,
|
JANET_CORE_FN(cfun_ffi_buffer_read,
|
||||||
"(ffi/read ffi-type bytes &opt offset)",
|
"(ffi/read ffi-type bytes &opt offset)",
|
||||||
"Parse a native struct out of a buffer and convert it to normal Janet data structures. "
|
"Parse a native struct out of a buffer and convert it to normal Janet data structures. "
|
||||||
@ -1153,7 +1152,7 @@ JANET_CORE_FN(cfun_ffi_buffer_read,
|
|||||||
JANET_CORE_FN(cfun_ffi_get_callback_trampoline,
|
JANET_CORE_FN(cfun_ffi_get_callback_trampoline,
|
||||||
"(ffi/trampoline cc)",
|
"(ffi/trampoline cc)",
|
||||||
"Get a native function pointer that can be used as a callback and passed to C libraries. "
|
"Get a native function pointer that can be used as a callback and passed to C libraries. "
|
||||||
"This callback trampoline has the signature `void trampoline(void *ctx, void *userdata)` in "
|
"This callback trampoline has the signature `void trampoline(void \\*ctx, void \\*userdata)` in "
|
||||||
"the given calling convention. This is the only function signature supported. "
|
"the given calling convention. This is the only function signature supported. "
|
||||||
"It is up to the programmer to ensure that the `userdata` argument contains a janet function "
|
"It is up to the programmer to ensure that the `userdata` argument contains a janet function "
|
||||||
"the will be called with one argument, `ctx` which is an opaque pointer. This pointer can "
|
"the will be called with one argument, `ctx` which is an opaque pointer. This pointer can "
|
||||||
|
Loading…
Reference in New Issue
Block a user