Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-12 19:13:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-12 19:13:06 +0400
commitbddc7dfc20919105e02181340d54b2faf52c95ac (patch)
tree1000cce34ce4cd97c87862fcd576d32f0711a0fa /source/blender/blenlib/intern/dynlib.c
parent2f2b15bbb2a30ee312d65c627d54a12445f4b987 (diff)
style cleanup: remaining BLI files.
Diffstat (limited to 'source/blender/blenlib/intern/dynlib.c')
-rw-r--r--source/blender/blenlib/intern/dynlib.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenlib/intern/dynlib.c b/source/blender/blenlib/intern/dynlib.c
index c80f3e08e3b..b66eda4f141 100644
--- a/source/blender/blenlib/intern/dynlib.c
+++ b/source/blender/blenlib/intern/dynlib.c
@@ -53,14 +53,14 @@ DynamicLibrary *BLI_dynlib_open(char *name)
void *handle;
UTF16_ENCODE(name);
- handle= LoadLibraryW(name_16);
+ handle = LoadLibraryW(name_16);
UTF16_UN_ENCODE(name);
if (!handle)
return NULL;
- lib= MEM_callocN(sizeof(*lib), "Dynamic Library");
- lib->handle= handle;
+ lib = MEM_callocN(sizeof(*lib), "Dynamic Library");
+ lib->handle = handle;
return lib;
}
@@ -75,16 +75,16 @@ char *BLI_dynlib_get_error_as_string(DynamicLibrary *lib)
int err;
/* if lib is NULL reset the last error code */
- err= GetLastError();
+ err = GetLastError();
if (!lib)
SetLastError(ERROR_SUCCESS);
if (err) {
static char buf[1024];
- if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- buf, sizeof(buf), NULL))
+ if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
+ NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+ buf, sizeof(buf), NULL))
{
return buf;
}
@@ -106,13 +106,13 @@ void BLI_dynlib_close(DynamicLibrary *lib)
DynamicLibrary *BLI_dynlib_open(char *name)
{
DynamicLibrary *lib;
- void *handle= dlopen(name, RTLD_LAZY);
+ void *handle = dlopen(name, RTLD_LAZY);
if (!handle)
return NULL;
- lib= MEM_callocN(sizeof(*lib), "Dynamic Library");
- lib->handle= handle;
+ lib = MEM_callocN(sizeof(*lib), "Dynamic Library");
+ lib->handle = handle;
return lib;
}