comparison src/ccl.c @ 46370:40db0673e6f0

Most uses of XSTRING combined with STRING_BYTES or indirection changed to SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
author Ken Raeburn <raeburn@raeburn.org>
date Mon, 15 Jul 2002 00:00:41 +0000
parents 375e343422ef
children fc51841e5d97
comparison
equal deleted inserted replaced
46369:dd1d3b1d0053 46370:40db0673e6f0
2196 { 2196 {
2197 i = XFASTINT (AREF (status, 8)); 2197 i = XFASTINT (AREF (status, 8));
2198 if (ccl.ic < i && i < ccl.size) 2198 if (ccl.ic < i && i < ccl.size)
2199 ccl.ic = i; 2199 ccl.ic = i;
2200 } 2200 }
2201 outbufsize = STRING_BYTES (XSTRING (str)) * ccl.buf_magnification + 256; 2201 outbufsize = SBYTES (str) * ccl.buf_magnification + 256;
2202 outbuf = (char *) xmalloc (outbufsize); 2202 outbuf = (char *) xmalloc (outbufsize);
2203 ccl.last_block = NILP (contin); 2203 ccl.last_block = NILP (contin);
2204 ccl.multibyte = STRING_MULTIBYTE (str); 2204 ccl.multibyte = STRING_MULTIBYTE (str);
2205 produced = ccl_driver (&ccl, XSTRING (str)->data, outbuf, 2205 produced = ccl_driver (&ccl, SDATA (str), outbuf,
2206 STRING_BYTES (XSTRING (str)), outbufsize, (int *) 0); 2206 SBYTES (str), outbufsize, (int *) 0);
2207 for (i = 0; i < 8; i++) 2207 for (i = 0; i < 8; i++)
2208 XSET (AREF (status, i), Lisp_Int, ccl.reg[i]); 2208 XSET (AREF (status, i), Lisp_Int, ccl.reg[i]);
2209 XSETINT (AREF (status, 8), ccl.ic); 2209 XSETINT (AREF (status, 8), ccl.ic);
2210 UNGCPRO; 2210 UNGCPRO;
2211 2211