Re: importC with struct name and function conflict

2024-08-05 Thread Dakota via Digitalmars-d-learn
On Monday, 5 August 2024 at 11:35:56 UTC, Dennis wrote: On Monday, 5 August 2024 at 11:02:24 UTC, Dakota wrote: This will not work for me. (huge code base I can not change and maintain) You don't have to change the code where the type is defined per se, you just need to put it in any C file

Re: D feature request

2024-08-05 Thread Dom DiSc via Digitalmars-d-learn
On Sunday, 4 August 2024 at 10:06:49 UTC, aberba wrote: So if I have a feature request, but I don't have the necessary technical skills to draft a DIP with the implementation details, is there a process in D community to submit such a request? DIP Ideas?

Re: D feature request

2024-08-05 Thread user1234 via Digitalmars-d-learn
On Monday, 5 August 2024 at 03:09:41 UTC, IchorDev wrote: On Sunday, 4 August 2024 at 10:32:38 UTC, Richard (Rikki) Andrew Cattermole wrote: Chuck it into the ideas forum. If it interests somebody, somebody else can work on it. Also sometimes if a feature is very minor you can submit a ‘feat

Re: importC with struct name and function conflict

2024-08-05 Thread Dennis via Digitalmars-d-learn
On Monday, 5 August 2024 at 11:02:24 UTC, Dakota wrote: This will not work for me. (huge code base I can not change and maintain) You don't have to change the code where the type is defined per se, you just need to put it in any C file that can access the C symbol. clib_helpers.c: ```C #in

Re: importC with struct name and function conflict

2024-08-05 Thread Dakota via Digitalmars-d-learn
On Saturday, 3 August 2024 at 11:55:53 UTC, Dennis wrote: On Saturday, 3 August 2024 at 05:10:37 UTC, Dakota wrote: How can I get the function and type from importC? is there a auto rename mechanism ? The most pragmatic workaround is to add a typedef to the C code: ```C int S; struct S { int