Skip to content

Commit 2cf1091

Browse files
committed
Updated breakpad to chrome_53/b7efb2d318fafa435bd79131386ce604eb74f905
Removed unused hash-related include Fixed some compile errors for clang
1 parent dd4d47a commit 2cf1091

File tree

2,386 files changed

+33486
-486906
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,386 files changed

+33486
-486906
lines changed

Server/core/CServerImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ void CServerImpl::HandleInput ( void )
852852
WCHAR wUNICODE[2] = { iStdIn, 0 };
853853
Printf ( "%s", UTF16ToMbUTF8(wUNICODE).c_str() );
854854
#else
855-
wchar_t wUNICODE[2] = { iStdIn, 0 };
855+
wchar_t wUNICODE[2] = { (wchar_t)iStdIn, 0 };
856856
if ( !g_bSilent && !g_bNoCurses )
857857
wprintw ( m_wndInput, "%s", UTF16ToMbUTF8(wUNICODE).c_str() );
858858
#endif

Server/mods/deathmatch/logic/lua/CLuaCFunctions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void CLuaCFunctions::RemoveFunction ( const SString& strName )
7878
CLuaCFunction* CLuaCFunctions::GetFunction ( lua_CFunction f )
7979
{
8080
// Quick cull of unknown pointer range
81-
if ( f < ms_pFunctionPtrLow || f > ms_pFunctionPtrHigh )
81+
if ( reinterpret_cast<void*>(f) < ms_pFunctionPtrLow || reinterpret_cast<void*>(f) > ms_pFunctionPtrHigh )
8282
return NULL;
8383

8484
CFastHashMap < lua_CFunction, CLuaCFunction* >::iterator it;
@@ -108,7 +108,7 @@ CLuaCFunction* CLuaCFunctions::GetFunction ( const char* szName )
108108
bool CLuaCFunctions::IsNotFunction ( lua_CFunction f )
109109
{
110110
// Return true if unknown pointer range
111-
return ( f < ms_pFunctionPtrLow || f > ms_pFunctionPtrHigh );
111+
return ( reinterpret_cast<void*>(f) < ms_pFunctionPtrLow || reinterpret_cast<void*>(f) > ms_pFunctionPtrHigh );
112112
}
113113

114114

Server/sdk/MTAPlatform.h

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ extern "C" bool g_bNoTopBar;
8383
#include <sys/time.h>
8484
#include <sys/times.h>
8585

86-
// Non-standard hash include
87-
#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))
88-
#include <hash_fun.h>
89-
#else
90-
#include <ext/hash_fun.h>
91-
#endif
92-
9386
#define MAX_PATH 255
9487

9588
#ifndef stricmp
@@ -109,17 +102,7 @@ extern "C" bool g_bNoTopBar;
109102
// Itoa replacement function
110103
char* itoa ( int value, char* result, int base );
111104

112-
// Hash function
113-
namespace __gnu_cxx
114-
{
115-
template<> struct hash < std::string >
116-
{
117-
size_t operator()( const std::string& str ) const
118-
{
119-
return hash< const char* >()( str.c_str() );
120-
}
121-
};
122-
}
105+
123106
#endif
124107

125108
// This function should be used instead of mkdir to preserve multiplatform

Shared/sdk/SharedUtil.HashMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@ namespace std
111111
}
112112
};
113113
}
114-
114+
115115
#endif // WITH_ALLOC_TRACKING

vendor/google-breakpad/.gitignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
# Ignore common compiled artifacts.
3333
*~
34+
*.dwo
3435
*.o
3536
lib*.a
3637
/breakpad.pc
@@ -45,13 +46,14 @@ lib*.a
4546
/src/tools/linux/md2core/minidump-2-core
4647
/src/tools/linux/symupload/minidump_upload
4748
/src/tools/linux/symupload/sym_upload
49+
/src/tools/mac/dump_syms/dump_syms
4850

4951
# Ignore autotools generated artifacts.
5052
.deps
5153
.dirstamp
5254
autom4te.cache/
5355
/config.cache
54-
#config.h
56+
config.h
5557
/config.log
5658
/config.status
5759
/Makefile
@@ -65,12 +67,17 @@ stamp-h1
6567
*.vcproj
6668
*.vcxproj
6769

70+
# Ignore GYP generated Makefiles
71+
src/Makefile
72+
*.Makefile
73+
*.target.mk
74+
6875
# Ignore compiled Python files.
6976
*.pyc
7077

7178
# Ignore directories gclient syncs.
7279
src/testing
73-
#src/third_party/glog
80+
src/third_party/glog
7481
src/third_party/lss
7582
src/third_party/protobuf
7683
src/tools/gyp

vendor/google-breakpad/.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Travis build integration.
2+
# https://docs.travis-ci.com/
3+
language: cpp
4+
# TODO: add a clang build as well.
5+
compiler:
6+
- gcc
7+
addons:
8+
apt:
9+
sources:
10+
- ubuntu-toolchain-r-test
11+
packages:
12+
- gcc-4.8
13+
- g++-4.8
14+
# Travis sets CC/CXX to the system toolchain based on the `compiler`
15+
# selection. If clang is added, this should move to be set inside the
16+
# matrix.
17+
env:
18+
- USE_CC=gcc-4.8 USE_CXX=g++-4.8
19+
before_install: ./scripts/travis-checkout.sh
20+
script: ./scripts/travis-build.sh
21+
# TODO: add mac support
22+
os:
23+
- linux
24+
notifications:
25+
email:
26+
- google-breakpad-dev@googlegroups.com

vendor/google-breakpad/DEPS

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,31 @@
3535
deps = {
3636
# Logging code.
3737
"src/src/third_party/glog":
38-
"http://google-glog.googlecode.com/svn/trunk@97",
38+
"https://github.com/google/glog.git" +
39+
"@v0.3.4",
3940

4041
# Testing libraries and utilities.
41-
"src/src/testing": "http://googlemock.googlecode.com/svn/trunk@408",
42-
"src/src/testing/gtest": "http://googletest.googlecode.com/svn/trunk@615",
42+
"src/src/testing":
43+
"https://github.com/google/googlemock.git" +
44+
"@release-1.7.0",
45+
"src/src/testing/gtest":
46+
"https://github.com/google/googletest.git" +
47+
"@release-1.7.0",
4348

4449
# Protobuf.
4550
"src/src/third_party/protobuf/protobuf":
46-
"http://protobuf.googlecode.com/svn/trunk@407",
51+
"https://github.com/google/protobuf.git" +
52+
"@cb6dd4ef5f82e41e06179dcd57d3b1d9246ad6ac",
4753

4854
# GYP project generator.
49-
"src/src/tools/gyp": "http://gyp.googlecode.com/svn/trunk@1886",
55+
"src/src/tools/gyp":
56+
"https://chromium.googlesource.com/external/gyp/" +
57+
"@e8ab0833a42691cd2184bd4c45d779e43821d3e0",
5058

5159
# Linux syscall support.
5260
"src/src/third_party/lss":
53-
"http://linux-syscall-support.googlecode.com/svn/trunk/lss@24",
61+
"https://chromium.googlesource.com/linux-syscall-support/" +
62+
"@9292030109847793f7a6689adac1ddafb412fe14"
5463
}
5564

5665
hooks = [

0 commit comments

Comments
 (0)