From nobody Tue Feb 10 11:17:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1614736018; cv=none; d=zohomail.com; s=zohoarc; b=fVCq3c1/bW26sfN9nr99wvZk0HGjS8QeMPOMd5s10ZHMa6WA5N5coMdQ5NODX4DMj2QnIJtIJJNXg8i38Q6fXJNTWLYjQE3frW2XGtCZI0dE3c1FgQz94R/SX60cuGDUlGbYHwqiACGMAPzvUSiQS7ZFl5pWHdg6Bdje55I6AYI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614736018; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=d3549LeDdOjw1wfdOgQuNmXcdgerSomgrqy3WUaXdIs=; b=V8TJM+BogNY3lXl3y8dKf17+DmHGFMoOzfxsGtVklnojqnFA7IIj2DeAUYDNyh7tlDvGbQadsaTzvNAmC/6v7kPeUhnU40TaHqNEjE9Npb+mGjOoGAI7yVw5tx8wthu5U24wiroviv9gheolSr2W2+MT5fhv13YEi78YV28MAxk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1614736018302264.65698202350734; Tue, 2 Mar 2021 17:46:58 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.92642.174624 (Exim 4.92) (envelope-from ) id 1lHGat-00085b-Du; Wed, 03 Mar 2021 01:46:31 +0000 Received: by outflank-mailman (output) from mailman id 92642.174624; Wed, 03 Mar 2021 01:46:31 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lHGat-00085U-An; Wed, 03 Mar 2021 01:46:31 +0000 Received: by outflank-mailman (input) for mailman id 92642; Wed, 03 Mar 2021 01:46:29 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lHGar-000841-Pq for xen-devel@lists.xenproject.org; Wed, 03 Mar 2021 01:46:29 +0000 Received: from mail-qv1-xf2c.google.com (unknown [2607:f8b0:4864:20::f2c]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a9e9fbda-26c0-4664-8b1f-192141e9f5d7; Wed, 03 Mar 2021 01:46:24 +0000 (UTC) Received: by mail-qv1-xf2c.google.com with SMTP id r5so10907021qvv.9 for ; Tue, 02 Mar 2021 17:46:24 -0800 (PST) Received: from six.home (cpe-67-241-56-252.twcny.res.rr.com. [67.241.56.252]) by smtp.gmail.com with ESMTPSA id g21sm5406145qkk.72.2021.03.02.17.46.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Mar 2021 17:46:24 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: a9e9fbda-26c0-4664-8b1f-192141e9f5d7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=d3549LeDdOjw1wfdOgQuNmXcdgerSomgrqy3WUaXdIs=; b=S+W9hRMLlx9zEuE0+c4nDwmnRqQNsttx2156p9Nf12EOhJPyfgvIQ2+wxo8ondrl1J TSISvHwKtcFG99foz4tvClo3W7uqqVIfGiJy+zbbV+F/To6xe7UvF+5dQocBcdWmzQcG oI747VQDFc/GXZQtsWF+ujfvRAYwXzIdm+4YEEFmsu1q6vojCCm3btfoVMuvC7hsyEMX 6K+dChtfvRELSlck1Y5rh4fjsnW+mx0N+s0dSY5zrwHc+Kf/T3Z+e5SQDGIRY7jBNz8+ 4kjzZklUzxcicFr1mgTZWBpBKBZ0ghej3riwma3ZfEtzYNjCDi6rcLILRmWY3eO+aVt2 IUaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=d3549LeDdOjw1wfdOgQuNmXcdgerSomgrqy3WUaXdIs=; b=QKwG2B2wOPcwx2fsf7E9VgCHslhfI1a+OHV92xnj41pUGwFTTngr8kCbnptlz8iwcS YJObfVxRi7LvqbYB9zIg57iYGdgULmfQL7dFqdPJtNwx9H+5F0H1lTXJqtfoi3iWY4J6 DTewSHX4bNtocGfYT6uzCErtt96h1e27hs61l9HvoOqv++UoIwJK1lA8ntPr0BTtQlot 390ttpxwTVoFguPbP7CUsoiXWRCr90DHUoqe3jF0y4bEWI/fBFnQjPRIL0+g17thjsp1 Qi5OLfU49oFsCLDSL00LSYPkpJY31ckCnOVEebNzYYZBU55zudG9GNiFP4SaUyIoE/hh PWeQ== X-Gm-Message-State: AOAM533J7vLTnWW2vM10tzlPGYcftlFA6WcyK/s4vMoI7kiS1nziw0p6 eGLRjt+oJctnfW9gWkej8V33iqPZMIjOUg== X-Google-Smtp-Source: ABdhPJxLArmXxrobJohrB1yLe+OiwyMWj4S102WoUONDq1AiRM3wmVwOxT66SiWHbJpS0nqyQ13e0Q== X-Received: by 2002:a0c:fd63:: with SMTP id k3mr6421373qvs.30.1614735984461; Tue, 02 Mar 2021 17:46:24 -0800 (PST) From: Nick Rosbrook X-Google-Original-From: Nick Rosbrook To: xen-devel@lists.xenproject.org Cc: george.dunlap@citrix.com, Nick Rosbrook , Ian Jackson , Wei Liu , Anthony PERARD Subject: [RFC v2 1/7] libxl: remove extra whitespace from gentypes.py Date: Tue, 2 Mar 2021 20:46:13 -0500 Message-Id: <7a75b14f66acac499a0b17ab1c5595549421bac7.1614734296.git.rosbrookn@ainfosec.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: X-ZohoMail-DKIM: pass (identity @gmail.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" No functional change, just remove the extra whitespace from gentypes.py. Signed-off-by: Nick Rosbrook --- tools/libs/light/gentypes.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/libs/light/gentypes.py b/tools/libs/light/gentypes.py index 9a45e45acc..37de0f68b3 100644 --- a/tools/libs/light/gentypes.py +++ b/tools/libs/light/gentypes.py @@ -40,7 +40,7 @@ def libxl_C_type_define(ty, indent =3D ""): elif isinstance(ty, idl.Aggregate): if isinstance(ty, idl.KeyedUnion): s +=3D libxl_C_instance_of(ty.keyvar.type, ty.keyvar.name) + "= ;\n" - =20 + if ty.typename is None: s +=3D "%s {\n" % ty.kind else: @@ -48,7 +48,7 @@ def libxl_C_type_define(ty, indent =3D ""): =20 for f in ty.fields: if isinstance(ty, idl.KeyedUnion) and f.type is None: continue - =20 + x =3D libxl_C_instance_of(f.type, f.name) if f.const: x =3D "const " + x @@ -164,7 +164,7 @@ def libxl_init_members(ty, nesting =3D 0): return [f for f in ty.fields if not f.const and isinstance(f.type,= idl.KeyedUnion)] else: return [] - =20 + def libxl_C_type_do_init(ty, pass_arg, need_zero=3DTrue, indent=3D" "): s=3Dindent if ty.init_val is not None: @@ -229,20 +229,20 @@ def libxl_C_type_member_init(ty, field): raise Exception("Only KeyedUnion is supported for member init") =20 ku =3D field.type - =20 + s =3D "" s +=3D "void %s(%s, %s)\n" % (ty.init_fn + "_" + ku.keyvar.name, ty.make_arg("p", passby=3Didl.PASS_BY_REFE= RENCE), ku.keyvar.type.make_arg(ku.keyvar.name)) s +=3D "{\n" - =20 + if ku.keyvar.init_val is not None: init_val =3D ku.keyvar.init_val elif ku.keyvar.type.init_val is not None: init_val =3D ku.keyvar.type.init_val else: init_val =3D None - =20 + (nparent,fexpr) =3D ty.member(ty.pass_arg("p"), ku.keyvar, isref=3DTru= e) if init_val is not None: s +=3D " assert(%s =3D=3D %s);\n" % (fexpr, init_val) @@ -732,7 +732,7 @@ if __name__ =3D=3D '__main__': f.write(libxl_C_type_copy(ty, "dst", "src")) f.write("}\n") f.write("\n") - =20 + for ty in [t for t in types if t.copy_deprecated_fn]: f.write("int %s(libxl_ctx *ctx, %s)\n" % (ty.copy_deprecated_fn, ty.make_arg("p", passby=3Didl.PASS_BY_REFERENCE))) --=20 2.17.1