From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A4DECA0EC8 for ; Tue, 12 Sep 2023 02:08:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236906AbjILCIG (ORCPT ); Mon, 11 Sep 2023 22:08:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238441AbjILCCg (ORCPT ); Mon, 11 Sep 2023 22:02:36 -0400 Received: from bluemchen.kde.org (bluemchen.kde.org [209.51.188.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CED2C79B5 for ; Mon, 11 Sep 2023 18:33:44 -0700 (PDT) Received: from ugly.fritz.box (localhost [127.0.0.1]) by bluemchen.kde.org (Postfix) with ESMTP id D091A202E9; Mon, 11 Sep 2023 18:28:18 -0400 (EDT) Received: by ugly.fritz.box (masqmail 0.3.6-dev, from userid 1000) id 1qfpOE-1Oh-00; Tue, 12 Sep 2023 00:28:18 +0200 Date: Tue, 12 Sep 2023 00:28:18 +0200 From: Oswald Buddenhagen To: Junio C Hamano Cc: Taylor Blau , =?iso-8859-1?Q?Ren=E9?= Scharfe , Git List , Jeff King Subject: Re: [PATCH 1/2] parse-options: add int value pointer to struct option Message-ID: References: <2d6f3d74-687a-2d40-5c0c-abc396aef80f@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Mon, Sep 11, 2023 at 12:19:17PM -0700, Junio C Hamano wrote: >Yup, that does cross my mind, even though I would have used > > union { > void *void_ptr; > int *int_ptr; > } value; > >or something without a rather meaningless 'u'. > i'd go the opposite way and make it an anonymous union. that would require c11, though. imo not exactly an outrageous proposition in 2023, but ... regards