Skip to content

Commit 011da4b

Browse files
authored
Merge pull request #8067 from Yay295/patch-2
Change AlignAfterOpenBracket in .clang-format to BlockIndent
2 parents 73dfe67 + 2973b04 commit 011da4b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1089
-669
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
BasedOnStyle: Google
44
AlwaysBreakAfterReturnType: All
55
AllowShortIfStatementsOnASingleLine: false
6-
AlignAfterOpenBracket: AlwaysBreak
6+
AlignAfterOpenBracket: BlockIndent
77
BinPackArguments: false
88
BinPackParameters: false
99
BreakBeforeBraces: Attach

src/Tk/_tkmini.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ typedef struct Tcl_Command_ *Tcl_Command;
8080
typedef void *ClientData;
8181

8282
typedef int(Tcl_CmdProc)(
83-
ClientData clientData, Tcl_Interp *interp, int argc, const char *argv[]);
83+
ClientData clientData, Tcl_Interp *interp, int argc, const char *argv[]
84+
);
8485
typedef void(Tcl_CmdDeleteProc)(ClientData clientData);
8586

8687
/* Typedefs derived from function signatures in Tcl header */
@@ -90,7 +91,8 @@ typedef Tcl_Command (*Tcl_CreateCommand_t)(
9091
const char *cmdName,
9192
Tcl_CmdProc *proc,
9293
ClientData clientData,
93-
Tcl_CmdDeleteProc *deleteProc);
94+
Tcl_CmdDeleteProc *deleteProc
95+
);
9496
/* Tcl_AppendResult */
9597
typedef void (*Tcl_AppendResult_t)(Tcl_Interp *interp, ...);
9698

@@ -127,7 +129,8 @@ typedef int (*Tk_PhotoPutBlock_t)(
127129
int y,
128130
int width,
129131
int height,
130-
int compRule);
132+
int compRule
133+
);
131134
/* Tk_FindPhoto */
132135
typedef Tk_PhotoHandle (*Tk_FindPhoto_t)(Tcl_Interp *interp, const char *imageName);
133136
/* Tk_PhotoGetImage */

src/Tk/tkImaging.c

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,16 @@ ImagingFind(const char *name) {
7373

7474
static int
7575
PyImagingPhotoPut(
76-
ClientData clientdata, Tcl_Interp *interp, int argc, const char **argv) {
76+
ClientData clientdata, Tcl_Interp *interp, int argc, const char **argv
77+
) {
7778
Imaging im;
7879
Tk_PhotoHandle photo;
7980
Tk_PhotoImageBlock block;
8081

8182
if (argc != 3) {
8283
TCL_APPEND_RESULT(
83-
interp, "usage: ", argv[0], " destPhoto srcImage", (char *)NULL);
84+
interp, "usage: ", argv[0], " destPhoto srcImage", (char *)NULL
85+
);
8486
return TCL_ERROR;
8587
}
8688

@@ -128,22 +130,25 @@ PyImagingPhotoPut(
128130
block.pixelPtr = (unsigned char *)im->block;
129131

130132
TK_PHOTO_PUT_BLOCK(
131-
interp, photo, &block, 0, 0, block.width, block.height, TK_PHOTO_COMPOSITE_SET);
133+
interp, photo, &block, 0, 0, block.width, block.height, TK_PHOTO_COMPOSITE_SET
134+
);
132135

133136
return TCL_OK;
134137
}
135138

136139
static int
137140
PyImagingPhotoGet(
138-
ClientData clientdata, Tcl_Interp *interp, int argc, const char **argv) {
141+
ClientData clientdata, Tcl_Interp *interp, int argc, const char **argv
142+
) {
139143
Imaging im;
140144
Tk_PhotoHandle photo;
141145
Tk_PhotoImageBlock block;
142146
int x, y, z;
143147

144148
if (argc != 3) {
145149
TCL_APPEND_RESULT(
146-
interp, "usage: ", argv[0], " srcPhoto destImage", (char *)NULL);
150+
interp, "usage: ", argv[0], " srcPhoto destImage", (char *)NULL
151+
);
147152
return TCL_ERROR;
148153
}
149154

@@ -183,13 +188,15 @@ TkImaging_Init(Tcl_Interp *interp) {
183188
"PyImagingPhoto",
184189
PyImagingPhotoPut,
185190
(ClientData)0,
186-
(Tcl_CmdDeleteProc *)NULL);
191+
(Tcl_CmdDeleteProc *)NULL
192+
);
187193
TCL_CREATE_COMMAND(
188194
interp,
189195
"PyImagingPhotoGet",
190196
PyImagingPhotoGet,
191197
(ClientData)0,
192-
(Tcl_CmdDeleteProc *)NULL);
198+
(Tcl_CmdDeleteProc *)NULL
199+
);
193200
}
194201

195202
/*
@@ -394,7 +401,8 @@ _func_loader(void *lib) {
394401
}
395402
return (
396403
(TK_PHOTO_PUT_BLOCK = (Tk_PhotoPutBlock_t)_dfunc(lib, "Tk_PhotoPutBlock")) ==
397-
NULL);
404+
NULL
405+
);
398406
}
399407

400408
int

0 commit comments

Comments
 (0)