aboutsummaryrefslogtreecommitdiffstats
path: root/src/ccl.c
diff options
context:
space:
mode:
authorKen Raeburn1999-09-13 02:23:04 +0000
committerKen Raeburn1999-09-13 02:23:04 +0000
commit03699b140e13aee5b49fa4678e97dff5855e789c (patch)
tree79213225b326eeaa5385bf863f2e3c2df62963e5 /src/ccl.c
parent926106201f8bfebbaac3c5b0f5e36192b7f00f1b (diff)
downloademacs-03699b140e13aee5b49fa4678e97dff5855e789c.tar.gz
emacs-03699b140e13aee5b49fa4678e97dff5855e789c.zip
Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member access.
Diffstat (limited to 'src/ccl.c')
-rw-r--r--src/ccl.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ccl.c b/src/ccl.c
index 46c5f0fa7ed..fb9fbf60e4a 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -1328,7 +1328,7 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
1328 1328
1329 /* Check map varidity. */ 1329 /* Check map varidity. */
1330 if (!CONSP (map)) continue; 1330 if (!CONSP (map)) continue;
1331 map = XCONS(map)->cdr; 1331 map = XCDR (map);
1332 if (!VECTORP (map)) continue; 1332 if (!VECTORP (map)) continue;
1333 size = XVECTOR (map)->size; 1333 size = XVECTOR (map)->size;
1334 if (size <= 1) continue; 1334 if (size <= 1) continue;
@@ -1372,8 +1372,8 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
1372 } 1372 }
1373 else if (CONSP (content)) 1373 else if (CONSP (content))
1374 { 1374 {
1375 attrib = XCONS (content)->car; 1375 attrib = XCAR (content);
1376 value = XCONS (content)->cdr; 1376 value = XCDR (content);
1377 if (!NUMBERP (attrib) || !NUMBERP (value)) 1377 if (!NUMBERP (attrib) || !NUMBERP (value))
1378 continue; 1378 continue;
1379 reg[RRR] = i; 1379 reg[RRR] = i;
@@ -1437,7 +1437,7 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
1437 1437
1438 /* Check map varidity. */ 1438 /* Check map varidity. */
1439 if (!CONSP (map)) continue; 1439 if (!CONSP (map)) continue;
1440 map = XCONS (map)->cdr; 1440 map = XCDR (map);
1441 if (!VECTORP (map)) continue; 1441 if (!VECTORP (map)) continue;
1442 size = XVECTOR (map)->size; 1442 size = XVECTOR (map)->size;
1443 if (size <= 1) continue; 1443 if (size <= 1) continue;
@@ -1477,8 +1477,8 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
1477 } 1477 }
1478 else if (CONSP (content)) 1478 else if (CONSP (content))
1479 { 1479 {
1480 attrib = XCONS (content)->car; 1480 attrib = XCAR (content);
1481 value = XCONS (content)->cdr; 1481 value = XCDR (content);
1482 if (!NUMBERP (attrib) || !NUMBERP (value)) 1482 if (!NUMBERP (attrib) || !NUMBERP (value))
1483 continue; 1483 continue;
1484 reg[RRR] = i; 1484 reg[RRR] = i;
@@ -1522,7 +1522,7 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
1522 reg[RRR] = -1; 1522 reg[RRR] = -1;
1523 break; 1523 break;
1524 } 1524 }
1525 map = XCONS(map)->cdr; 1525 map = XCDR (map);
1526 if (!VECTORP (map)) 1526 if (!VECTORP (map))
1527 { 1527 {
1528 reg[RRR] = -1; 1528 reg[RRR] = -1;
@@ -1546,8 +1546,8 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
1546 reg[RRR] = i; 1546 reg[RRR] = i;
1547 else if (CONSP (content)) 1547 else if (CONSP (content))
1548 { 1548 {
1549 attrib = XCONS (content)->car; 1549 attrib = XCAR (content);
1550 value = XCONS (content)->cdr; 1550 value = XCDR (content);
1551 if (!NUMBERP (attrib) || !NUMBERP (value)) 1551 if (!NUMBERP (attrib) || !NUMBERP (value))
1552 continue; 1552 continue;
1553 reg[rrr] = XUINT(value); 1553 reg[rrr] = XUINT(value);
@@ -1663,8 +1663,8 @@ resolve_symbol_ccl_program (ccl)
1663 if (INTEGERP (contents)) 1663 if (INTEGERP (contents))
1664 continue; 1664 continue;
1665 else if (CONSP (contents) 1665 else if (CONSP (contents)
1666 && SYMBOLP (XCONS (contents)->car) 1666 && SYMBOLP (XCAR (contents))
1667 && SYMBOLP (XCONS (contents)->cdr)) 1667 && SYMBOLP (XCDR (contents)))
1668 { 1668 {
1669 /* This is the new style for embedding symbols. The form is 1669 /* This is the new style for embedding symbols. The form is
1670 (SYMBOL . PROPERTY). (get SYMBOL PROPERTY) should give 1670 (SYMBOL . PROPERTY). (get SYMBOL PROPERTY) should give
@@ -1673,7 +1673,7 @@ resolve_symbol_ccl_program (ccl)
1673 if (EQ (result, ccl)) 1673 if (EQ (result, ccl))
1674 result = Fcopy_sequence (ccl); 1674 result = Fcopy_sequence (ccl);
1675 1675
1676 val = Fget (XCONS (contents)->car, XCONS (contents)->cdr); 1676 val = Fget (XCAR (contents), XCDR (contents));
1677 if (NATNUMP (val)) 1677 if (NATNUMP (val))
1678 XVECTOR (result)->contents[i] = val; 1678 XVECTOR (result)->contents[i] = val;
1679 else 1679 else
@@ -2038,10 +2038,10 @@ Return index number of the registered map.")
2038 if (!CONSP (slot)) 2038 if (!CONSP (slot))
2039 break; 2039 break;
2040 2040
2041 if (EQ (symbol, XCONS (slot)->car)) 2041 if (EQ (symbol, XCAR (slot)))
2042 { 2042 {
2043 index = make_number (i); 2043 index = make_number (i);
2044 XCONS (slot)->cdr = map; 2044 XCDR (slot) = map;
2045 Fput (symbol, Qcode_conversion_map, map); 2045 Fput (symbol, Qcode_conversion_map, map);
2046 Fput (symbol, Qcode_conversion_map_id, index); 2046 Fput (symbol, Qcode_conversion_map_id, index);
2047 return index; 2047 return index;