Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockingbirdnest/abseil-cpp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fbaf028c58c0^
Choose a base ref
...
head repository: mockingbirdnest/abseil-cpp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c50b3a687793
Choose a head ref
  • 7 commits
  • 58 files changed
  • 1 contributor

Commits on May 22, 2021

  1. Copy the full SHA
    fbaf028 View commit details
  2. Copy the full SHA
    e821bf8 View commit details
  3. Add the principia_make script.

    pleroy committed May 22, 2021
    Copy the full SHA
    610933b View commit details
  4. Copy the full SHA
    62a341b View commit details
  5. Copy the full SHA
    bf754ee View commit details
  6. Copy the full SHA
    8751c3f View commit details
  7. Copy the full SHA
    c50b3a6 View commit details
Showing with 4,135 additions and 19 deletions.
  1. +24 −0 .gitattributes
  2. +120 −0 .gitignore
  3. +1 −2 absl/base/config.h
  4. +3 −3 absl/debugging/failure_signal_handler.cc
  5. +1 −1 absl/hash/internal/print_hash_of.cc
  6. +1 −1 absl/strings/ascii_benchmark.cc
  7. +2 −2 absl/strings/internal/str_format/float_conversion.cc
  8. +2 −2 absl/time/internal/cctz/src/time_zone_info.cc
  9. +8 −8 absl/time/internal/cctz/src/zone_info_source.cc
  10. +145 −0 build_projects_helper.ps1
  11. +123 −0 msvc/abseil-cpp.props
  12. +139 −0 msvc/abseil-cpp.sln
  13. +17 −0 msvc/algorithm/algorithm.vcxproj
  14. +24 −0 msvc/algorithm/algorithm.vcxproj.filters
  15. +102 −0 msvc/base/base.vcxproj
  16. +198 −0 msvc/base/base.vcxproj.filters
  17. +90 −0 msvc/benchmarks/benchmarks.vcxproj
  18. +131 −0 msvc/benchmarks/benchmarks.vcxproj.filters
  19. +19 −0 msvc/cleanup/cleanup.vcxproj
  20. +26 −0 msvc/cleanup/cleanup.vcxproj.filters
  21. +61 −0 msvc/container/container.vcxproj
  22. +134 −0 msvc/container/container.vcxproj.filters
  23. +54 −0 msvc/debugging/debugging.vcxproj
  24. +91 −0 msvc/debugging/debugging.vcxproj.filters
  25. +59 −0 msvc/flags/flags.vcxproj
  26. +112 −0 msvc/flags/flags.vcxproj.filters
  27. +21 −0 msvc/functional/functional.vcxproj
  28. +32 −0 msvc/functional/functional.vcxproj.filters
  29. +15 −0 msvc/google_benchmark.props
  30. +20 −0 msvc/google_glog.props
  31. +15 −0 msvc/google_googlemock_main.props
  32. +18 −0 msvc/google_googletest.props
  33. +35 −0 msvc/hash/hash.vcxproj
  34. +58 −0 msvc/hash/hash.vcxproj.filters
  35. +16 −0 msvc/memory/memory.vcxproj
  36. +21 −0 msvc/memory/memory.vcxproj.filters
  37. +16 −0 msvc/meta/meta.vcxproj
  38. +21 −0 msvc/meta/meta.vcxproj.filters
  39. +24 −0 msvc/numeric/numeric.vcxproj
  40. +37 −0 msvc/numeric/numeric.vcxproj.filters
  41. +14 −0 msvc/portability_macros.props
  42. +93 −0 msvc/random/random.vcxproj
  43. +190 −0 msvc/random/random.vcxproj.filters
  44. +27 −0 msvc/status/status.vcxproj
  45. +46 −0 msvc/status/status.vcxproj.filters
  46. +134 −0 msvc/strings/strings.vcxproj
  47. +253 −0 msvc/strings/strings.vcxproj.filters
  48. +46 −0 msvc/synchronization/synchronization.vcxproj
  49. +79 −0 msvc/synchronization/synchronization.vcxproj.filters
  50. +261 −0 msvc/tests/tests.vcxproj
  51. +602 −0 msvc/tests/tests.vcxproj.filters
  52. +68 −0 msvc/time/time.vcxproj
  53. +120 −0 msvc/time/time.vcxproj.filters
  54. +39 −0 msvc/types/types.vcxproj
  55. +82 −0 msvc/types/types.vcxproj.filters
  56. +16 −0 msvc/utility/utility.vcxproj
  57. +21 −0 msvc/utility/utility.vcxproj.filters
  58. +8 −0 principia_make.sh
