lkml.org 
[lkml]   [2023]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 00/18] sysctl: constify sysctl ctl_tables
> As I noted, I think this is a generically neat endeavor and so I think
> it would be nice to shorthand *any* member of the struct. ctl->any.
> Julia, is that possible?

What do you mean by *any* member? If any is an identifier typed
metavariable then that would get any immediate member. But maybe you want
something like

<+...ctl->any...+>

that will match anything that has ctl->any as a subexpression?

It may be necessary to put this in parentheses to address parsing issues,
but the () won't need to be present in the matched code.

You could also use

assignment operator aop;

rather than =, to also match += etc.

julia

\
 
 \ /
  Last update: 2023-12-19 22:22    [W:0.139 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site