Closed rcorre closed 8 years ago
Fixing the comment above makes ex_dir not segfault for me anymore. One additional thing I noticed is that al_get_fs_entry_name
has the wrong type. Once you fix that, changing the print_entry
in ex_dir.d to call fromStringz
on the returned name should make everything print correctly.
@SiegeLord yup, you're right. The callback needs to be extern(C)
.
Great, thanks!
This adds fully support for the 5.1.11 API. It is not all tested, but I ported over some examples to validate some of the new additions (there's also a Makefile for building the examples).
The
ex_dir
example currently segfaults and I haven't been able to figure out why yet, but I wanted to get this PR up.