summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadDyld.c
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)
commit780e71600c142bee274fbf209304fb0ef2153143 (patch)
treebcfa89065ecea0a374bed505c235b77cba3db0a3 /unix/tclLoadDyld.c
parent8925939c12d52f0c01b12796108f74ec08addd1b (diff)
downloadtcl-780e71600c142bee274fbf209304fb0ef2153143.zip
tcl-780e71600c142bee274fbf209304fb0ef2153143.tar.gz
tcl-780e71600c142bee274fbf209304fb0ef2153143.tar.bz2
Fix indentation/brace usage style issues
Diffstat (limited to 'unix/tclLoadDyld.c')
-rw-r--r--unix/tclLoadDyld.c16
1 files changed, 12 insertions, 4 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) {