Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–19 unchanged (19 lines)
20#include <sys/types.h>
21#include <sys/socket.h>
22#include <sys/uio.h>
23
24#include <limits.h>
25#include <errno.h>
26#include <endian.h>
27#include <stdint.h>
28#include <stdlib.h>
29#include <string.h>
30#include <unistd.h>
31
32#include "compat.h"
…lines 33–982 unchanged (950 lines)

After

…lines 1–19 unchanged (19 lines)
20#include <sys/types.h>
21#include <sys/socket.h>
22#include <sys/uio.h>
23
24#include <limits.h>
25#include <errno.h>
26#include <stdint.h>
27#include <stdlib.h>
28#include <string.h>
29#include <unistd.h>
30
31#include "compat.h"
32#include "imsg.h"
…lines 33–981 unchanged (949 lines)

Before

translation_unit
comment "/*\t$OpenBSD: imsg-buffer.c,v 1.30 2024/11/22 07:20:50 tb Exp"...
comment "/*\n * Copyright (c) 2023 Claudio Jeker <claudio@openbsd.org>"...
preproc_include
#include "#include"
system_lib_string "<sys/types.h>"
preproc_include
#include "#include"
system_lib_string "<sys/socket.h>"
preproc_include
#include "#include"
system_lib_string "<sys/uio.h>"
preproc_include
#include "#include"
system_lib_string "<limits.h>"
preproc_include
#include "#include"
system_lib_string "<errno.h>"
preproc_include
#include "#include"
system_lib_string "<endian.h>"
preproc_include
#include "#include"
system_lib_string "<stdint.h>"
preproc_include
#include "#include"
system_lib_string "<stdlib.h>"
preproc_include
#include "#include"
system_lib_string "<string.h>"
preproc_include
#include "#include"
system_lib_string "<unistd.h>"
preproc_include
#include "#include"
string_literal
" "\""
string_content "compat.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "imsg.h"
" "\""
preproc_call
preproc_directive "#undef"
preproc_arg "htobe16"
preproc_def
#define "#define"
identifier "htobe16"
preproc_arg "htons"
preproc_call
preproc_directive "#undef"
preproc_arg "htobe32"
preproc_def
#define "#define"
identifier "htobe32"
preproc_arg "htonl"
preproc_call
preproc_directive "#undef"
preproc_arg "htobe64"
preproc_def
#define "#define"
identifier "htobe64"
preproc_arg "htonll"
preproc_call
preproc_directive "#undef"
preproc_arg "be16toh"
preproc_def
#define "#define"
identifier "be16toh"
preproc_arg "ntohs"
preproc_call
preproc_directive "#undef"
preproc_arg "be32toh"
preproc_def
#define "#define"
identifier "be32toh"
preproc_arg "ntohl"
preproc_call
preproc_directive "#undef"
preproc_arg "be64toh"
preproc_def
#define "#define"
identifier "be64toh"
preproc_arg "ntohll"
struct_specifier (+84 nodes collapsed)
; ";"
declaration (+23 nodes collapsed)
declaration (+23 nodes collapsed)
declaration (+23 nodes collapsed)
declaration
storage_class_specifier
static "static"
primitive_type "void"
function_declarator
identifier "msgbuf_drain"
parameter_list
( "("
parameter_declaration
struct_specifier
struct "struct"
type_identifier "msgbuf"
abstract_pointer_declarator
* "*"
, ","
parameter_declaration
primitive_type "size_t"
) ")"
; ";"
preproc_def
#define "#define"
identifier "IBUF_FD_MARK_ON_STACK"
preproc_arg "-2"
function_definition (+151 nodes collapsed)
function_definition (+190 nodes collapsed)
function_definition (+281 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+81 nodes collapsed)
function_definition (+81 nodes collapsed)
function_definition (+52 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+41 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+101 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+37 nodes collapsed)
function_definition (+35 nodes collapsed)
function_definition (+55 nodes collapsed)
function_definition (+108 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+35 nodes collapsed)
function_definition (+79 nodes collapsed)
function_definition (+49 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+92 nodes collapsed)
function_definition (+43 nodes collapsed)
function_definition (+43 nodes collapsed)
function_definition (+43 nodes collapsed)
function_definition (+43 nodes collapsed)
function_definition (+71 nodes collapsed)
function_definition (+71 nodes collapsed)
function_definition (+71 nodes collapsed)
function_definition (+112 nodes collapsed)
function_definition (+67 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+30 nodes collapsed)
function_definition (+66 nodes collapsed)
function_definition (+91 nodes collapsed)
function_definition (+101 nodes collapsed)
function_definition (+207 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+27 nodes collapsed)
function_definition (+156 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+251 nodes collapsed)
function_definition (+557 nodes collapsed)
function_definition (+518 nodes collapsed)
function_definition (+203 nodes collapsed)
function_definition (+549 nodes collapsed)
function_definition (+64 nodes collapsed)
function_definition (+72 nodes collapsed)
function_definition (+60 nodes collapsed)
function_definition (+144 nodes collapsed)

