mirror of
https://github.com/cc65/cc65.git
synced 2025-04-20 06:37:56 +00:00
Use array type declaration to avoid &-operator.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5926 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
fa6dae8fa9
commit
f15b8246f9
@ -812,10 +812,10 @@ static void DoMemory (void)
|
||||
openCFile ();
|
||||
|
||||
fprintf (outputCFile,
|
||||
"extern void _OVERLAYADDR__;\n"
|
||||
"extern void _OVERLAYSIZE__;\n\n"
|
||||
"#define OVERLAY_ADDR (char*) &_OVERLAYADDR__\n"
|
||||
"#define OVERLAY_SIZE (unsigned)&_OVERLAYSIZE__\n\n");
|
||||
"extern void _OVERLAYADDR__[];\n"
|
||||
"extern void _OVERLAYSIZE__[];\n\n"
|
||||
"#define OVERLAY_ADDR (char*) _OVERLAYADDR__\n"
|
||||
"#define OVERLAY_SIZE (unsigned)_OVERLAYSIZE__\n\n");
|
||||
|
||||
if (fclose (outputCFile) != 0) {
|
||||
AbEnd ("Error closing %s: %s", outputCName, strerror (errno));
|
||||
|
Loading…
x
Reference in New Issue
Block a user