Thread: PDOS for Amiga
View Single Post
Old 05 March 2021, 07:23   #54
kerravon
Registered User
 
Join Date: Mar 2021
Location: Ligao, Free World North
Posts: 228
Quote:
Originally Posted by Thomas Richter View Post
There is nothing linked. The executable just retrieves the library pointer, and in that library is an array of functions, one of which is Read(). In old times, there was still a set of "stub functions" in amiga.lib which called through the function pointer array of the library,
Did amiga.lib exist in the first release of the Amiga SDK issued after the Amiga 1000 was released?

In order to execute Read(), were you nominally required to
#include <clib/dos_protos.h>
(and did that exist in the first SDK?)

I'm thinking that I would like to have the above header file, but make it:

#define Read(a, b, c) DOSBase->Read(a,b,c)

rather than having a normal prototype and a real function.

It would be transparent to any application that was following the rules.

Is there anything wrong with that approach?

Thanks. Paul.
kerravon is offline  
 
Page generated in 0.07967 seconds with 11 queries