diff options
| author | dkf <donal.k.fellows@manchester.ac.uk> | 2024-03-19 14:56:45 (GMT) |
|---|---|---|
| committer | dkf <donal.k.fellows@manchester.ac.uk> | 2024-03-19 14:56:45 (GMT) |
| commit | c740da6bc26ac29aeb5b548f7e350fd15ec1f890 (patch) | |
| tree | bcfa89065ecea0a374bed505c235b77cba3db0a3 /unix/tclLoadDyld.c | |
| parent | 9e0fbf5ef34d910758ee6a09bbf91bb5ec8f58f4 (diff) | |
| download | tcl-c740da6bc26ac29aeb5b548f7e350fd15ec1f890.zip tcl-c740da6bc26ac29aeb5b548f7e350fd15ec1f890.tar.gz tcl-c740da6bc26ac29aeb5b548f7e350fd15ec1f890.tar.bz2 | |
Fix indentation/brace usage style issues
Diffstat (limited to 'unix/tclLoadDyld.c')
| -rw-r--r-- | unix/tclLoadDyld.c | 16 |
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) { |
