aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2000-02-26 01:13:11 +0000
committerKenichi Handa2000-02-26 01:13:11 +0000
commitb1cab2020b3c5e74809b58fa71e1304def5ac6f2 (patch)
tree40472af824feed1e8a15e6a327de52625bd449c5 /src
parent4013921d85c2d48564fcfdd6b60df79edcb561ad (diff)
downloademacs-b1cab2020b3c5e74809b58fa71e1304def5ac6f2.tar.gz
emacs-b1cab2020b3c5e74809b58fa71e1304def5ac6f2.zip
(ccl_driver) [CCL_MapMultiple]: When the mapped value is
`lambda', set reg[RRR] to the map index. (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set reg[RRR] to 0. Otherwise, set it to -1.
Diffstat (limited to 'src')
-rw-r--r--src/ccl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ccl.c b/src/ccl.c
index 01d6dd6ca4b..0b11bafe7d2 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -1450,6 +1450,7 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
1450 } 1450 }
1451 else if (EQ (content, Qlambda)) 1451 else if (EQ (content, Qlambda))
1452 { 1452 {
1453 reg[RRR] = i;
1453 break; 1454 break;
1454 } 1455 }
1455 else 1456 else
@@ -1492,13 +1493,13 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
1492 reg[RRR] = -1; 1493 reg[RRR] = -1;
1493 else 1494 else
1494 { 1495 {
1496 reg[RRR] = 0;
1495 content = XVECTOR (map)->contents[point]; 1497 content = XVECTOR (map)->contents[point];
1496 if (NILP (content)) 1498 if (NILP (content))
1497 reg[RRR] = -1; 1499 reg[RRR] = -1;
1498 else if (NUMBERP (content)) 1500 else if (NUMBERP (content))
1499 reg[rrr] = XINT (content); 1501 reg[rrr] = XINT (content);
1500 else if (EQ (content, Qt)) 1502 else if (EQ (content, Qt));
1501 reg[RRR] = i;
1502 else if (CONSP (content)) 1503 else if (CONSP (content))
1503 { 1504 {
1504 attrib = XCAR (content); 1505 attrib = XCAR (content);