From: Po Lu Date: Mon, 8 Aug 2022 12:56:41 +0000 (+0800) Subject: ; Fix coding style in recently installed changes to print.c X-Git-Tag: emacs-29.0.90~1447^2~317 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=498c5d26bb6360eda5c6cedbcf027e2cc67120ff;p=emacs.git ; 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. --- 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;