diff options
| author | Stefan Monnier | 2011-02-18 12:37:30 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-02-18 12:37:30 -0500 |
| commit | cbe81f1d96ca482c15d583cfd4a196d38af87972 (patch) | |
| tree | 8f0bbba3d3d444ea812d696e3d4cb45eb1543486 /src/process.c | |
| parent | aa56f3613e788df186bef09e2b5414428140377a (diff) | |
| download | emacs-cbe81f1d96ca482c15d583cfd4a196d38af87972.tar.gz emacs-cbe81f1d96ca482c15d583cfd4a196d38af87972.zip | |
* alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
* process.c (Fstart_process, Fmake_serial_process)
(Fmake_network_process, server_accept_connection):
Use empty_unibyte_string.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/process.c b/src/process.c index 4a145f7376a..210287a85f1 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1660,9 +1660,9 @@ usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */) | |||
| 1660 | } | 1660 | } |
| 1661 | 1661 | ||
| 1662 | 1662 | ||
| 1663 | XPROCESS (proc)->decoding_buf = make_uninit_string (0); | 1663 | XPROCESS (proc)->decoding_buf = empty_unibyte_string; |
| 1664 | XPROCESS (proc)->decoding_carryover = 0; | 1664 | XPROCESS (proc)->decoding_carryover = 0; |
| 1665 | XPROCESS (proc)->encoding_buf = make_uninit_string (0); | 1665 | XPROCESS (proc)->encoding_buf = empty_unibyte_string; |
| 1666 | 1666 | ||
| 1667 | XPROCESS (proc)->inherit_coding_system_flag | 1667 | XPROCESS (proc)->inherit_coding_system_flag |
| 1668 | = !(NILP (buffer) || !inherit_process_coding_system); | 1668 | = !(NILP (buffer) || !inherit_process_coding_system); |
| @@ -2918,9 +2918,9 @@ usage: (make-serial-process &rest ARGS) */) | |||
| 2918 | p->encode_coding_system = val; | 2918 | p->encode_coding_system = val; |
| 2919 | 2919 | ||
| 2920 | setup_process_coding_systems (proc); | 2920 | setup_process_coding_systems (proc); |
| 2921 | p->decoding_buf = make_uninit_string (0); | 2921 | p->decoding_buf = empty_unibyte_string; |
| 2922 | p->decoding_carryover = 0; | 2922 | p->decoding_carryover = 0; |
| 2923 | p->encoding_buf = make_uninit_string (0); | 2923 | p->encoding_buf = empty_unibyte_string; |
| 2924 | p->inherit_coding_system_flag | 2924 | p->inherit_coding_system_flag |
| 2925 | = !(!NILP (tem) || NILP (buffer) || !inherit_process_coding_system); | 2925 | = !(!NILP (tem) || NILP (buffer) || !inherit_process_coding_system); |
| 2926 | 2926 | ||
| @@ -3787,9 +3787,9 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3787 | } | 3787 | } |
| 3788 | setup_process_coding_systems (proc); | 3788 | setup_process_coding_systems (proc); |
| 3789 | 3789 | ||
| 3790 | p->decoding_buf = make_uninit_string (0); | 3790 | p->decoding_buf = empty_unibyte_string; |
| 3791 | p->decoding_carryover = 0; | 3791 | p->decoding_carryover = 0; |
| 3792 | p->encoding_buf = make_uninit_string (0); | 3792 | p->encoding_buf = empty_unibyte_string; |
| 3793 | 3793 | ||
| 3794 | p->inherit_coding_system_flag | 3794 | p->inherit_coding_system_flag |
| 3795 | = !(!NILP (tem) || NILP (buffer) || !inherit_process_coding_system); | 3795 | = !(!NILP (tem) || NILP (buffer) || !inherit_process_coding_system); |
| @@ -4364,9 +4364,9 @@ server_accept_connection (Lisp_Object server, int channel) | |||
| 4364 | p->encode_coding_system = ps->encode_coding_system; | 4364 | p->encode_coding_system = ps->encode_coding_system; |
| 4365 | setup_process_coding_systems (proc); | 4365 | setup_process_coding_systems (proc); |
| 4366 | 4366 | ||
| 4367 | p->decoding_buf = make_uninit_string (0); | 4367 | p->decoding_buf = empty_unibyte_string; |
| 4368 | p->decoding_carryover = 0; | 4368 | p->decoding_carryover = 0; |
| 4369 | p->encoding_buf = make_uninit_string (0); | 4369 | p->encoding_buf = empty_unibyte_string; |
| 4370 | 4370 | ||
| 4371 | p->inherit_coding_system_flag | 4371 | p->inherit_coding_system_flag |
| 4372 | = (NILP (buffer) ? 0 : ps->inherit_coding_system_flag); | 4372 | = (NILP (buffer) ? 0 : ps->inherit_coding_system_flag); |