Poster | Thread |
Hans
| |
Is there an fdtrans for .h files? Posted on 20-Mar-2008 14:47:45
| | [ #1 ] |
|
|
|
Elite Member |
Joined: 27-Dec-2003 Posts: 5067
From: New Zealand | | |
|
| Fdtrans is a tool to take .sfd files used to make 68k libraries, and generate XML files used by idltool to create OD4 libraries. Is there a tool out there that would take a .h file containing function prototypes and turn that into an XML file?
Such a tool would make creating Amiga libraries from UNIX shared objects much easier. I know that OS4 can use shared objects now, but standard Amiga libraries are still preferable. Such a tool could even create shared objects stub libraries that use the standard library.
Actually, this would make turning old code into libraries easier too; no need to create .fd files.
Hans
_________________ http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project. https://keasigmadelta.com/ - More of my work. |
|
Status: Offline |
|
|
thomas
| |
Re: Is there an fdtrans for .h files? Posted on 20-Mar-2008 15:25:16
| | [ #2 ] |
|
|
|
Super Member |
Joined: 28-May-2003 Posts: 1144
From: Germany | | |
|
| |
Status: Offline |
|
|
salass00
| |
Re: Is there an fdtrans for .h files? Posted on 20-Mar-2008 15:39:32
| | [ #3 ] |
|
|
|
Elite Member |
Joined: 31-Oct-2003 Posts: 2707
From: Finland | | |
|
| @Hans
You can use fd2pragma to turn an .fd file and a clib file into an .sfd:
fd2pragma libname_lib.fd clib clib/libname_protos.h special=112
Or use special=140 to create an OS4 XML file. |
|
Status: Offline |
|
|
Hans
| |
Re: Is there an fdtrans for .h files? Posted on 20-Mar-2008 15:55:30
| | [ #4 ] |
|
|
|
Elite Member |
Joined: 27-Dec-2003 Posts: 5067
From: New Zealand | | |
|
| @salass00
Quote:
salass00 wrote: @Hans
You can use fd2pragma to turn an .fd file and a clib file into an .sfd:
fd2pragma libname_lib.fd clib clib/libname_protos.h special=112
Or use special=140 to create an OS4 XML file. |
But that's not what I'm looking for. I don't want to have to write an .fd file; I want to be able to give it a .h file with function prototypes (and maybe structure definitions, not that they're needed), and turn that into an OS4 XML file.
Hans
_________________ http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project. https://keasigmadelta.com/ - More of my work. |
|
Status: Offline |
|
|
abalaban
| |
Re: Is there an fdtrans for .h files? Posted on 20-Mar-2008 15:59:19
| | [ #5 ] |
|
|
|
Super Member |
Joined: 1-Oct-2004 Posts: 1114
From: France | | |
|
| @salass00
I think what Hans is looking for (and I must admit that I looked for it too, even considered to write one but already has too many projects right now) is a program that would take a C header (a .h) and create an XML OS4's library interface from that like what fdtrans does from an sfd. Such a program would greatly ease converting other platforms libraries to standard Amiga shared ones : creating an OS4 interface XML file from a C header is really a pain when there is more than 10 functions in the interface...
EDIT: it seems Hans answered quicker than I did Last edited by abalaban on 20-Mar-2008 at 04:00 PM.
_________________ AOS 4.1 : I dream it, Hyperion did it ! Now dreaming AOS 4.2... Thank you to all devs involved for this great job ! |
|
Status: Offline |
|
|
Hans
| |
Re: Is there an fdtrans for .h files? Posted on 20-Mar-2008 16:02:13
| | [ #6 ] |
|
|
|
Elite Member |
Joined: 27-Dec-2003 Posts: 5067
From: New Zealand | | |
|
| @abalaban
Yes, that's what I'm looking for.
Hans
_________________ http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project. https://keasigmadelta.com/ - More of my work. |
|
Status: Offline |
|
|