From patchwork Fri May 5 01:50:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 9712943 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3BE3B602B9 for ; Fri, 5 May 2017 01:52:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D9A02869C for ; Fri, 5 May 2017 01:52:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21ED0286B7; Fri, 5 May 2017 01:52:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE73C286B5 for ; Fri, 5 May 2017 01:52:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752457AbdEEBwE (ORCPT ); Thu, 4 May 2017 21:52:04 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33251 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752330AbdEEBwD (ORCPT ); Thu, 4 May 2017 21:52:03 -0400 Received: by mail-wm0-f67.google.com with SMTP id y10so6887141wmh.0 for ; Thu, 04 May 2017 18:52:03 -0700 (PDT) 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; bh=EXc1wGLggiKh7PCaDlXSnHt+y0FmmQr3mKyyZacZutQ=; b=ozslI0OrrrEu11GEgoZ4lVLX2LrQC0ClUIVRtfepVa5PwgooIzIvfUCLlt8vfJopQS q14QhVmDNPORWXeORZfAVMJ0khiMnPG8EaYEqMabNpXANg5GjUyS3iUGMH3Vs7II0TLB pI6Hohxys0/Dw1JHW34sZHx1norf4s8ZkwC1YxbEAsAit1jqLqceKddEP3eZp0X/4JiH TmoHwy1U/fMqT1cvka63QeDfYqTewPUNcerH+xUT9HWYa0Xlq4gDxJYLFE0+Zg+EjXPN ba6oc9QXCdO9j2JGXpWgVrMGS/ruFpzv6XB4L8wRN+wFXtXrBhxojKlGM7xAT/0sFd38 tnig== 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; bh=EXc1wGLggiKh7PCaDlXSnHt+y0FmmQr3mKyyZacZutQ=; b=QPfhbPZ/VDeJpp2n109JJ/y4c9OO2j2lxGDHLEbGZODBQ65p8K8cJrOpX3T+m+acXU qtFCQXuKip4nxMYSqdLNpB2UUdSONjXUDVzMKHo9Z4qYP3hn8gLwzuo9sZlfCpquZxGL rvRzZHktgYUEoTF0P9VAUK24Ks720ftt+xMI6XCiiNOEwI6njpGpPdGJn1h65wdUkqiV PmLMx5NJITLR7zl1RuSmUayUtgRcBMM9JoiVNtZ8i8tY/ZkXIwYRDvFgb0wDQpQKnS/z 9dOD5zUZVCdYE6A8jI3CUrshnWXVafLefZwtOmnc8wgaXgxIXWqBB8i5W2YPW2vWuYeu vjPg== X-Gm-Message-State: AODbwcBmNbUGviBeNK2eIlUBf/4fJwjiER4LxTpaVOP5BthA3t/fAru4 JWL3jELo79lfWQ== X-Received: by 10.28.158.216 with SMTP id h207mr3666427wme.0.1493949122619; Thu, 04 May 2017 18:52:02 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:8f6:2d00:94a4:d690:7d00:af4d]) by smtp.gmail.com with ESMTPSA id e67sm576135wma.9.2017.05.04.18.52.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 18:52:02 -0700 (PDT) From: Luc Van Oostenryck To: linux-sparse@vger.kernel.org Cc: Christopher Li , Luc Van Oostenryck Subject: [PATCH 5/6] keyword: add a comment about NS_TYPEDEF & reserved keywords Date: Fri, 5 May 2017 03:50:33 +0200 Message-Id: <20170505015034.65164-6-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170505015034.65164-1-luc.vanoostenryck@gmail.com> References: <20170505015034.65164-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is two ways a keyword can be marked as reserved: - explicitly, by using IDENT_RESERVED() in "ident-list.h" - implicitly, by using NS_TYPEDEF as namespace in parse.c::keyword_table Since the implicit way is not obvious, help to make it more clear by adding a small comment on top of keyword_table[]. Signed-off-by: Luc Van Oostenryck --- parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse.c b/parse.c index eefc0c330..b2bef64f0 100644 --- a/parse.c +++ b/parse.c @@ -407,6 +407,7 @@ static struct symbol_op mode_word_op = { .to_mode = to_word_mode }; +/* Using NS_TYPEDEF will also make the keyword a reserved one */ static struct init_keyword { const char *name; enum namespace ns;