On 22 June 2017 at 17:06, Greg Kurz <gr...@kaod.org> wrote: > Function types cannot reside in the same sorted list as opaque types since > they may depend on a type which would be defined later. > > Of course, the same problem could arise if a function type depends on > another function type with greater alphabetical order. Hopefully we > don't have that at this time.
The other approach would be to put function types somewhere else and leave typedefs.h for the simple 'opaque types for structures' that it was started as. For instance we have include/qemu/fprintf-fn.h as a precedent. thanks -- PMM