From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Fri, 19 Jan 2018 16:14:23 +0000 Subject: Re: Coccinelle: zalloc-simple: Checking consequences from the usage of at signs in Python strings Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: cocci@systeme.lip6.fr, Masahiro Yamada , Himanshu Jha Cc: LKML , kernel-janitors@vger.kernel.org, Gilles Muller , "Luis R. Rodriguez" , Michal Marek , Nicolas Palix > I removed the blank line at EOF, > then applied to linux-kbuild/misc. This script for the semantic patch language is using the at sign within string literals for Python code. It is nice when this character seems to work also with the current software. How does its usage fit to the following information in the SmPL manual? https://github.com/coccinelle/coccinelle/blob/bf1c6a5869dd324f5faeeaa3a12d57270e478b21/docs/manual/cocci_syntax.tex#L50 “… Furthermore, @ should not be used in this code. Spatch scans the script code for the next @ and considers that to be the beginning of the next rule, even if @ occurs within e.g., a comment. …” See also: Configuration or escaping of @ characters for embedded programming language scripts https://github.com/coccinelle/coccinelle/issues/36 Regards, Markus From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756055AbeASQOp (ORCPT ); Fri, 19 Jan 2018 11:14:45 -0500 Received: from mout.web.de ([212.227.17.11]:60153 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755524AbeASQOg (ORCPT ); Fri, 19 Jan 2018 11:14:36 -0500 To: cocci@systeme.lip6.fr, Masahiro Yamada , Himanshu Jha References: Subject: Re: Coccinelle: zalloc-simple: Checking consequences from the usage of at signs in Python strings Cc: LKML , kernel-janitors@vger.kernel.org, Gilles Muller , "Luis R. Rodriguez" , Michal Marek , Nicolas Palix From: SF Markus Elfring Message-ID: Date: Fri, 19 Jan 2018 17:14:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:bkDerr6XcTJO+r/DvSBImuIZU3uA4L3K2l5aM0CF2Uk+Or4Zvxq HiZg3lh4HJa2409R0bPQ7w8W4oLTbRmkkMh8wBVRhjyC+xNY9uqIR/AXcScWs30LD2Bcnom BInapLTaOgvNhI7NXbrBn3ikvuXM+g2r4MPOucf8KX6ZcRIOc5iaCjkUOPqrrcaYv9Kqd5K 2OhkQmjcgY0W3ut4QTHOQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:umYVqppzVwk=:hO/IN2uxPc4rGVOWEvoExD 8a8D9cFGkFSjsHEkplwNW9srSiDQTvMwk9bm/gX16kmEwR+EvPh7+4i5Ynb+MJfLgGv0ocHe9 R3yEReioJcu9FtfCwFtJy4Vid9WZ21fvO/egaYuOLLeH/YuogVTFIXI6BXKKBfb0YJvKsQ+m/ gQhqdmnxD7AHx9esKP1b+mQnjGvV0xjiHJMwB6kRgtFOQL+7/g3t9Isp5mcBP7ADgsmiR18pX e50+rk69BlDfwLN5A9KOeozqea9kHRWNBDW/YDJgAdyE2n5W3bJ4vInvW8Gx9ChrERuysbTDV fZY77onHAHutRHiNfT/zRqBqcLOqTo25WpFPfNGVgp4bGq/rWb6v1lOPrn3wVNbz7aV+y8eb2 fKt8I1Xh1prVrb0UYu8hFGOYZJR6eb2TTyhfuD73eYD93Id+N/yFJdMVdGrWzhsTxkT0TGmnx 1w9aKBsh43WTAK3QO8+pxmUVicx90LKiuF/h+WflHltUXhZjMRApElOT3lFAN0c0/S83eofuj 9De3jZ1e1+DZuVPdmdxAMcy2BvmwptUl2iTTUMDK1bkaCe/nfJGZPLLfOMrnQJETGp68z/IDa NLATjftmy23rwxO+xeg3Jddnukrj8qLb7WOTuB0uwsjZ2krchTGudQ97lNCbFptTBmgQNFrOu gwUaG6YnZGaXvHYyabTb5Sj+EuhjklYcRGWPwG0y+7w0uo/TTEb5aHVkuHroOzFlWeYInxvdJ Xwg/kwB3I2tJbLwryrVf2OO2Z/l8cnydYLW51zBvRSFBiE5ngjdLF81Vg1yFX5XTlWt4JW3dT OGICkUGwfqZN4NSjM0LNYxsOzVUMHhUlCHbKfQyNLEhEIxPz2I= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I removed the blank line at EOF, > then applied to linux-kbuild/misc. This script for the semantic patch language is using the at sign within string literals for Python code. It is nice when this character seems to work also with the current software. How does its usage fit to the following information in the SmPL manual? https://github.com/coccinelle/coccinelle/blob/bf1c6a5869dd324f5faeeaa3a12d57270e478b21/docs/manual/cocci_syntax.tex#L50 “… Furthermore, @ should not be used in this code. Spatch scans the script code for the next @ and considers that to be the beginning of the next rule, even if @ occurs within e.g., a comment. …” See also: Configuration or escaping of @ characters for embedded programming language scripts https://github.com/coccinelle/coccinelle/issues/36 Regards, Markus