home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18150 < prev    next >
Encoding:
Text File  |  1993-01-05  |  2.6 KB  |  62 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!rpi!ghost.dsi.unimi.it!ICIL64.CILEA.IT!LABENRSA
  3. From: labenrsa@ICIL64.CILEA.IT
  4. Subject: Re: SASC 6.1 Wrong Protos
  5. Nntp-Posting-Host: icil64.cilea.it
  6. References: <1993Jan4.091145.1581@ghost.dsi.unimi.it>,<38281@cbmvax.commodore.com>
  7. Sender: news-mail@ghost.dsi.unimi.it (News mail user)
  8. Organization: CILEA - v R. Sanzio 4 - Segrate - ITALY
  9. Date: Tue, 5 Jan 1993 13:23:17 GMT
  10. Message-ID: <1993Jan5.132317.16555@ghost.dsi.unimi.it>
  11. Reply-To: labenrsa@ICIL64.CILEA.IT
  12. Lines: 48
  13.  
  14. In article <38281@cbmvax.commodore.com>, peter@cbmvax.commodore.com (Peter Cherna) writes:
  15. >>And, by the way, either the proto or a pragma file somewhere should
  16. >>mention that these functions are __stdargs, or somebody should provide
  17. >>a double-standard amiga.lib (like the 6.X standard libraries).
  18. >
  19. >This would be a prototype change.  It couldn't be a pragma, since
  20. >these functions are in a linked library,...
  21.  
  22. Right, the problem is, as I understand, the clib/xxx_proto.h files
  23. are CBM's and should be compiler-independent, so you can't just
  24. stick a __stdargs or __regargs in there. The pragma files, on the
  25. other hand, already  are compiler-dependencies.
  26.  
  27. How about an include:compiler.h file (a' la iff) with things like
  28. #define STDARGS __stdargs
  29. that could be provided by the compiler manufacturer, or which could
  30. be replaced to adapt to a new compiler? Then the proto files could
  31. have things like VOID ASM foo (RG(a0) APTR bar);
  32.  
  33. I know this won't be perfect, but I already had to use this, and I
  34. see many people are doing the same. Perhaps it's better to find a
  35. standard place for such hacks now rather than have people tweek their
  36. includes with every compiler release.
  37.  
  38. BTW, this is still pretty easy, wait for the day when you'll have
  39. to accomodate for a few *picky* C++ compilers... ;)
  40.  
  41. >>And oh, it seems that the 6.1 Amiga.lib has no HookEntry(), and
  42. >>maybe none of the shorthands for BOOPSI methods mentioned in
  43. >>AmigaMail and BOOPSI examples that are floating around (DM, DSM).
  44. >
  45. >The original Boopsi examples used functions like DM() and DSM(),
  46. >....
  47.  
  48. Ok, I agree that the new methods names are much better.
  49. >
  50. >HookEntry() is in amiga.lib.
  51. I *may* be wrong, but slink complained it couldn't find it in
  52. the Amiga.lib that comes with SASC6.1. I was compiling with stdargs,
  53. so I had those underscores in symbols. Too bad doing an OML over
  54. amiga.lib is so slow (unless you have an A4000).
  55.  
  56. Besides, I know I can do without HookEntry, but I was just trying to write
  57. some *portable* code for a mag, hence I had to do without __asm.
  58.  
  59.             KUTGW  (keep up that good work!)
  60.             Andy
  61.  
  62.