diff options
author | Peter Johnson <peter@tortall.net> | 2002-10-27 09:21:39 +0000 |
---|---|---|
committer | Peter Johnson <peter@tortall.net> | 2002-10-27 09:21:39 +0000 |
commit | 2f19ce4ecdfc03df71ba623549df2efff14adbd8 (patch) | |
tree | 32abf26f9b0a77904f16855a7e27ecd18758e61c /libyasm/floatnum.c | |
parent | caf89035f8d3bf0c5e4c93fdf590e62538c2d7ae (diff) | |
download | yasm-2f19ce4ecdfc03df71ba623549df2efff14adbd8.tar.gz |
Delete last of global variables by making a line manager and passing around
the line index. Fixes some minor line number/error message nits due to
incorrect usage of line_index in old global variable method.
svn path=/trunk/yasm/; revision=787
Diffstat (limited to 'libyasm/floatnum.c')
-rw-r--r-- | libyasm/floatnum.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libyasm/floatnum.c b/libyasm/floatnum.c index 6f98dc26..f7b4fe60 100644 --- a/libyasm/floatnum.c +++ b/libyasm/floatnum.c @@ -511,10 +511,11 @@ floatnum_delete(floatnum *flt) } void -floatnum_calc(floatnum *acc, ExprOp op, /*@unused@*/ floatnum *operand) +floatnum_calc(floatnum *acc, ExprOp op, /*@unused@*/ floatnum *operand, + unsigned long lindex) { if (op != EXPR_NEG) - Error(_("Unsupported floating-point arithmetic operation")); + Error(lindex, _("Unsupported floating-point arithmetic operation")); else acc->sign ^= 1; } |