From: Gargi Sharma <gs051095@gmail.com>
To: outreachy-kernel@googlegroups.com
Subject: Coccinelle Challenge Problem 2
Date: Tue, 21 Feb 2017 23:14:24 +0530 [thread overview]
Message-ID: <CAOCi2DHM+X0ksQZ2ZBXPkbJu5uv5kerHRpaJaFEG8C36CA72jA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 343 bytes --]
Hi,
Here's my coccinelle script to parentheses around the right hand side of an
assignment.
@@ expression e, e1, e2; @@
e =
-(
e1 + e2
-)
@@ expression e, e1, e2; @@
e =
-(
e1 - e2
-)
@@ expression e, e1;
contant c; @@
e =
-(
e1 << c
-)
@@ expression e, e1;
constant c; @@
e =
-(
e1 >> c
-)
thanks,
gargi
[-- Attachment #2: Type: text/html, Size: 574 bytes --]
next reply other threads:[~2017-02-21 17:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-21 17:44 Gargi Sharma [this message]
2017-02-21 17:54 ` [Outreachy kernel] Coccinelle Challenge Problem 2 Julia Lawall
2017-02-21 18:43 ` Gargi Sharma
2017-02-21 20:04 ` Julia Lawall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOCi2DHM+X0ksQZ2ZBXPkbJu5uv5kerHRpaJaFEG8C36CA72jA@mail.gmail.com \
--to=gs051095@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.