Click Here
home features news forums classifieds faqs links search
6053 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
Home
Features
News
Forums
Classifieds
Links
Downloads
Extras
OS4 Zone
IRC Network
AmigaWorld Radio
Newsfeed
Top Members
Amiga Dealers
Information
About Us
FAQs
Advertise
Polls
Terms of Service
Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
35 crawler(s) on-line.
 20 guest(s) on-line.
 1 member(s) on-line.


 cdimauro

You are an anonymous user.
Register Now!
 cdimauro:  1 min ago
 Trixie:  21 mins ago
 matthey:  24 mins ago
 MEGA_RJ_MICAL:  49 mins ago
 gryfon:  1 hr 30 mins ago
 JKD:  2 hrs 36 mins ago
 AmigaMac:  2 hrs 53 mins ago
 ggw:  2 hrs 53 mins ago
 NutsAboutAmiga:  3 hrs 59 mins ago
 DiscreetFX:  4 hrs 20 mins ago

/  Forum Index
   /  Amiga Development
      /  Is there an fdtrans for .h files?
Register To Post

PosterThread
Hans 
Is there an fdtrans for .h files?
Posted on 20-Mar-2008 14:47:45
#1 ]
Elite Member
Joined: 27-Dec-2003
Posts: 4956
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
Profile     Report this post  
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: 1137
From: Germany

@Hans

Check fd2pragma. It can create everything else, perhaps it can do this, too.

Bye,
Thomas

_________________
Email: thomas-rapp@web.de
Home: thomas-rapp.homepage.t-online.de

 Status: Offline
Profile     Report this post  
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: 2706
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
Profile     Report this post  
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: 4956
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
Profile     Report this post  
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: 1111
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
Profile     Report this post  
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: 4956
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
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle