Re: [Cocci] Replacing a struct member with a function call

2021-03-13 Thread Wolfram Sang
> @@ > type M; This? struct monitor* m; > @@ > - m->virtual.width; > + get_monitor_width(); signature.asc Description: PGP signature ___ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci

[Cocci] Replacing a struct member with a function call

2021-03-13 Thread Thomas Adam
Hello all, I'm wanting to replace a struct member with a function call across the code base I'm working on. For example, I currently have the following struct definition (simplified): struct monitor { struct { int width; int height } virtual; }; Across my code base, I