Code: Select all
extern void f0();
extern void f1();
struct {
void (*foo)();
unsigned char (*bar)();
} test[] = {
{f0, f1},
{f0, f1}
};
Code: Select all
zcc +zx --c-code-in-asm -vn -a bugptr.c
Code: Select all
...
MODULE bugptr
INCLUDE "z80_crt0.hdr"
;extern void f0();
;extern void f1();
;struct {
;void (*foo)();
;unsigned char (*bar)();
;} test[] = {
SECTION data_compiler
._test
;{f0, f1},an
defw _f0
defw _f1
defb 0
;{f0, f1}
defw _f0
defw _f1
defb 0
;};
SECTION code_compiler
...
Can somebody put some light into this?
Thanks and best regards,
Manuel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot