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-04-12 04:15:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-12 04:15:02 +0400
commit5aaf3ede76c91a062d09360301083b6f75a6a89f (patch)
tree4283c97a354f10b7ad24db9df97de023fb4e30a7 /source/blender/blenlib/intern/fileops.c
parentc8b19b7b7fee817e4c7934973c99040747be53c3 (diff)
code cleanup: remove unused var for windows and style edit (remove spaces between 'var[num]')
Diffstat (limited to 'source/blender/blenlib/intern/fileops.c')
-rw-r--r--source/blender/blenlib/intern/fileops.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index 90ced266e7f..576af23ed1b 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -202,7 +202,7 @@ int BLI_file_touch(const char *file)
#ifdef WIN32
-static char str[MAXPATHLEN+12];
+static char str[MAXPATHLEN + 12];
FILE *BLI_fopen(const char *filename, const char *mode)
{
@@ -212,33 +212,32 @@ FILE *BLI_fopen(const char *filename, const char *mode)
gzFile BLI_gzopen(const char *filename, const char *mode)
{
gzFile gzfile;
- int fi;
- if (!filename || !mode) {return 0;}
- else
-
- {
-
- wchar_t short_name_16 [256];
- char short_name [256];
- int i=0;
+ if (!filename || !mode) {
+ return 0;
+ }
+ else {
+ wchar_t short_name_16[256];
+ char short_name[256];
+ int i = 0;
/* xxx Creates file before transcribing the path */
- if(mode[0]=='w')
+ if(mode[0] == 'w')
fclose(ufopen(filename,"a"));
UTF16_ENCODE(filename);
- GetShortPathNameW(filename_16,short_name_16,256);
-
- for (i=0;i<256;i++) {short_name[i]=short_name_16[i];};
+ GetShortPathNameW(filename_16,short_name_16, 256);
+ for (i = 0; i < 256; i++) {
+ short_name[i] = short_name_16[i];
+ }
gzfile = gzopen(short_name,mode);
UTF16_UN_ENCODE(filename);
-
}
+
return gzfile;
}