March 20, 2013
On 2013-03-20 14:59, Andrea Fontana wrote:

> *Very* useful. I hope it will be updated with some small changes (like
> anonymous struct alias replacement and d keyword replacement) :)

It should already to D keyword replacement, if not, please report an issue with a test case:

https://github.com/jacob-carlborg/dstep/issues/new

What is "anonymous struct alias replacement"? You can also create issues for enhancement requests.

-- 
/Jacob Carlborg
March 20, 2013
On 2013-03-20 14:25, Mike Parker wrote:

> Can dstep output function declarations as aliased function pointers in
> the format I use in Derelict?

BTW, why does it uses aliases and not declare a function pointer directly?

-- 
/Jacob Carlborg
March 20, 2013
On Wednesday, 20 March 2013 at 19:10:28 UTC, Jacob Carlborg wrote:
> On 2013-03-20 14:59, Andrea Fontana wrote:
>
>> *Very* useful. I hope it will be updated with some small changes (like
>> anonymous struct alias replacement and d keyword replacement) :)
>
> It should already to D keyword replacement, if not, please report an issue with a test case:

Maybe I have a old (binary) version for linux. For example params named "out" are not replaced with something else (f.e. _out)

> https://github.com/jacob-carlborg/dstep/issues/new
>
> What is "anonymous struct alias replacement"? You can also create issues for enhancement requests.

I mean that typedef struct { ... } hello; is translate as an anonymous struct and then "aliased". I think it can be translated directly as a named struct.
March 20, 2013
On 2013-03-20 22:02, Andrea Fontana wrote:

> Maybe I have a old (binary) version for linux. For example params named
> "out" are not replaced with something else (f.e. _out)

I checked the history and see that I added a fixed for this for function parameters just after the release. I'm pretty sure that in all other place it will handle it correctly.

> I mean that typedef struct { ... } hello; is translate as an anonymous
> struct and then "aliased". I think it can be translated directly as a
> named struct.

I see, I'm not so how easy this would be. But I can have a look. Please add an issue so it's not forgotten.

-- 
/Jacob Carlborg
March 21, 2013
On Wednesday, 20 March 2013 at 19:54:42 UTC, Jacob Carlborg wrote:
> On 2013-03-20 14:25, Mike Parker wrote:
>
>> Can dstep output function declarations as aliased function pointers in
>> the format I use in Derelict?
>
> BTW, why does it uses aliases and not declare a function pointer directly?

Because some time ago DMD started shipping with
'--export-dynamic' in the config file on Linux to (AFAIK)
facilitate generation of exception stack traces. I was using
straight function pointers at the time and, as a result, no one
could use Derelict on Linux because of symbol clashes (e.g. the
function pointer for glClear would clash with the glClear symbol
in the shared lib). Switching to aliased function pointers was
the work around. I will never "get" Linux.
March 21, 2013
On 2013-03-21 04:37, Mike Parker wrote:

> Because some time ago DMD started shipping with
> '--export-dynamic' in the config file on Linux to (AFAIK)
> facilitate generation of exception stack traces. I was using
> straight function pointers at the time and, as a result, no one
> could use Derelict on Linux because of symbol clashes (e.g. the
> function pointer for glClear would clash with the glClear symbol
> in the shared lib). Switching to aliased function pointers was
> the work around. I will never "get" Linux.

Ok, I see.

-- 
/Jacob Carlborg
1 2
Next ›   Last »