|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v1 1/1] libxl/gentypes: add range init to array elements in json parsing
Hi,I have made some comments regarding the patch in the original thread. While I am not a libxl expert, it would have been nice to address them or at least explain why they weren't addressed. I will repeat them here for convenience. On 28/10/2019 18:22, Oleksandr Grytsov wrote: My knowledge of libxl is quite limited. But I don't think this is correct, you want to call init_fn whether this has been autogenerated or not. + s += indent + " "+"%s_init(&%s[i]);\n" % (ty.elem_type.typename, v)
Looking at the other usage (like _libxl_C_type_init), init_fn is called with
s += "%s(%s);\n" % (ty.init_fn, ty.pass_arg(v, parent is None))
I am also not entirely sure whether we should also cater the ty.init_val != None
as well here.
Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |