xpressn.c, cleanup error message

This commit is contained in:
h_vogt 2016-04-17 16:36:33 +02:00 committed by rlar
parent fa681584f4
commit 98ab040ef6
1 changed files with 1 additions and 15 deletions

View File

@ -523,22 +523,8 @@ nupa_define(dico_t *dico,
warn = message(dico, "%s:%d overwritten.\n", t, entry->level);
} else {
/* suppress error message, resulting from multiple definition of
symbols (devices) in .model lines with same name, but in different subcircuits.
Subcircuit expansion is o.k., we have to deal with this numparam
behaviour later. (H. Vogt 090426)
*/
/* error message for redefinition of symbols */
message(dico, "%s is already used,\n cannot be redefined\n", t);
#if 0
if ((c == 'U') && (tpe == 'U'))
message(dico, "%s is already used as subcircuit name,\n cannot be used for another subcircuit\n", t);
else if ((c == 'U') && (tpe == 'O'))
message(dico, "%s is already used as subcircuit name,\n cannot be used for model\n", t);
else if ((c == 'O') && (tpe == 'U'))
message(dico, "%s is already used as model name,\n cannot be used for subcircuit\n", t);
else if ((c == 'O') && (tpe == 'O'))
message(dico, "%s is already used as model name,\n cannot be reused for another model\n", t);
#endif
}
}