emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 498c5d26bb: ; Fix coding style in recently installed changes to p


From: Po Lu
Subject: master 498c5d26bb: ; Fix coding style in recently installed changes to print.c
Date: Mon, 8 Aug 2022 08:57:05 -0400 (EDT)

branch: master
commit 498c5d26bb6360eda5c6cedbcf027e2cc67120ff
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    ; 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 dca5a07d79..73535550bb 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]