Lines Matching refs:local_vars
160 lines, init_lines, local_vars = self._attr_get(ri, var)
168 if local_vars:
169 for local in local_vars:
560 local_vars = ['const struct nlattr *attr2;']
564 return get_lines, None, local_vars
578 local_vars = []
583 local_vars += [f'const struct nlattr *attr_{", *attr_".join(tv_names)};']
584 local_vars += [f'__u32 {", ".join(tv_names)};']
594 return get_lines, init_lines, local_vars
1178 def write_func_lvar(self, local_vars): argument
1179 if not local_vars:
1182 if type(local_vars) is str:
1183 local_vars = [local_vars]
1185 local_vars.sort(key=len, reverse=True)
1186 for var in local_vars:
1190 def write_func(self, qual_ret, name, body, args=None, local_vars=None): argument
1192 self.write_func_lvar(local_vars=local_vars)
1428 def _multi_parse(ri, struct, init_lines, local_vars): argument
1439 local_vars.append(f'const struct nlattr *attr_{aspec.c_name};')
1445 local_vars.append('int i;')
1447 local_vars.append('struct ynl_parse_arg parg;')
1453 local_vars.append(f"unsigned int n_{struct[anest].c_name} = 0;")
1456 ri.cw.write_func_lvar(local_vars)
1542 local_vars = ['const struct nlattr *attr;',
1548 _multi_parse(ri, struct, init_lines, local_vars)
1558 local_vars = [f'{type_name(ri, "reply", deref=deref)} *dst;',
1566 _multi_parse(ri, ri.struct["reply"], init_lines, local_vars)
1579 local_vars = ['struct nlmsghdr *nlh;',
1585 local_vars += [f'{type_name(ri, rdir(direction))} *rsp;',
1590 ri.cw.write_func_lvar(local_vars)
1636 local_vars = ['struct ynl_dump_state yds = {};',
1640 for var in local_vars: