diff options
| author | Po Lu | 2024-06-09 09:10:57 +0800 |
|---|---|---|
| committer | Po Lu | 2024-06-09 09:11:01 +0800 |
| commit | f896c5e8cab3d2eaf46dca4bc4c16e3c58c4bfaa (patch) | |
| tree | e1c7208f0f41e8d705dd450bae1247b29934f4be /src/process.c | |
| parent | d4bbffe83d85662f3c168870df6916187f654088 (diff) | |
| download | emacs-f896c5e8cab3d2eaf46dca4bc4c16e3c58c4bfaa.tar.gz emacs-f896c5e8cab3d2eaf46dca4bc4c16e3c58c4bfaa.zip | |
; Fix coding style of last change
* src/process.c (read_and_insert_process_output)
(read_and_dispose_of_process_output): Fix coding style.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/process.c b/src/process.c index fe4dcc531c2..94aeac4d7da 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -6140,15 +6140,13 @@ read_process_output_error_handler (Lisp_Object error_val) | |||
| 6140 | return Qt; | 6140 | return Qt; |
| 6141 | } | 6141 | } |
| 6142 | 6142 | ||
| 6143 | static void | 6143 | static void read_and_dispose_of_process_output (struct Lisp_Process *, char *, |
| 6144 | read_and_dispose_of_process_output (struct Lisp_Process *p, char *chars, | 6144 | ssize_t, |
| 6145 | ssize_t nbytes, | 6145 | struct coding_system *); |
| 6146 | struct coding_system *coding); | ||
| 6147 | 6146 | ||
| 6148 | static void | 6147 | static void read_and_insert_process_output (struct Lisp_Process *, char *, |
| 6149 | read_and_insert_process_output (struct Lisp_Process *p, char *buf, | 6148 | ssize_t, |
| 6150 | ssize_t nread, | 6149 | struct coding_system *); |
| 6151 | struct coding_system *process_coding); | ||
| 6152 | 6150 | ||
| 6153 | /* Read pending output from the process channel, | 6151 | /* Read pending output from the process channel, |
| 6154 | starting with our buffered-ahead character if we have one. | 6152 | starting with our buffered-ahead character if we have one. |
| @@ -6346,9 +6344,10 @@ read_process_output_after_insert (struct Lisp_Process *p, Lisp_Object *old_read_ | |||
| 6346 | SET_PT_BOTH (opoint, opoint_byte); | 6344 | SET_PT_BOTH (opoint, opoint_byte); |
| 6347 | } | 6345 | } |
| 6348 | 6346 | ||
| 6349 | static void read_and_insert_process_output (struct Lisp_Process *p, char *buf, | 6347 | static void |
| 6350 | ssize_t nread, | 6348 | read_and_insert_process_output (struct Lisp_Process *p, char *buf, |
| 6351 | struct coding_system *process_coding) | 6349 | ssize_t nread, |
| 6350 | struct coding_system *process_coding) | ||
| 6352 | { | 6351 | { |
| 6353 | if (!nread || NILP (p->buffer) || !BUFFER_LIVE_P (XBUFFER (p->buffer))) | 6352 | if (!nread || NILP (p->buffer) || !BUFFER_LIVE_P (XBUFFER (p->buffer))) |
| 6354 | return; | 6353 | return; |
| @@ -6359,10 +6358,11 @@ static void read_and_insert_process_output (struct Lisp_Process *p, char *buf, | |||
| 6359 | ptrdiff_t opoint, opoint_byte; | 6358 | ptrdiff_t opoint, opoint_byte; |
| 6360 | 6359 | ||
| 6361 | read_process_output_before_insert (p, &old_read_only, &old_begv, &old_zv, | 6360 | read_process_output_before_insert (p, &old_read_only, &old_begv, &old_zv, |
| 6362 | &before, &before_byte, &opoint, &opoint_byte); | 6361 | &before, &before_byte, &opoint, |
| 6362 | &opoint_byte); | ||
| 6363 | 6363 | ||
| 6364 | /* Adapted from call_process. */ | 6364 | /* Adapted from call_process. */ |
| 6365 | if (NILP (BVAR (XBUFFER(p->buffer), enable_multibyte_characters)) | 6365 | if (NILP (BVAR (XBUFFER (p->buffer), enable_multibyte_characters)) |
| 6366 | && ! CODING_MAY_REQUIRE_DECODING (process_coding)) | 6366 | && ! CODING_MAY_REQUIRE_DECODING (process_coding)) |
| 6367 | { | 6367 | { |
| 6368 | insert_1_both (buf, nread, nread, 0, 0, 0); | 6368 | insert_1_both (buf, nread, nread, 0, 0, 0); |