From 94dba90e8d88dba9db150697acba9e84bf967fe2 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 9 Jun 2024 09:10:57 +0800 Subject: [PATCH] ; Fix coding style of last change * src/process.c (read_and_insert_process_output) (read_and_dispose_of_process_output): Fix coding style. (cherry picked from commit f896c5e8cab3d2eaf46dca4bc4c16e3c58c4bfaa) --- src/process.c | 26 +++++++++++++------------- 1 file 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) return Qt; } -static void -read_and_dispose_of_process_output (struct Lisp_Process *p, char *chars, - ssize_t nbytes, - struct coding_system *coding); +static void read_and_dispose_of_process_output (struct Lisp_Process *, char *, + ssize_t, + struct coding_system *); -static void -read_and_insert_process_output (struct Lisp_Process *p, char *buf, - ssize_t nread, - struct coding_system *process_coding); +static void read_and_insert_process_output (struct Lisp_Process *, char *, + ssize_t, + struct coding_system *); /* Read pending output from the process channel, 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_ SET_PT_BOTH (opoint, opoint_byte); } -static void read_and_insert_process_output (struct Lisp_Process *p, char *buf, - ssize_t nread, - struct coding_system *process_coding) +static void +read_and_insert_process_output (struct Lisp_Process *p, char *buf, + ssize_t nread, + struct coding_system *process_coding) { if (!nread || NILP (p->buffer) || !BUFFER_LIVE_P (XBUFFER (p->buffer))) return; @@ -6359,10 +6358,11 @@ static void read_and_insert_process_output (struct Lisp_Process *p, char *buf, ptrdiff_t opoint, opoint_byte; read_process_output_before_insert (p, &old_read_only, &old_begv, &old_zv, - &before, &before_byte, &opoint, &opoint_byte); + &before, &before_byte, &opoint, + &opoint_byte); /* Adapted from call_process. */ - if (NILP (BVAR (XBUFFER(p->buffer), enable_multibyte_characters)) + if (NILP (BVAR (XBUFFER (p->buffer), enable_multibyte_characters)) && ! CODING_MAY_REQUIRE_DECODING (process_coding)) { insert_1_both (buf, nread, nread, 0, 0, 0); -- 2.39.2