mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 682547 - Convert readstrings.cpp to bool, r=rstrong
This commit is contained in:
parent
16f77da63f
commit
56618dd3d2
@ -43,11 +43,6 @@
|
||||
#include "readstrings.h"
|
||||
#include "errors.h"
|
||||
|
||||
// Defined bool stuff here to reduce external dependencies
|
||||
typedef int PRBool;
|
||||
#define PR_TRUE 1
|
||||
#define PR_FALSE 0
|
||||
|
||||
#ifdef XP_WIN
|
||||
# define NS_tfopen _wfopen
|
||||
# define OPEN_MODE L"rb"
|
||||
@ -187,7 +182,7 @@ ReadStrings(const NS_tchar *path,
|
||||
fileContents[flen] = '\0';
|
||||
|
||||
char *buffer = fileContents;
|
||||
PRBool inStringsSection = PR_FALSE;
|
||||
bool inStringsSection = false;
|
||||
|
||||
unsigned int read = 0;
|
||||
|
||||
@ -209,7 +204,7 @@ ReadStrings(const NS_tchar *path,
|
||||
// we could frankly decide that this INI file is malformed right
|
||||
// here and stop, but we won't... keep going, looking for
|
||||
// a well-formed [section] to continue working with
|
||||
inStringsSection = PR_FALSE;
|
||||
inStringsSection = false;
|
||||
}
|
||||
else {
|
||||
if (section)
|
||||
|
@ -1578,7 +1578,7 @@ LaunchWinPostProcess(const WCHAR *appExe)
|
||||
wcscat(cmdline, exearg);
|
||||
|
||||
if (!_wcsnicmp(exeasync, L"false", 6) || !_wcsnicmp(exeasync, L"0", 2))
|
||||
async = PR_FALSE;
|
||||
async = false;
|
||||
|
||||
// We want to launch the post update helper app to update the Windows
|
||||
// registry even if there is a failure with removing the uninstall.update
|
||||
|
Loading…
x
Reference in New Issue
Block a user