From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3NdV-00082k-39 for qemu-devel@nongnu.org; Wed, 15 Jan 2014 05:23:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3NdP-0000ug-3c for qemu-devel@nongnu.org; Wed, 15 Jan 2014 05:23:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:4678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3NdO-0000uZ-Rr for qemu-devel@nongnu.org; Wed, 15 Jan 2014 05:23:43 -0500 From: Kevin Wolf Date: Wed, 15 Jan 2014 11:22:48 +0100 Message-Id: <1389781375-11774-36-git-send-email-kwolf@redhat.com> In-Reply-To: <1389781375-11774-1-git-send-email-kwolf@redhat.com> References: <1389781375-11774-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PULL 35/42] qapi: Add "errno" to the list of polluted words List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Max Reitz Using "errno" directly as an identifier results in various syntax errors; therefore it should be added to the list of polluted words. Signed-off-by: Max Reitz Signed-off-by: Kevin Wolf --- scripts/qapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/qapi.py b/scripts/qapi.py index 750e9fb..9b3de4c 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -247,7 +247,7 @@ def c_var(name, protect=True): 'and', 'and_eq', 'bitand', 'bitor', 'compl', 'not', 'not_eq', 'or', 'or_eq', 'xor', 'xor_eq']) # namespace pollution: - polluted_words = set(['unix']) + polluted_words = set(['unix', 'errno']) if protect and (name in c89_words | c99_words | c11_words | gcc_words | cpp_words | polluted_words): return "q_" + name return name.replace('-', '_').lstrip("*") -- 1.8.1.4