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