After

translation_unit
comment "/*\t$OpenBSD: imsg-buffer.c,v 1.30 2024/11/22 07:20:50 tb Exp"...
comment "/*\n * Copyright (c) 2023 Claudio Jeker <claudio@openbsd.org>"...
preproc_include
#include "#include"
system_lib_string "<sys/types.h>"
preproc_include
#include "#include"
system_lib_string "<sys/socket.h>"
preproc_include
#include "#include"
system_lib_string "<sys/uio.h>"
preproc_include
#include "#include"
system_lib_string "<limits.h>"
preproc_include
#include "#include"
system_lib_string "<errno.h>"
preproc_include
#include "#include"
system_lib_string "<stdint.h>"
preproc_include
#include "#include"
system_lib_string "<stdlib.h>"
preproc_include
#include "#include"
system_lib_string "<string.h>"
preproc_include
#include "#include"
system_lib_string "<unistd.h>"
preproc_include
#include "#include"
string_literal
" "\""
string_content "compat.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "imsg.h"
" "\""
preproc_call
preproc_directive "#undef"
preproc_arg "htobe16"
preproc_def
#define "#define"
identifier "htobe16"
preproc_arg "htons"
preproc_call
preproc_directive "#undef"
preproc_arg "htobe32"
preproc_def
#define "#define"
identifier "htobe32"
preproc_arg "htonl"
preproc_call
preproc_directive "#undef"
preproc_arg "htobe64"
preproc_def
#define "#define"
identifier "htobe64"
preproc_arg "htonll"
preproc_call
preproc_directive "#undef"
preproc_arg "be16toh"
preproc_def
#define "#define"
identifier "be16toh"
preproc_arg "ntohs"
preproc_call
preproc_directive "#undef"
preproc_arg "be32toh"
preproc_def
#define "#define"
identifier "be32toh"
preproc_arg "ntohl"
preproc_call
preproc_directive "#undef"
preproc_arg "be64toh"
preproc_def
#define "#define"
identifier "be64toh"
preproc_arg "ntohll"
struct_specifier (+84 nodes collapsed)
; ";"
declaration (+23 nodes collapsed)
declaration (+23 nodes collapsed)
declaration (+23 nodes collapsed)
declaration
storage_class_specifier
static "static"
primitive_type "void"
function_declarator
identifier "msgbuf_drain"
parameter_list
( "("
parameter_declaration
struct_specifier
struct "struct"
type_identifier "msgbuf"
abstract_pointer_declarator
* "*"
, ","
parameter_declaration
primitive_type "size_t"
) ")"
; ";"
preproc_def
#define "#define"
identifier "IBUF_FD_MARK_ON_STACK"
preproc_arg "-2"
function_definition (+151 nodes collapsed)
function_definition (+190 nodes collapsed)
function_definition (+281 nodes collapsed)
function_definition (+84 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+81 nodes collapsed)
function_definition (+81 nodes collapsed)
function_definition (+52 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+41 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+101 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+61 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+85 nodes collapsed)
function_definition (+50 nodes collapsed)
function_definition (+37 nodes collapsed)
function_definition (+35 nodes collapsed)
function_definition (+55 nodes collapsed)
function_definition (+108 nodes collapsed)
function_definition (+26 nodes collapsed)
function_definition (+35 nodes collapsed)
function_definition (+79 nodes collapsed)
function_definition (+49 nodes collapsed)
function_definition (+90 nodes collapsed)
function_definition (+92 nodes collapsed)
function_definition (+43 nodes collapsed)
function_definition (+43 nodes collapsed)
function_definition (+43 nodes collapsed)
function_definition (+43 nodes collapsed)
function_definition (+71 nodes collapsed)
function_definition (+71 nodes collapsed)
function_definition (+71 nodes collapsed)
function_definition (+112 nodes collapsed)
function_definition (+67 nodes collapsed)
function_definition (+97 nodes collapsed)
function_definition (+30 nodes collapsed)
function_definition (+66 nodes collapsed)
function_definition (+91 nodes collapsed)
function_definition (+101 nodes collapsed)
function_definition (+207 nodes collapsed)
function_definition (+57 nodes collapsed)
function_definition (+27 nodes collapsed)
function_definition (+156 nodes collapsed)
function_definition (+76 nodes collapsed)
function_definition (+251 nodes collapsed)
function_definition (+557 nodes collapsed)
function_definition (+518 nodes collapsed)
function_definition (+203 nodes collapsed)
function_definition (+549 nodes collapsed)
function_definition (+64 nodes collapsed)
function_definition (+72 nodes collapsed)
function_definition (+60 nodes collapsed)
function_definition (+144 nodes collapsed)