lbrycrd/src/bench
Wladimir J. van der Laan ce74799a3c
Merge #10483: scripted-diff: Use the C++11 keyword nullptr to denote the pointer literal instead of the macro NULL
90d4d89 scripted-diff: Use the C++11 keyword nullptr to denote the pointer literal instead of the macro NULL (practicalswift)

Pull request description:

  Since C++11 the macro `NULL` may be:
  * an integer literal with value zero, or
  * a prvalue of type `std::nullptr_t`

  By using the C++11 keyword `nullptr` we are guaranteed a prvalue of type `std::nullptr_t`.

  For a more thorough discussion, see "A name for the null pointer: nullptr" (Sutter &
  Stroustrup), http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf

  With this patch applied there are no `NULL` macro usages left in the repo:

  ```
  $ git grep NULL -- "*.cpp" "*.h" | egrep -v '(/univalue/|/secp256k1/|/leveldb/|_NULL|NULLDUMMY|torcontrol.*NULL|NULL cert)' | wc -l
  0
  ```

  The road towards `nullptr` (C++11) is split into two PRs:
  * `NULL` → `nullptr` is handled in PR #10483 (scripted, this PR)
  * `0` → `nullptr` is handled in PR #10645 (manual)

Tree-SHA512: 3c395d66f2ad724a8e6fed74b93634de8bfc0c0eafac94e64e5194c939499fefd6e68f047de3083ad0b4eff37df9a8a3a76349aa17d55eabbd8e0412f140a297
2017-08-14 16:30:59 +02:00
..
data Add deserialize + CheckBlock benchmarks, and a full block hex 2016-11-09 11:27:59 -08:00
.gitignore Ignore bench_bitcoin binary. 2015-10-06 17:46:12 +02:00
base58.cpp Avoid static analyzer warnings regarding uninitialized arguments 2017-07-15 14:26:50 +02:00
bench.cpp Merge #10483: scripted-diff: Use the C++11 keyword nullptr to denote the pointer literal instead of the macro NULL 2017-08-14 16:30:59 +02:00
bench.h Replace boost::function with std::function (C++11) 2017-05-13 17:59:09 +02:00
bench_bitcoin.cpp Add SHA256 dispatcher 2017-07-20 09:03:53 -07:00
ccoins_caching.cpp Switch from per-tx to per-txout CCoinsViewCache methods in some places 2017-06-01 11:56:06 -07:00
checkblock.cpp Merge #9544: [trivial] Add end of namespace comments. Improve consistency. 2017-06-26 13:40:26 +02:00
checkqueue.cpp Add a FastRandomContext::randrange and use it 2017-03-29 11:26:08 -07:00
coin_selection.cpp scripted-diff: Remove #include <boost/foreach.hpp> 2017-06-22 03:48:52 +02:00
crypto_hash.cpp Prevent warning: variable 'x' is uninitialized 2017-04-25 08:47:58 +02:00
Examples.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
lockedpool.cpp Do not shadow variables (gcc set) 2016-12-05 11:41:46 +01:00
mempool_eviction.cpp Merge #9548: Remove min reasonable fee 2017-03-07 19:49:00 +01:00
perf.cpp [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
perf.h bench: Add support for measuring CPU cycles 2016-11-22 12:20:57 +01:00
prevector_destructor.cpp Add prevector destructor benchmark 2017-01-10 18:23:00 -05:00
rollingbloom.cpp Benchmark rolling bloom filter 2016-04-28 14:56:32 +02:00
verify_script.cpp Avoid static analyzer warnings regarding uninitialized arguments 2017-07-15 14:26:50 +02:00