24 changes: 24 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

*.bin binary
120 changes: 120 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,123 @@
# OS junk files
[Tt]humbs.db
*.DS_Store
*.swp

# Visual Studio files
*.[Oo]bj
*.user
*.aps
*.pch
*.vspscc
*.vssscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.[Cc]ache
*.ilk
*.log
*.lib
*.sbr
*.sdf
*.opensdf
*.unsuccessfulbuild
*.vc.opendb
*.VC.db
ipch/
[Oo]bj/
[Bb]in
[Dd]ebug/
[Rr]elease*/
.vs/

# Clang output
*.o
*.d

# MonoDevelop
*.pidb
*.userprefs

# Tooling
[Tt]est[Rr]esult*

# Project files
[Bb]uild/

# Office Temp Files
~$*

# vim Temp Files
*~

# NuGet
packages/
*.nupkg

# visual studio database projects
*.dbmdl

# Test files
*.testsettings

# LaTeX stuff
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
*.blg
*.dvi
*.glg
*.gls
*.ilg
*.ind
*.lof
*.lot
*.maf
*.mtc
*.mtc1
*.out
*.synctex.gz
*.thm
*.bcf
*.run.xml

# Protocol buffers
*.pb.h
*.pb.cc

# Generated Mathematica
*.generated.wl
*.cdf

