From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75885 invoked by alias); 27 Apr 2015 19:18:04 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 75876 invoked by uid 89); 27 Apr 2015 19:18:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f44.google.com Received: from mail-wg0-f44.google.com (HELO mail-wg0-f44.google.com) (74.125.82.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 27 Apr 2015 19:18:03 +0000 Received: by wgyo15 with SMTP id o15so126923885wgy.2 for ; Mon, 27 Apr 2015 12:18:00 -0700 (PDT) X-Received: by 10.194.87.38 with SMTP id u6mr25991568wjz.24.1430162280079; Mon, 27 Apr 2015 12:18:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.33.135 with HTTP; Mon, 27 Apr 2015 12:17:39 -0700 (PDT) From: Bruce Korb Date: Mon, 27 Apr 2015 19:18:00 -0000 Message-ID: Subject: Re: ffi_type_pointer To: Richard Henderson Cc: libffi-discuss@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015/txt/msg00071.txt.bz2 'ffi_type_pointer' A generic 'void *' pointer. You should use this for all pointers, regardless of their real type. BE CAREFUL HERE. In libffi, there is a difference between an array and a pointer. In C, an array yields an address of the array and libffi expects the value array to have a pointer to the address of the array -- a pointer to pointer. And I still have no idea what to make about the discussion of modifying passed values.