[z88dk-dev] sccz80 bug with comma operators?

Bridge to the z88dk-developers mailing list
Post Reply
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

[z88dk-dev] sccz80 bug with comma operators?

Post by alvin »

This define is in a header file:

#define intrinsic_store16(address,value) ((unsigned int)(intrinsic_store16_address_##address(),intrinsic_store16_value_##value()))

In C source there is this:

intrinsic_store16(_curr_time,0);

which should ultimately be compiled into two calls:

call _intrinsic_store16_address__curr_time
call _intrinsic_store16_value_0

but with sccz80 I am getting this:

call _INTRINSIC_STORE16_ADDRESS__CURR_
call _intrinsic_store16_value_0

Note the truncation in name and change in case. Is there a bug in sccz80 where a change in case might occur and name lengths are perhaps too short?



------------------------------------------------------------------------------
User avatar
dom
Well known member
Posts: 2091
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

Note the truncation in name and change in case. Is there a bug in sccz80 where a change in case might occur and name lengths are perhaps too short?
This appears to have been an old feature for names > 32 characters. I've now remove dit.



------------------------------------------------------------------------------
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

This appears to have been an old feature for names > 32 characters. I've now remove dit.
Yep, that fixed the problem thanks.



------------------------------------------------------------------------------
Post Reply