<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">[+swift-dev] We're fine with the type not being 'void *' exactly, but we have been checking that it's pointer-sized (see ImportDecl.cpp's getSwiftStdlibType). I think you can probably get away with just dropping that specifically on non-Darwin AArch64 as long as you provide a custom implementation of CVaList"Pointer" that makes sense.<div class=""><br class=""></div><div class="">Now, the next level of complexity, which fortunately doesn't apply to your arch: why is it called "CVaListPointer" and not just CVaList? Because sometimes va_list is an array, which means it can mean different things in a parameter list vs. elsewhere.&nbsp;(<a href="https://www.uclibc.org/docs/psABI-x86_64.pdf" class="">This occurs on non-Darwin x86_64</a>.) The specific case I can think of is someone embedding a va_list in a struct, for whatever reason. CVaListPointer won't do the right thing there, since we're defining it explicitly in Swift to be pointer-sized. That said, I don't care about this case directly; as long as we don't try to import such a field as a CVaListPointer, it's okay. (It'll probably be imported as 'va_list', which is unfortunately confusing, but it won't come up much.)</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">So, once you've lifted the pointer-size restriction, we could consider renaming CVaListPointer to CVaList or something else (deprecating the old name), in light of the fact that it's not pointer-sized everywhere. This would require going to swift-evolution, though.</div><div class=""><br class=""></div><div class="">Jordan</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 17, 2017, at 10:54, Saleem Abdulrasool &lt;<a href="mailto:compnerd@compnerd.org" class="">compnerd@compnerd.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">Hey Jordan,</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">So, it seems that on AArch64, the va_list type is a structure, and larger than a void *.&nbsp; It seems that this prevents the importer from mapping the type into the swift representation.&nbsp; I was wondering if you had any suggestions on how to best handle this.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Thanks!</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Saleem</div><div dir="ltr" class="">-- <br class=""></div><div class="gmail_signature" data-smartmail="gmail_signature">Saleem Abdulrasool<br class="">compnerd (at) compnerd (dot) org</div>
</div></blockquote></div><br class=""></div></body></html>