(read_process_output): Use new macro
authorKenichi Handa <handa@m17n.org>
Fri, 25 Jul 1997 07:46:51 +0000 (07:46 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 25 Jul 1997 07:46:51 +0000 (07:46 +0000)
CODING_REQUIRE_NO_CONVERSION
(send_process): Use new macro CODING_MAY_REQUIRE_NO_CONVERSION.

src/process.c

index 5cb882c..4f691dd 100644 (file)
@@ -2748,7 +2748,7 @@ read_process_output (proc, channel)
   /* Now set NCHARS how many bytes we must decode.  */
   nchars += coding->carryover_size;
 
-  if (CODING_REQUIRE_CONVERSION (coding))
+  if (! CODING_REQUIRE_NO_CONVERSION (coding))
     {
       int require = decoding_buffer_size (coding, nchars);
       int consumed, produced;
@@ -3001,7 +3001,7 @@ send_process (proc, buf, len, object)
     error ("Output file descriptor of %s is closed", procname);
 
   coding = proc_encode_coding_system[XINT (XPROCESS (proc)->outfd)];
-  if (CODING_REQUIRE_CONVERSION (coding))
+  if (! CODING_MAY_REQUIRE_NO_CONVERSION (coding))
     {
       int require = encoding_buffer_size (coding, len);
       int offset, dummy;