added a comment on where to fix a bug

git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@448 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
marcobaye
2025-08-09 15:37:55 +00:00
parent 68c20bbc8e
commit 5cee2c0f2a
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -1,5 +1,5 @@
// ACME - a crossassembler for producing 6502/65c02/65816/65ce02 code.
// Copyright (C) 1998-2024 Marco Baye
// Copyright (C) 1998-2025 Marco Baye
// Have a look at "acme.c" for further info
//
// symbol stuff
@@ -160,8 +160,14 @@ void symbol_set_object(struct symbol *symbol, struct object *new_value, bits pow
// compare types
// if too different, needs power (or complains)
if (symbol->object.type != new_value->type) {
if (!(powers & POWER_CHANGE_OBJTYPE))
if (!(powers & POWER_CHANGE_OBJTYPE)) {
throw_redef_error(exception_symbol_defined, &symbol->definition, "Previous definition.");
/* FIXME - this goes wrong if a forward reference is assumed to be an int and
later defined to be a string! the call above will not show the previous
definition, because there isn't one.
improve error output in these cases!
*/
}
// CAUTION: if line above triggers, we still go ahead and change type!
// this is to keep "!for" working, where the counter var is accessed.
symbol->object = *new_value; // copy whole struct including type
+1 -1
View File
@@ -9,7 +9,7 @@
#define RELEASE "0.97" // update before release FIXME
#define CODENAME "Zem" // update before release
#define CHANGE_DATE "26 Jul" // update before release FIXME
#define CHANGE_DATE "1 Aug" // update before release FIXME
#define CHANGE_YEAR "2025" // update before release
//#define HOME_PAGE "http://home.pages.de/~mac_bacon/smorbrod/acme/"
#define HOME_PAGE "http://sourceforge.net/p/acme-crossass/" // FIXME