drpriver

Results 9 issues of drpriver

Some C standard libary headers on macOS have versions of C standard library functions like qsort that take a clang block instead of a function pointer. ImportC does not implement...

ldc version: ``` LDC - the LLVM D compiler (1.30.0): based on DMD v2.100.1 and LLVM 14.0.3 built with LDC - the LLVM D compiler (1.30.0) Default target: arm64-apple-darwin21.5.0 Host...

For example, with the following simple c program: ```c #include int main(){ const char* foo = "hello world"; puts(foo); return 0; } ``` In the watch window, if you write...

Feature Request
Missing Support

This was reduced from code that uses `` ```C // z.c typedef void (__stdcall* proc)(void); struct Foo { proc p; }; ``` ```D // y.d import z; extern(C) void c();...

Feature:ImportC

This is related to this: https://github.com/dlang/dmd/issues/20270 The reason a linker error is raised at all for these unused intrinsics (which is a separate issue, you can't link against an intrinsic)...

Feature:ImportC

C compilers on windows support this pragma to make a note in the object file that a certain library should be linked. It translates to D’s `pragma(lib, ...)`.

Feature:ImportC

If you use ImportC to generate a .di file, you get a huge number of implementation macros that start with two underscores. Identifiers starting with two underscores are reserved by...

Feature:ImportC

```C int x = sizeof(int(int)); ``` Results in ```console Error: expression expected, not `int` ``` pointing at the first `int`.

Feature:ImportC

```console $ ldc2 --version LDC - the LLVM D compiler (1.40.0): based on DMD v2.110.0 and LLVM 19.1.3 built with LDC - the LLVM D compiler (1.39.0) Default target: arm64-apple-darwin23.6.0...