From b45d03ac957bc0f80322f853fb508431387c78c9 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 13 Jul 2020 20:30:16 -0700 Subject: doc: fix some mistakes in ffi-get and ffi-out. * txr.1: Fix repeated "this this", and an an incorrect insinuation that the ffi-get has an obj argument. Rather, it returns an object. --- txr.1 | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/txr.1 b/txr.1 index 4bad3e2a..546b1264 100644 --- a/txr.1 +++ b/txr.1 @@ -70845,8 +70845,7 @@ is stored. The default value is zero. These functions perform the "put semantics" encoding action similar to what happens to the arguments of an outgoing foreign function call. - -Caution: incorrect use of this this function, or its use in isolation +Caution: incorrect use of this function, or its use in isolation without a matching .code ffi-in call, can cause memory leaks, because, depending on @@ -70866,15 +70865,14 @@ to the treatment applied to the arguments of a callback prior to returning to foreign code. It is assumed that +.code obj +is an object that was returned by an earlier call to +.codn ffi-get , +and that the .meta dst-buf -is a buffer that was earlier used in a call to -.code ffi-get -and that -.meta type and -.meta obj -are the same values that were passed as the -corresponding arguments of that function. +.meta type +arguments are the same objects that were used in that call. The .meta copy-p -- cgit v1.2.3