style cleanup: changes to brace placement / newlines - for/while/if/switch
This commit is contained in:
@@ -39,7 +39,7 @@ FILE * ufopen(const char * filename, const char * mode)
|
||||
UTF16_ENCODE(filename);
|
||||
UTF16_ENCODE (mode);
|
||||
|
||||
if(filename_16 && mode_16) {
|
||||
if (filename_16 && mode_16) {
|
||||
f = _wfopen(filename_16, mode_16);
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ int urename(const char *oldname, const char *newname )
|
||||
UTF16_ENCODE(oldname);
|
||||
UTF16_ENCODE (newname);
|
||||
|
||||
if(oldname_16 && newname_16) r = _wrename(oldname_16, newname_16);
|
||||
if (oldname_16 && newname_16) r = _wrename(oldname_16, newname_16);
|
||||
|
||||
UTF16_UN_ENCODE(newname);
|
||||
UTF16_UN_ENCODE(oldname);
|
||||
@@ -94,7 +94,7 @@ int umkdir(const char *pathname)
|
||||
BOOL r = 0;
|
||||
UTF16_ENCODE(pathname);
|
||||
|
||||
if(pathname_16) r = CreateDirectoryW(pathname_16, NULL);
|
||||
if (pathname_16) r = CreateDirectoryW(pathname_16, NULL);
|
||||
|
||||
UTF16_UN_ENCODE(pathname);
|
||||
|
||||
@@ -123,10 +123,10 @@ int uput_getenv(const char *varname, char * value, size_t buffsize)
|
||||
{
|
||||
int r = 0;
|
||||
wchar_t * str;
|
||||
if(!buffsize) return r;
|
||||
if (!buffsize) return r;
|
||||
|
||||
UTF16_ENCODE(varname);
|
||||
if(varname_16) {
|
||||
if (varname_16) {
|
||||
str = _wgetenv(varname_16);
|
||||
conv_utf_16_to_8(str, value, buffsize);
|
||||
r = 1;
|
||||
@@ -143,7 +143,7 @@ int uputenv(const char *name, const char *value)
|
||||
int r = -1;
|
||||
UTF16_ENCODE(name);
|
||||
UTF16_ENCODE(value);
|
||||
if(name_16 && value_16) {
|
||||
if (name_16 && value_16) {
|
||||
r = (SetEnvironmentVariableW(name_16,value_16)!= 0) ? 0 : -1;
|
||||
}
|
||||
UTF16_UN_ENCODE(value);
|
||||
|
||||
Reference in New Issue
Block a user