summaryrefslogtreecommitdiff
path: root/asm/labels.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-12-01 20:03:55 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-12-01 20:03:55 +0300
commit46c37b377219fc21e4b3037acbd935d7a3d41e51 (patch)
treee18ee89127b3ccbcc5f7b620467d57d5a92e3157 /asm/labels.c
parent194f93322fcd3f368a46564c7e3a2b8e9caa5ccf (diff)
downloadnasm-46c37b377219fc21e4b3037acbd935d7a3d41e51.tar.gz
labels: Use nasm_error helpers
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'asm/labels.c')
-rw-r--r--asm/labels.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/asm/labels.c b/asm/labels.c
index c00d6e5b..4e69d99a 100644
--- a/asm/labels.c
+++ b/asm/labels.c
@@ -387,9 +387,8 @@ static bool declare_label_lptr(union label *lptr,
if (!lptr->defn.special)
lptr->defn.special = perm_copy(special);
else if (nasm_stricmp(lptr->defn.special, special))
- nasm_error(ERR_NONFATAL,
- "symbol `%s' has inconsistent attributes `%s' and `%s'",
- lptr->defn.label, lptr->defn.special, special);
+ nasm_nonfatal("symbol `%s' has inconsistent attributes `%s' and `%s'",
+ lptr->defn.label, lptr->defn.special, special);
}
return true;
}
@@ -412,8 +411,8 @@ static bool declare_label_lptr(union label *lptr,
return false; /* Don't call define_label() after this! */
}
- nasm_error(ERR_NONFATAL, "symbol `%s' declared both as %s and %s",
- lptr->defn.label, types[lptr->defn.type], types[type]);
+ nasm_nonfatal("symbol `%s' declared both as %s and %s",
+ lptr->defn.label, types[lptr->defn.type], types[type]);
return false;
}
@@ -481,9 +480,8 @@ void define_label(const char *label, int32_t segment,
* even during the last pass.
*/
if (changed && pass0 > 1 && lptr->defn.type != LBL_SPECIAL) {
- nasm_error(ERR_WARNING, "label `%s' %s during code generation",
- lptr->defn.label,
- created ? "defined" : "changed");
+ nasm_warn("label `%s' %s during code generation",
+ lptr->defn.label, created ? "defined" : "changed");
}
lptr->defn.segment = segment;