lkml.org 
[lkml]   [2018]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Coccinelle: zalloc-simple: Checking consequences from the usage of at signs in Python strings
    From
    Date
    > 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

    \
     
     \ /
      Last update: 2018-01-19 17:15    [W:4.497 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site