summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2024-03-19 14:56:45 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2024-03-19 14:56:45 (GMT)
commitc740da6bc26ac29aeb5b548f7e350fd15ec1f890 (patch)
treebcfa89065ecea0a374bed505c235b77cba3db0a3 /unix
parent9e0fbf5ef34d910758ee6a09bbf91bb5ec8f58f4 (diff)
downloadtcl-c740da6bc26ac29aeb5b548f7e350fd15ec1f890.zip
tcl-c740da6bc26ac29aeb5b548f7e350fd15ec1f890.tar.gz
tcl-c740da6bc26ac29aeb5b548f7e350fd15ec1f890.tar.bz2
Fix indentation/brace usage style issues
Diffstat (limited to 'unix')
-rw-r--r--unix/tclLoadDyld.c16
-rw-r--r--unix/tclUnixSock.c1
-rw-r--r--unix/tclUnixTest.c2
-rw-r--r--unix/tclXtNotify.c2
-rw-r--r--unix/tclXtTest.c2
5 files changed, 15 insertions, 8 deletions
diff --git a/unix/tclLoadDyld.c b/unix/tclLoadDyld.c
index 7525abe..6aa14b2 100644
--- a/unix/tclLoadDyld.c
+++ b/unix/tclLoadDyld.c
@@ -257,8 +257,12 @@ TclpDlopen(
&dyldObjFileImage);
if (err == NSObjectFileImageSuccess && dyldObjFileImage) {
int nsflags = NSLINKMODULE_OPTION_RETURN_ON_ERROR;
- if (!(flags & 1)) nsflags |= NSLINKMODULE_OPTION_PRIVATE;
- if (!(flags & 2)) nsflags |= NSLINKMODULE_OPTION_BINDNOW;
+ if (!(flags & 1)) {
+ nsflags |= NSLINKMODULE_OPTION_PRIVATE;
+ }
+ if (!(flags & 2)) {
+ nsflags |= NSLINKMODULE_OPTION_BINDNOW;
+ }
module = NSLinkModule(dyldObjFileImage, nativePath, nsflags);
NSDestroyObjectFileImage(dyldObjFileImage);
if (module) {
@@ -654,8 +658,12 @@ TclpLoadMemory(
* Extract the module we want from the image of the object file.
*/
- if (!(flags & 1)) nsflags |= NSLINKMODULE_OPTION_PRIVATE;
- if (!(flags & 2)) nsflags |= NSLINKMODULE_OPTION_BINDNOW;
+ if (!(flags & 1)) {
+ nsflags |= NSLINKMODULE_OPTION_PRIVATE;
+ }
+ if (!(flags & 2)) {
+ nsflags |= NSLINKMODULE_OPTION_BINDNOW;
+ }
module = NSLinkModule(dyldObjFileImage, "[Memory Based Bundle]", nsflags);
NSDestroyObjectFileImage(dyldObjFileImage);
if (!module) {
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index 36ed409..78ed008 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -1322,7 +1322,6 @@ TcpConnect(
for (statePtr->myaddr = statePtr->myaddrlist;
statePtr->myaddr != NULL;
statePtr->myaddr = statePtr->myaddr->ai_next) {
-
/*
* No need to try combinations of local and remote addresses of
* different families.
diff --git a/unix/tclUnixTest.c b/unix/tclUnixTest.c
index 133cdf6..cdb1caa 100644
--- a/unix/tclUnixTest.c
+++ b/unix/tclUnixTest.c
@@ -72,7 +72,7 @@ static Tcl_ObjCmdProc TestfindexecutableCmd;
static Tcl_ObjCmdProc TestforkCmd;
static Tcl_ObjCmdProc TestgotsigCmd;
static Tcl_FileProc TestFileHandlerProc;
-static void AlarmHandler(int signum);
+static void AlarmHandler(int signum);
/*
*----------------------------------------------------------------------
diff --git a/unix/tclXtNotify.c b/unix/tclXtNotify.c
index aa88760..8ca2c5f 100644
--- a/unix/tclXtNotify.c
+++ b/unix/tclXtNotify.c
@@ -91,7 +91,7 @@ static int WaitForEvent(const Tcl_Time * timePtr);
* Functions defined in this file for use by users of the Xt Notifier:
*/
-MODULE_SCOPE void InitNotifier(void);
+MODULE_SCOPE void InitNotifier(void);
MODULE_SCOPE XtAppContext TclSetAppContext(XtAppContext ctx);
/*
diff --git a/unix/tclXtTest.c b/unix/tclXtTest.c
index 09f454c..c6bcc18 100644
--- a/unix/tclXtTest.c
+++ b/unix/tclXtTest.c
@@ -21,7 +21,7 @@ static Tcl_ObjCmdProc TesteventloopCmd;
* Functions defined in tclXtNotify.c for use by users of the Xt Notifier:
*/
-extern void InitNotifier(void);
+extern void InitNotifier(void);
extern XtAppContext TclSetAppContext(XtAppContext ctx);
/*