diff options
| author | Kenichi Handa | 2000-02-26 01:13:11 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-02-26 01:13:11 +0000 |
| commit | b1cab2020b3c5e74809b58fa71e1304def5ac6f2 (patch) | |
| tree | 40472af824feed1e8a15e6a327de52625bd449c5 /src | |
| parent | 4013921d85c2d48564fcfdd6b60df79edcb561ad (diff) | |
| download | emacs-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -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); |