On Sun, 28 Mar 2021, Markus Elfring wrote: > >> Would you like to help any more with attempts to achieve support for > >> a transformation pattern like “#define ⇒ enum” according to the semantic patch language? > >> https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/981 > >> https://github.com/issues?q=is%3Aissue+author%3Aelfring+%22+enum%22 > > > > If you find that something does not work satisfactorily, propose a > > semantic patch and show what doesn't work. I'm not going to try to solve > > a problem when I don't know what the problem is. > > Please take another look at the following SmPL script variant. > > > @display3@ > expression e; > identifier i, s; > @@ > struct s { > ... > *#define i e > ... > }; > > > elfring@Sonne:~/Projekte/Coccinelle/janitor> spatch --parse-cocci show_define_usage3.cocci > init_defs_builtins: /usr/local/bin/../lib/coccinelle/standard.h > minus: parse error: > File "show_define_usage3.cocci", line 7, column 1, charpos = 63 > around = '#define i', > whole content = *#define i e This is not supported. julia > > > See also: > https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/2681b8236b332abdaf707ab8c5017a9be92d1059/src/pipewire/client.h#L46 > > Regards, > Markus >