From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id BC7683858D28 for ; Sun, 10 Oct 2021 11:32:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BC7683858D28 Received: by mail-wr1-x42a.google.com with SMTP id i12so33108418wrb.7 for ; Sun, 10 Oct 2021 04:32:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=BfstFWDAnp6YqPbIvLmnJBHST7zATiSRsrZW0AlSsWM=; b=6ppw13vRLmlmvt72Y5Phh3rCmE63dIhSsGfFFAhr32dST8e4KnYYm6ybVdW8vYWBrR F+dc9gd/Nd+5YsFtxoj4FUPAcH27m34HQ0McAozUgwV0cw6AblXUUDXGblF53bS+FOFh RFDIF+msqWpmyqLoSI5DbxWSRXo20H6jtdIm9egO0G2ZUWZGwJOkpXRjtrl7IsYnhapc qvAvNBte4qt83II66JrkOvTGU6f6XquPgMvUKaHfzbZ6wKMBw/8vnVi/dohSGL/5ajgJ fBUQbDWuimcdAyHBo7zJH0wZU8/GjDD2jJvD7LUY43UKxVzjJYAmMf7R939lwAW6uAXl 53/Q== X-Gm-Message-State: AOAM5332zKt/X75DyDxYfGLt+7+H0W0aaYSmC6Sz8ESeYPtG6H+PfjU7 0YQopn9w6hLH8FrT6/2GKHOsjyOHQtA= X-Google-Smtp-Source: ABdhPJxnY5l7jIMnb1vUOkWed7DRU2VJYCzszQcuo77Pu3/tBvOdyAnKQusXtBJ16Rhr2gX5u6DaoQ== X-Received: by 2002:a05:6000:2af:: with SMTP id l15mr17245197wry.17.1633865541885; Sun, 10 Oct 2021 04:32:21 -0700 (PDT) Received: from 2a02-8388-e205-e880-569c-680a-c69b-a1ad.cable.dynamic.v6.surfer.at (2a02-8388-e205-e880-569c-680a-c69b-a1ad.cable.dynamic.v6.surfer.at. [2a02:8388:e205:e880:569c:680a:c69b:a1ad]) by smtp.gmail.com with ESMTPSA id u3sm4538438wmc.16.2021.10.10.04.32.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Oct 2021 04:32:21 -0700 (PDT) Message-ID: <9362563f8803f575d00c03835d2897b3836a7645.camel@gmail.com> Subject: wide function pointer type From: Martin Uecker To: libffi-discuss@sourceware.org Date: Sun, 10 Oct 2021 13:32:20 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libffi-discuss@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libffi-discuss mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2021 11:32:25 -0000 Hi all, I will propose a wide function pointer type (actually a wide function type) to WG14 for C23 as a common type for callbacks, closures, which now require an additional void pointer argument in C APIs. This is intended to be compatible with ABIs with now use a static chain register. An early draft can be found here: http://wwwuser.gwdg.de/~muecker1/wide_v4.pdf I thought you might be interested and I would love to hear your feedback. Martin