From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RDNS_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 12223 invoked from network); 16 May 2022 16:04:03 -0000 Received: from unknown (HELO tb-ob20.topicbox.com) (173.228.157.66) by inbox.vuxu.org with ESMTPUTF8; 16 May 2022 16:04:03 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob20.topicbox.com (Postfix) with ESMTP id 6A9F429948 for ; Mon, 16 May 2022 12:03:48 -0400 (EDT) (envelope-from bounce.mM95c0625b8879224f86e28cd8.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 173B1243DB80; Mon, 16 May 2022 12:03:48 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:in-reply-to:message-id :references:mime-version:content-type:list-help:list-id :list-post:list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1652717027; bh=fLscbs62JtUQSmBS f88Io4ImS4yvLEmFuFO6IghNc0I=; b=B20oXngPU2Tw8wEJZbYaSTcInDIB2epF 3kfWZuhUe8wTr7Igi7PMhDhjblKzafBN9SEoXU0p4kPvID+rAHc1qjxAJv4Guq4U WtYpvephSKSPqxdDKpJG57/O9H4ZHsvxSgvYLYNweK6iPXfjp6Z82MGlQxKKrw+7 yl7zpWeW8M4= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1652717027; b=gS94eJl6RosvipxQFZrewbChfP3fjcKgomkNbcKLeLszCx6FZd XLESFZayDvU1aAGa5x+O/62Wdf+FNcfOEac2WbMRHQznBa+OB6DMfG3YJdqt1wFP 6XycJljmskgAmNMh5BJDwV8eoTW6DGRqcM5QIOtFlfiP5TMQnP/6U4mKc= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:subject:in-reply-to:message-id:references:mime-version :content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=fLscbs62JtUQSmBSf88Io4ImS4yvLEmFuFO6IghNc0I=; b=LRnJLR7pcKza hsUnsRky2EwiKdgSjIzd9O4gJ5aS6xHib+aEqYc/Z0fSCHlOOu+mnh3hOjt8E2yP vQtvNZKdP96Rdd3KJEUXH8pi9nG6313nKMdXdVBVr74L4EQECdxH3oisJ70jiWSS Qg+fClo4okJ67Go2Uv8qZXf8l+Fk8Es= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id AD6F8243D5EF for <9fans@9fans.net>; Mon, 16 May 2022 12:03:33 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id DC78ECDB317; Mon, 16 May 2022 12:03:33 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1652717013; b=HqB8EbGi/zDJMd2BKaQiJhiKLu9nX98ER/CGh/212pVtGp1a4p DY64zqQqwtgViJ8ssSFbiObchpR59jqNU007/Mrz/AAf0htSoSxGOjqdHVGCFPNC oA+QZ13X7sgqctuSOXgfMoh2gkUp4vta6S/DaPSMTMWXb7VhxmmU/rEKyvfW8qtz nKrhTw2UwrmGEWjJvUCa7cU3+gZUJJpiEGdxhuew2GrR3YM2G9Q/OTlJNil0ohmd 39cELvSTaKsEcK6aAlWdOqtf90U5YOX4rJO1SuZAm6jhMWtdnu4bwMcjGLBakCi7 l9ULW3ezsYO+1Gu/ivXQoi3MpyDehbCy4qYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:in-reply-to:message-id :references:mime-version:content-type; s=arcseal; t=1652717013; bh=m14dKNjCIC932YzTrhCIpyJORXq2vc3mQchzgt/ZnLk=; b=qWjfNDPIjJXS LVdMV12eEbHRybodCqL41JTT9yHCWFrtHrpWOpL3jnNYEuv5iCBupYXQ5F4e1odc EB11933La72xHV7MEAtWhx4GfdmRVR4V9+TAU+2RDllbZbKyAcm530fZjFxnrTqr 6tEDFNZOzV67YXqVlkgc7IfIDZEJxnKxhJkF0iJdwBUoGSFr3XZuxIEDFneDyD0Y dggpiWK/iUX54hhai85JN2Dlo5Vt6gAQwcQJ15iEKRqnTc+xiRWr5o0mnWaDl7jq AzgPp8rytyiuXrg0LNlOjpg20+TRFwaaR4zT6VPHWoVdUsxAhlBj2s86Miy7xPMA fJjZokJ4EA== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvfedrheehgdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffujg fkfhggtgesthdtredttddtvdenucfhrhhomheprggurhcuoegrughrsefufffhrdfqtffi qeenucggtffrrghtthgvrhhnpeekhedtveffheevhfdtgefhhefgveelvedujeetjedthe duvdefvdekgedtfffhffenucfkphepvddthedrudeiiedrleegrddvgedpvddthedrudei iedrleegrdduieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpe dvtdehrdduieeirdelgedrvdegpdhhvghlohepmhigrdhsughfrdhorhhgpdhmrghilhhf rhhomhepoegrughrsefufffhrdfqtffiqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sdf.org: 205.166.94.24 is authorized to use 'adr@SDF.ORG' in 'mfrom' identity (mechanism 'ip4:205.166.94.0/24' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="adr@SDF.ORG"; helo=mx.sdf.org; client-ip=205.166.94.24 Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Mon, 16 May 2022 12:03:30 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from sdf.org (IDENT:adr@sdf.org [205.166.94.16]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 24GG3SnZ014101 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Mon, 16 May 2022 16:03:29 GMT Received: from localhost (adr@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 24GG3S4m013599 for <9fans@9fans.net>; Mon, 16 May 2022 16:03:28 GMT Date: Mon, 16 May 2022 16:03:28 +0000 (UTC) From: adr To: 9fans <9fans@9fans.net> Subject: Re: [9fans] void* In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: bfb6d992-d531-11ec-91d2-eadae9785454 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZWNhZWEzYjllYzhlNzA2Ni1NOTVjMDYyNWI4ODc5MjI0Zjg2ZTI4?= =?UTF-8?B?Y2Q4Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M95c0625b8879224f86e28cd8:1:miIwuZ6Dc4QXusdqWb8ZKQyRd2ASgbCGTTRq1XuOVdo On Mon, 16 May 2022, Charles Forsyth wrote: > it's void* because that can be assigned between other pointer types witho= ut a cast.x =3D malloc(sizeof(*x)); > instead of x =3D (T*)malloc(sizeof(*x)); which just adds clutter. > Similarly it's just free(x) instead of free((void*)x); (or free((uchar*)x= ) as I understand your > suggestion). The idea I wanted to share, more as a light chat than as a suggestion is that I would find more useful to have a generic pointer (with the property you have just described) with size (the object pointed to) of 1. I don't expect anyone to be happy about substituting void*. GNU (and I think clang followed suit) just made the size of void* 1. I don't really like this because it breaks the concept of void, that's the reason I talk about char* and uint8*. But I think I'm repeating my self a lot, so I will silently retreat back through the hedge. Regards, adr. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tecaea3b9ec8e7066-M95c06= 25b8879224f86e28cd8 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription