diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-07-25 16:45:21 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-07-25 16:45:21 +0000 |
commit | 3b7cd5d89a226426df9c723d1f9ddfe08b7d1def (patch) | |
tree | cb956c8dd87690dcd9e5d554286d39edbb199c32 /util.h | |
parent | e8bff10f07b80d820545661cee9337d8664a64cb (diff) |
Gavin Andresen's JSON-RPC HTTP authentication,
faster initial block download
-- version 0.3.3
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@109 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -141,6 +141,8 @@ void ParseParameters(int argc, char* argv[]); const char* wxGetTranslation(const char* psz);
int GetFilesize(FILE* file);
void GetDataDir(char* pszDirRet);
+string GetConfigFile();
+void ReadConfigFile(map<string, string>& mapSettingsRet, map<string, vector<string> >& mapMultiSettingsRet);
#ifdef __WXMSW__
string MyGetSpecialFolderPath(int nFolder, bool fCreate);
#endif
@@ -348,7 +350,14 @@ void skipspaces(T& it) ++it;
}
-
+inline bool IsSwitchChar(char c)
+{
+#ifdef __WXMSW__
+ return c == '-' || c == '/';
+#else
+ return c == '-';
+#endif
+}
|