comparison src/process.c @ 18974:ded7c036e1ca

(read_process_output): Use new macro CODING_REQUIRE_NO_CONVERSION (send_process): Use new macro CODING_MAY_REQUIRE_NO_CONVERSION.
author Kenichi Handa <handa@m17n.org>
date Fri, 25 Jul 1997 07:46:51 +0000
parents 84b78d90cd45
children 7b5642657857
comparison
equal deleted inserted replaced
18973:9f5b8d5eed29 18974:ded7c036e1ca
2746 if (nchars <= 0) return nchars; 2746 if (nchars <= 0) return nchars;
2747 2747
2748 /* Now set NCHARS how many bytes we must decode. */ 2748 /* Now set NCHARS how many bytes we must decode. */
2749 nchars += coding->carryover_size; 2749 nchars += coding->carryover_size;
2750 2750
2751 if (CODING_REQUIRE_CONVERSION (coding)) 2751 if (! CODING_REQUIRE_NO_CONVERSION (coding))
2752 { 2752 {
2753 int require = decoding_buffer_size (coding, nchars); 2753 int require = decoding_buffer_size (coding, nchars);
2754 int consumed, produced; 2754 int consumed, produced;
2755 2755
2756 if (XSTRING (p->decoding_buf)->size < require) 2756 if (XSTRING (p->decoding_buf)->size < require)
2999 error ("Process %s not running", procname); 2999 error ("Process %s not running", procname);
3000 if (XINT (XPROCESS (proc)->outfd) < 0) 3000 if (XINT (XPROCESS (proc)->outfd) < 0)
3001 error ("Output file descriptor of %s is closed", procname); 3001 error ("Output file descriptor of %s is closed", procname);
3002 3002
3003 coding = proc_encode_coding_system[XINT (XPROCESS (proc)->outfd)]; 3003 coding = proc_encode_coding_system[XINT (XPROCESS (proc)->outfd)];
3004 if (CODING_REQUIRE_CONVERSION (coding)) 3004 if (! CODING_MAY_REQUIRE_NO_CONVERSION (coding))
3005 { 3005 {
3006 int require = encoding_buffer_size (coding, len); 3006 int require = encoding_buffer_size (coding, len);
3007 int offset, dummy; 3007 int offset, dummy;
3008 unsigned char *temp_buf = NULL; 3008 unsigned char *temp_buf = NULL;
3009 3009