OpenDevice() return type discrepancies

Have a question about our Software Developer Kit? Ask them here.
Post Reply
User avatar
AlfredOne
Beta Tester
Beta Tester
Posts: 113
Joined: Wed Dec 22, 2010 11:45 pm
Location: Rome , Italy
Contact:

OpenDevice() return type discrepancies

Post by AlfredOne »

Hello,
in SDK53.20 ,the return type of OpenDevice(...) is declared:
1) 'BYTE' in clib/exec_protos.h
2) 'LONG' in interfaces/exec.h

Should they be equal?
Amiga500 Kickstart1.3
AmigaONE XE G4 833MHz - 2GB RAM - Radeon9200 256MB
AmigaONE X1000 - 2GB RAM - Radeon R9-280X 3GB + Radeon HIS4670 1GB DDR3 - AmigaOS4.1
My site: http://project4a.webs.com

User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 516
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: OpenDevice() return type discrepancies

Post by salass00 »

Should they be equal?
Not really. <clib/xxx_protos.h> includes are only for legacy M68k programs. <interfaces/xxx.h> files define the new PPC interfaces used by AmigaOS 4.x native programs.

User avatar
AlfredOne
Beta Tester
Beta Tester
Posts: 113
Joined: Wed Dec 22, 2010 11:45 pm
Location: Rome , Italy
Contact:

Re: OpenDevice() return type discrepancies

Post by AlfredOne »

salass00 wrote:
Should they be equal?
Not really. <clib/xxx_protos.h> includes are only for legacy M68k programs. <interfaces/xxx.h> files define the new PPC interfaces used by AmigaOS 4.x native programs.
Ok!
Thank you for clarification.
Amiga500 Kickstart1.3
AmigaONE XE G4 833MHz - 2GB RAM - Radeon9200 256MB
AmigaONE X1000 - 2GB RAM - Radeon R9-280X 3GB + Radeon HIS4670 1GB DDR3 - AmigaOS4.1
My site: http://project4a.webs.com

Post Reply