Browsing this Thread:
1 Anonymous Users
|
|
Need AROS headers without macros (for PortablE) |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Just can't stay away
![]()
Joined:
2008/3/15 3:10 From England
Group:
Registered Users Posts: 83
Level : 8
HP : 0 / 176
![]() |
I am hoping to port PortablE (my implementation of the E language) to AROS. But I have hit a big problem:
To allow OS calls to be used, I need to tell PortablE about them. I have written a crude tool which semi-automatically converts C headers into the form PortablE needs, and that has worked well for both OS3.9 & OS4. Unfortunately, it appears that AROS's procedure declarations use some funky macros, like this:
That's completely useless to me, as I need it to look something like this for my tool to work:
While I suppose it ought to be possible to modify my tool to handle AROS's esoteric declarations, it would be so much easier if either (a) someone told me where to find AROS's headers without macros, or (b) told me how to preprocess the header files (under Windows) to remove the macros.
Posted on: 2008/3/15 3:42
|
||||||||||
|
|||||||||||
|
|
Re: Need AROS headers without macros (for PortablE) |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Just can't stay away
![]()
Joined:
2008/3/15 3:10 From England
Group:
Registered Users Posts: 83
Level : 8
HP : 0 / 176
![]() |
Quote:
I was hoping that this could be done automatically, otherwise I might as well try parsing the AROS format directly ![]() I would have thought that it ought to be possible, since originally the C preprocessor would have been a separate program, but I have no idea where to look, or whether it might be possible to even get GCC to do the job for me...
Posted on: 2008/3/15 4:33
|
||||||||||
|
|||||||||||
|
|
Re: Need AROS headers without macros (for PortablE) |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2005/1/13 2:59 From AU
Group:
Registered Users Posts: 179
Level : 12
HP : 0 / 285
![]() |
gcc -E will give you the raw output from the preprocessor that would normally be passed to the compiler. You could process this output to get what you need.
Posted on: 2008/3/15 4:44
|
||||||||||
|
|||||||||||
|
|
Re: Need AROS headers without macros (for PortablE) |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2004/4/12 13:07 Group:
Registered Users Posts: 233
Level : 14
HP : 0 / 331
![]() |
Quote:
Another possibility I am now thinking of is to parse the .conf files in the AROS source. Every library has a .conf file (e.g. exec library has rom/exec/exec.conf) where the functions are listed. I think the format in these files resembles more what you want. greets, Staf.
Posted on: 2008/3/15 7:30
|
||||||||||
|
|||||||||||
|
|
Re: Need AROS headers without macros (for PortablE) |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Just can't stay away
![]()
Joined:
2008/3/15 3:10 From England
Group:
Registered Users Posts: 83
Level : 8
HP : 0 / 176
![]() |
@rob
Great, that sounds like just want I want - I think! @Fats Thanks for that suggestion - AmiDevCpp does not seem to contain those *.conf files, so I will download the 50MB of AROS source to (presumably) find those files.
Posted on: 2008/3/15 9:49
|
||||||||||
|
|||||||||||
|
|
Re: Need AROS headers without macros (for PortablE) |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Home away from home
![]()
Joined:
2004/3/30 23:19 From Clausthal-Zellerfeld, Germany
Group:
Registered Users Posts: 315
Level : 16
HP : 0 / 389
![]() |
You may also try to make stub functions. Such solution would work well on all amiga-like platforms.
Posted on: 2008/3/16 1:24
|
||||||||||
|
|||||||||||
You cannot start a new topic.
You can view topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.













