home *** CD-ROM | disk | FTP | other *** search
/ Creative Computers / CreativeComputers.iso / shareware / intuition / reqtools_2.1e / glue / gcc / gcc_glue.lha / fd2gcc / fd2gcc.doc next >
Encoding:
Text File  |  1993-02-27  |  795 b   |  27 lines

  1. fd2gcc is a simple and incomplete program to generate gcc inline headers.
  2. It was written too fast to be general purpose and after all I only needed
  3. it for reqtools.library anyway.
  4.  
  5. e.g.  for foo.library
  6.  
  7. join fd:foo_lib.fd include:clib/foo_protos.h as foo.in
  8.  
  9. fd2gcc <foo.in >foo.out
  10.  
  11. foo.out should be edited a bit and then moved to inline directory.
  12.  
  13. fd2gcc is not 100% correct and fails on things like mathXXX.library (2
  14. return registers) but most libraries pass ok.
  15.  
  16. So, if you don't have perl, fd2gcc might be just what you need.
  17.  
  18. Also note that if you use some special names in your foo_protos.h
  19.  
  20. e.g.  LONG FooFunc(struct FooStruct *foostruct, BlahBlah);
  21.                                                 ^^^^^^^^
  22.  
  23. You'll have to add the string "BlahBlah" to the OTHERS in fd2gcc.l
  24.  
  25. marc.
  26.  
  27.