OpenDevice() return type discrepancies

Have a question about our Software Developer Kit? Ask them here.

OpenDevice() return type discrepancies

Postby AlfredOne » Tue May 08, 2012 8:30 pm

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
AlfredOne
Beta Tester
Beta Tester
 
Posts: 112
Joined: Thu Dec 23, 2010 12:45 am
Location: Rome , Italy

Re: OpenDevice() return type discrepancies

Postby salass00 » Tue May 08, 2012 8:38 pm

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
salass00
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 477
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland

Re: OpenDevice() return type discrepancies

Postby AlfredOne » Wed May 09, 2012 12:23 am

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
User avatar
AlfredOne
Beta Tester
Beta Tester
 
Posts: 112
Joined: Thu Dec 23, 2010 12:45 am
Location: Rome , Italy


Return to SDK Support

Who is online

Users browsing this forum: No registered users and 2 guests