From 498c5d26bb6360eda5c6cedbcf027e2cc67120ff Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 8 Aug 2022 20:56:41 +0800 Subject: [PATCH] ; Fix coding style in recently installed changes to print.c * src/print.c (struct print_buffer, struct print_context): Fix brace position and make comments more like what is in lisp.h/xterm.c/etc. --- src/print.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/print.c b/src/print.c index dca5a07d791..73535550bbf 100644 --- a/src/print.c +++ b/src/print.c @@ -63,11 +63,19 @@ static Lisp_Object being_printed[PRINT_CIRCLE]; /* Last char printed to stdout by printchar. */ static unsigned int printchar_stdout_last; -struct print_buffer { - char *buffer; /* Allocated buffer. */ - ptrdiff_t size; /* Size of allocated buffer. */ - ptrdiff_t pos; /* Chars stored in buffer. */ - ptrdiff_t pos_byte; /* Bytes stored in buffer. */ +struct print_buffer +{ + /* Allocated buffer. */ + char *buffer; + + /* Size of allocated buffer. */ + ptrdiff_t size; + + /* Chars stored in buffer. */ + ptrdiff_t pos; + + /* Bytes stored in buffer. */ + ptrdiff_t pos_byte; }; /* When printing into a buffer, first we put the text in this @@ -114,7 +122,8 @@ print_unwind (Lisp_Object saved_text) block of characters. */ /* State carried between print_prepare and print_finish. */ -struct print_context { +struct print_context +{ Lisp_Object printcharfun; Lisp_Object old_printcharfun; ptrdiff_t old_point, start_point; -- 2.39.2