Created
July 2, 2018 20:59
-
-
Save flatcap/deb551e5824c45748fa1cf2c87b3a52f to your computer and use it in GitHub Desktop.
Transform struct Context members
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ | |
struct Context *c; | |
@@ | |
- c->tagged | |
+ c->nr_tagged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apply it by running:
spatch --sp-file context.cocci sidebar.c
It'll output a diff, something like: