summaryrefslogtreecommitdiffstats
path: root/arith.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-09-17 09:49:25 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-09-17 09:49:25 -0700
commit4a5a29a76b8e5aa139209aabe310c2179a60608d (patch)
tree498688e76d70fcf1504b02f105b750eaa4f8371d /arith.c
parent01628a8244053ced7dd0f20e13e4ce3ff3e81481 (diff)
downloadtxr-4a5a29a76b8e5aa139209aabe310c2179a60608d.tar.gz
txr-4a5a29a76b8e5aa139209aabe310c2179a60608d.tar.bz2
txr-4a5a29a76b8e5aa139209aabe310c2179a60608d.zip
* arith.c (comp_trunc, logcomp): logcomp renamed to lognot,
consistent with Common Lisp. * eval.c (eval_init): logcomp to lognot. * lib.h (logcomp): Declaration updated.
Diffstat (limited to 'arith.c')
-rw-r--r--arith.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arith.c b/arith.c
index 75f4748d..1d63d1a9 100644
--- a/arith.c
+++ b/arith.c
@@ -1649,16 +1649,16 @@ static val comp_trunc(val a, val bits)
}
bad:
- uw_throwf(error_s, lit("logcomp: operation failed on ~s"), a, nao);
+ uw_throwf(error_s, lit("lognot: operation failed on ~s"), a, nao);
bad2:
- uw_throwf(error_s, lit("logcomp: bits value ~s is not a fixnum"), bits, nao);
+ uw_throwf(error_s, lit("lognot: bits value ~s is not a fixnum"), bits, nao);
bad3:
- uw_throwf(error_s, lit("logcomp: non-integral operand ~s"), a, nao);
+ uw_throwf(error_s, lit("lognot: non-integral operand ~s"), a, nao);
}
-val logcomp(val a, val bits)
+val lognot(val a, val bits)
{
val b;
@@ -1674,11 +1674,11 @@ val logcomp(val a, val bits)
goto bad;
return b;
default:
- uw_throwf(error_s, lit("logcomp: non-integral operand ~s"), a, nao);
+ uw_throwf(error_s, lit("lognot: non-integral operand ~s"), a, nao);
}
bad:
- uw_throwf(error_s, lit("logcomp: operation failed on ~s"), a, nao);
+ uw_throwf(error_s, lit("lognot: operation failed on ~s"), a, nao);
}
val logtrunc(val a, val bits)