From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by sourceware.org (Postfix) with ESMTPS id 157F3386F446 for ; Fri, 2 Oct 2020 08:49:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 157F3386F446 Received: by mail-wr1-x441.google.com with SMTP id j2so865086wrx.7 for ; Fri, 02 Oct 2020 01:49:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=K7eAm5kls60n05g4vOafAYjVrjTDKWTSLwCtfNq5U7w=; b=oq0zeqRPRoZVgY+N2uS85hlH4HHtRjb/vIG/eO2uP/Dh3tSp8bOb04pCioFf6Tc5Pn GCTyY5OdH9pwspnoWIjf1n9N+DHR85nulld6KufHrJR20gcObGewYXR5Hu9sgkThHE8M lVDF6RajWQfAl+hwFQ+fl1sN5XrVsr2KKHdmzd5rj/gtej6f0C+Q0Vhic86SAX+oyo6I zJgVHPPuUaTikSn83tHZ2iuXAXQjep7k+NA/bdwL0h6pH1wryHYp12EUi9Sj8XkLbDvu RhvD4qlArUoxU5jfEdy8cdxh7efQCXqdOyj/G5+lZONbI9IWjMy+6GRWF39IJn8547q0 Gb9w== X-Gm-Message-State: AOAM5312tvfYxl7LjlHbwuVtRfqSsVu5QPludOpKeY7nAeelTwrn4GY0 7KRF2QqYwVcGWx/fNVYZSyRxCEyJTjQ= X-Google-Smtp-Source: ABdhPJxiHP8fC8neI4ZdLiTzpMZHOLYjfesrmeki2/9n/e6Ky8fP3VbEpZJPU4SP2JTIdntsN+GRIw== X-Received: by 2002:a5d:4247:: with SMTP id s7mr1730226wrr.167.1601628540258; Fri, 02 Oct 2020 01:49:00 -0700 (PDT) Received: from [192.168.1.143] ([170.253.60.68]) by smtp.gmail.com with ESMTPSA id q4sm931747wru.65.2020.10.02.01.48.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Oct 2020 01:48:59 -0700 (PDT) Subject: Re: [PATCH v2 1/2] system_data_types.7: Add 'void *' From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: Paul Eggert , linux-man@vger.kernel.org, libc-alpha@sourceware.org, gcc@gcc.gnu.org, "linux-kernel@vger.kernel.org" References: <41affebd-3354-9420-0048-bffd14535e95@gmail.com> <20201001154946.104626-2-colomar.6.4.3@gmail.com> <538b683f-01d2-6148-4f1d-1b293eb5cd6b@cs.ucla.edu> <4b86f6e9-0d8a-f14a-73ce-ebbdc9d9edba@gmail.com> Message-ID: <7c55f6cf-8cb1-7b63-30ec-990f8c370bf5@gmail.com> Date: Fri, 2 Oct 2020 10:48:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <4b86f6e9-0d8a-f14a-73ce-ebbdc9d9edba@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2020 08:49:02 -0000 Hi Michael, On 2020-10-02 10:24, Alejandro Colomar wrote: > On 2020-10-01 19:32, Paul Eggert wrote: > > For 'void *' you should also mention that one cannot use arithmetic on > > void * pointers, so they're special in that way too. > > Good suggestion! > > > Also, you should > > warn that because one can convert from any pointer type to void * and > > then to any other pointer type, it's a deliberate hole in C's > > type-checking. > > Also good.  I'll talk about generic function parameters for this. I think the patch as is now is complete enough to be added. So I won't rewrite it for now. Please review the patch as is, and I'll add more info to this type in the future. Thanks, Alex