<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 24 Aug 2024 at 12:28, Walter Bright via Digitalmars-d <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Another approach is to compile the .c file with the -di flag, which will <br>
translate the C code to D code and emit it into .di file. It doesn't do this <br>
perfectly, but usually gets it good enough that any rough edges can be edited <br>
and fixed.<br>
<br>
Then you can add @nogc and nothrow.<br></blockquote><div><br></div><div>*sigh* ... I'm not going to do that.</div><div>ImportC either works, or it doesn't... and it currently doesn't work, and I'm just going to move on.</div><div>By far the easiest and least ridiculous feeling thing can do right now is to just prototype the occasional C library call inline immediately before the call, which is what I've moved on with.<br></div><div>Fortunately my call volume is low.<br></div></div></div>