Closed samis closed 9 years ago
@samis I'm not getting that definition. I use:
@[Include("stdarg.h", "eina/Eina.h", flags: "-I/Users/asterite-manas/Sandbox/efl/src/lib", prefix: %w(eina_))]
@[Link("eina")]
lib LibEina
end
Maybe I need to include more .h
files? What Include
are you using?
In my case /Users/asterite-manas/Sandbox/efl
contains the git checkout for the efl project, https://git.enlightenment.org/core/efl.git/tree
I'll perform further testing then to see if I can achieve the same result.
Right. Even with the following Include
it still generates the data structure:
@[Include("/home/samis/develop/efl/src/lib/eina/Eina.h", flags: "-I/home/samis/develop/efl/src/lib/", prefix: %w(eina_))]
The directory given is a fresh clone of the the git repository. I even more my system copy of the headers out of the way in order to eliminate them. I'm going to see exactly which file causes this to happen.
Oh, it's working fine on mac osx. The problem seems to happen in linux. I'll try to reproduce it, seems like a bug in nested fields.
I've narrowed it down to the contents of eina_lock.h
. I'll see if I can narrow it down to the specific functions causing it.
@samis Can you check now? I think I fixed it
It seems to be fixed, I'll take a more indepth-look in a moment.
Yep, this appears to be fixed now.
\o/
(I had difficulty coming up with a good title for this.) Since #8 was fixed, the tool can now successfully parse and generate code for Eina.h which is excellent. The generated code even almost compiles without manual intervention :grinning:. However, there is one issue with the generated code: It defines the struct
X___Data
twice, causing it to fail to compile. The two definitions start here and here respectively.