diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 10:18:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 10:18:31 +0400 |
commit | 69e6894b15271884623ea6f56ead06db83acbe99 (patch) | |
tree | b68200606afaca06cf7552f6b12fc20ebd30d487 /source/blender/blenlib/intern/dynlib.c | |
parent | 7b99ae0ad3017e373be2a344e30d190b70ca66b4 (diff) |
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
Diffstat (limited to 'source/blender/blenlib/intern/dynlib.c')
-rw-r--r-- | source/blender/blenlib/intern/dynlib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/intern/dynlib.c b/source/blender/blenlib/intern/dynlib.c index c23feb975df..e300d09ffbc 100644 --- a/source/blender/blenlib/intern/dynlib.c +++ b/source/blender/blenlib/intern/dynlib.c @@ -56,7 +56,7 @@ DynamicLibrary *BLI_dynlib_open(char *name) handle= LoadLibraryW(name_16); UTF16_UN_ENCODE(name); - if(!handle) + if (!handle) return NULL; lib= MEM_callocN(sizeof(*lib), "Dynamic Library"); @@ -76,13 +76,13 @@ char *BLI_dynlib_get_error_as_string(DynamicLibrary *lib) /* if lib is NULL reset the last error code */ err= GetLastError(); - if(!lib) + if (!lib) SetLastError(ERROR_SUCCESS); - if(err) { + if (err) { static char buf[1024]; - if(FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS, + if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buf, sizeof(buf), NULL)) return buf; @@ -106,7 +106,7 @@ DynamicLibrary *BLI_dynlib_open(char *name) DynamicLibrary *lib; void *handle= dlopen(name, RTLD_LAZY); - if(!handle) + if (!handle) return NULL; lib= MEM_callocN(sizeof(*lib), "Dynamic Library"); |