# Plots generated by Mathematica
mathematica/*.png

# Journal Files
*.journal.hex

deps/
temp/

# Mailboxes
*.mbox

# Generated files
*.generated.*

# Vagrant
.vagrant/

# Ignore all bazel-* symlinks.
/bazel-*
# Ignore Bazel verbose explanations
3 changes: 1 addition & 2 deletions absl/base/config.h
Original file line number Diff line number Diff line change
@@ -559,8 +559,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
#endif

#ifdef __has_include
#if __has_include(<string_view>) && defined(__cplusplus) && \
__cplusplus >= 201703L
#if __has_include(<string_view>)
#define ABSL_HAVE_STD_STRING_VIEW 1
#endif
#endif
6 changes: 3 additions & 3 deletions absl/debugging/failure_signal_handler.cc
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ struct FailureSignalData {
using StructSigaction = struct sigaction;
#define FSD_PREVIOUS_INIT FailureSignalData::StructSigaction()
#else
void (*previous_handler)(int);
void (__cdecl *previous_handler)(int);
#define FSD_PREVIOUS_INIT SIG_DFL
#endif
};
@@ -209,7 +209,7 @@ static void InstallOneFailureHandler(FailureSignalData* data,
#else

static void InstallOneFailureHandler(FailureSignalData* data,
void (*handler)(int)) {
void (__cdecl *handler)(int)) {
data->previous_handler = signal(data->signo, handler);
ABSL_RAW_CHECK(data->previous_handler != SIG_ERR, "signal() failed");
}
@@ -317,7 +317,7 @@ using GetTidType = decltype(absl::base_internal::GetTID());
ABSL_CONST_INIT static std::atomic<GetTidType> failed_tid(0);

#ifndef ABSL_HAVE_SIGACTION
static void AbslFailureSignalHandler(int signo) {
static void __cdecl AbslFailureSignalHandler(int signo) {
void* ucontext = nullptr;
#else
static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) {
2 changes: 1 addition & 1 deletion absl/hash/internal/print_hash_of.cc
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
#include "absl/hash/hash.h"

// Prints the hash of argv[1].
int main(int argc, char** argv) {
int __cdecl main(int argc, char** argv) {
if (argc < 2) return 1;
printf("%zu\n", absl::Hash<int>{}(std::atoi(argv[1]))); // NOLINT
}
2 changes: 1 addition & 1 deletion absl/strings/ascii_benchmark.cc
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ void AsciiBenchmark(benchmark::State& state, Function f) {
state.SetBytesProcessed(state.iterations() * bytes.size());
}

using StdAsciiFunction = int (*)(int);
using StdAsciiFunction = int (__cdecl*)(int);
template <StdAsciiFunction f>
void BM_Ascii(benchmark::State& state) {
AsciiBenchmark(state, f);
4 changes: 2 additions & 2 deletions absl/strings/internal/str_format/float_conversion.cc
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@ class BinaryToDecimal {
// Run the conversion for `v * 2^exp` and call `f(binary_to_decimal)`.
// This function will allocate enough stack space to perform the conversion.
static void RunConversion(uint128 v, int exp,
absl::FunctionRef<void(BinaryToDecimal)> f) {
std::function<void(BinaryToDecimal)> f) {
assert(exp > 0);
assert(exp <= std::numeric_limits<MaxFloatType>::max_exponent);
static_assert(
@@ -244,7 +244,7 @@ class FractionalDigitGenerator {
// Run the conversion for `v * 2^exp` and call `f(generator)`.
// This function will allocate enough stack space to perform the conversion.
static void RunConversion(
uint128 v, int exp, absl::FunctionRef<void(FractionalDigitGenerator)> f) {
uint128 v, int exp, std::function<void(FractionalDigitGenerator)> f) {
using Limits = std::numeric_limits<MaxFloatType>;
assert(-exp < 0);
assert(-exp >= Limits::min_exponent - 128);
4 changes: 2 additions & 2 deletions absl/time/internal/cctz/src/time_zone_info.cc
Original file line number Diff line number Diff line change
@@ -615,7 +615,7 @@ class FileZoneInfoSource : public ZoneInfoSource {
: fp_(fp, fclose), len_(len) {}

private:
std::unique_ptr<FILE, int (*)(FILE*)> fp_;
std::unique_ptr<FILE, int (__cdecl*)(FILE*)> fp_;
std::size_t len_;
};

@@ -676,7 +676,7 @@ std::unique_ptr<ZoneInfoSource> AndroidZoneInfoSource::Open(
// See Android's libc/tzcode/bionic.cpp for additional information.
for (const char* tzdata : {"/data/misc/zoneinfo/current/tzdata",
"/system/usr/share/zoneinfo/tzdata"}) {
std::unique_ptr<FILE, int (*)(FILE*)> fp(FOpen(tzdata, "rb"), fclose);
std::unique_ptr<FILE, int(__cdecl*)(FILE*)> fp(FOpen(tzdata, "rb"), fclose);
if (fp.get() == nullptr) continue;

char hbuf[24]; // covers header.zonetab_offset too
16 changes: 8 additions & 8 deletions absl/time/internal/cctz/src/zone_info_source.cc
Original file line number Diff line number Diff line change
@@ -69,17 +69,17 @@ ZoneInfoSourceFactory default_factory = DefaultFactory;
#pragma comment( \
linker, \
"/alternatename:?zone_info_source_factory@cctz_extension@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@3P6A?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@3P6Q?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@U?$default_delete@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@" ABSL_INTERNAL_MANGLED_BACKREFERENCE \
"@ABV?$function@$$A6A?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@ABV?$function@$$A6Q?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@U?$default_delete@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z@" ABSL_INTERNAL_MANGLED_BACKREFERENCE \
"@@ZA=?default_factory@cctz_extension@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@3P6A?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@3P6Q?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@U?$default_delete@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@" ABSL_INTERNAL_MANGLED_BACKREFERENCE \
"@ABV?$function@$$A6A?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@ABV?$function@$$A6Q?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@U?$default_delete@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z@" ABSL_INTERNAL_MANGLED_BACKREFERENCE \
"@@ZA")
@@ -88,17 +88,17 @@ ZoneInfoSourceFactory default_factory = DefaultFactory;
#pragma comment( \
linker, \
"/alternatename:?zone_info_source_factory@cctz_extension@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@3P6A?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@3P6Q?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@U?$default_delete@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@" ABSL_INTERNAL_MANGLED_BACKREFERENCE \
"@AEBV?$function@$$A6A?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@AEBV?$function@$$A6Q?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@U?$default_delete@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z@" ABSL_INTERNAL_MANGLED_BACKREFERENCE \
"@@ZEA=?default_factory@cctz_extension@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@3P6A?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@3P6Q?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@U?$default_delete@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@" ABSL_INTERNAL_MANGLED_BACKREFERENCE \
"@AEBV?$function@$$A6A?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@AEBV?$function@$$A6Q?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@U?$default_delete@VZoneInfoSource@cctz@time_internal@" ABSL_INTERNAL_MANGLED_NS \
"@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z@" ABSL_INTERNAL_MANGLED_BACKREFERENCE \
"@@ZEA")
Loading