Bug found in LIB.H (OSDK all versions ?)

Questions, bug reports, features requests, ... about the Oric Software Development Kit. Please indicate clearly in the title the related element (OSDK for generic questions, PictConv, FilePack, XA, Euphoric, etc...) to make it easy to locate messages.

Post Reply
User avatar
waskol
Flight Lieutenant
Posts: 394
Joined: Wed Jun 13, 2007 8:20 pm
Location: FRANCE, Paris

Bug found in LIB.H (OSDK all versions ?)

Post by waskol » Fri Oct 19, 2007 11:06 am

Mikael,

Working on what you know, I saw some bugs in LIB.H (folder OSDK\include)

#define peek(address) ( *((unsigned char*)address) )
#define poke(address,value) ( *((unsigned char*)address)=(unsigned char)value )

#define deek(address) ( *((unsigned int*)address) )
#define doke(address,value) ( *((unsigned int*)address)=(unsigned int)value )

the d is missing :wink:

Took me some time to understand it was not related to Label2Num and the changes I made to Make.bat...

User avatar
waskol
Flight Lieutenant
Posts: 394
Joined: Wed Jun 13, 2007 8:20 pm
Location: FRANCE, Paris

Post by waskol » Fri Oct 26, 2007 8:29 am

I was wondering if "address" was a C reserved word in the OSDK ?

User avatar
retroric
Pilot Officer
Posts: 90
Joined: Sun Nov 22, 2009 4:33 pm
Location: Paris, France

Post by retroric » Sun Nov 22, 2009 4:58 pm

Hi,

I Installed the OSDK some weeks ago and fortunately I saw this bug right away while having a look at lib.h, otherwise I could have spent hours trying to figure out what was wrong when using pokes and peeks ! ;-)

Would be nice to fix this small glitch in the next release of OSDK...

To answer waskol's question, "address" is NOT a reserved word in standard C, and I don't know any proprietary extensions that make use of that word.

User avatar
Dbug
Site Admin
Posts: 2942
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Sun Nov 22, 2009 9:12 pm

Ok, guess I need to add that one to the list of bugs to fix :)

User avatar
Chema
Game master
Posts: 2466
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Post by Chema » Sun Nov 22, 2009 11:13 pm

Dbug wrote:Ok, guess I need to add that one to the list of bugs to fix :)
I also remember there were another couple of issues, one with missing macros (there is a post somewhere) and another one with string management (sprintf mabye?). It was using a buffer which was not declared following XA syntax.

Can dig further to see the exact problem, if you don't have those on your list.

Post Reply