units.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Amiga units for fpc.
  2. There should not be any problems to use
  3. this units in Amiga or in linux.
  4. For the ms-dos cross-compiler you have to
  5. do some changes.
  6. First you have to rename the units to 8.3
  7. e.g intuition.pas to intuitio.pas
  8. No need to change in the units the compiler
  9. will find the units anyway.
  10. There are a few you will have problems with,
  11. expansion.pas and expansionbase.pas. What
  12. you can do is to rename them to expan.pas
  13. and expanbas.pas. If a unit uses the old
  14. name the compiler will complain so just
  15. fix that unit when the problems pops up.
  16. The same problem with configregs.pas and
  17. configvars.pas, perhaps do cfgvars.pas and
  18. cfgregs.pas
  19. If you find any bugs or errors in the units
  20. please inform me. Address bellow.
  21. If you want do translate other libraries to
  22. fpc use Fd2Pragma, it's on Aminet. Read the
  23. docs for Fd2Pragma on how to make units
  24. for fpc. Fd2Pragma translates almost everything
  25. correct for fpc. There is one thing you have to
  26. do to the new unit, make a search/replace for
  27. Cardinal/ULONG. Fpc for Amiga don't handle
  28. Cardinals in this version (later), so we have
  29. to use ULONG instead. ULONG is typedefed as
  30. Longint (in Exec) in a new version of fpc
  31. we just have to typedef ULONG as Cardinal.
  32. What's left is for you to translate structs
  33. and defines.:)
  34. There are also two rexx scripts that can be
  35. handy, getrecord.rexx and make.rexx. You can
  36. use getrecord.rexx to check that you have
  37. translated the structs correct. Read more
  38. in the scripts headers.
  39. Other than that just have fun!
  40. [email protected]