util: Update tinyformat #8274

pull laanwj wants to merge 2 commits into bitcoin:master from laanwj:2016_06_update_tinyformat changing 3 files +375 −355
  1. laanwj commented at 4:24 pm on June 27, 2016: member

    Updates tinyformat.h to commit https://github.com/c42f/tinyformat/commit/3a33bbf65442432277eee079e83d3e8fac51730c upstream.

    Makes sure that our local changes are kept:

    • Add std::string format(const std::string &fmt... - added this at the time as we want to be able to do strprintf(_(...), ...)
    • #3767 1b8fd35aadfad6a1e55391f02add6076c8c9ea8f Make tinyformat errors raise an exception instead of assert()ing
    • #4735 9b6d4c5cdc1ad7b12b8b7ba05125dad9ba2d396e Move strprintf define to tinyformat.h
    • #4748 6e5fd003e04b81115b6b164b21f048472d575535 include stdexcept (for std::exception)
    • #8000 9eaa0afa6ec5d3dd01e4d01121314ef51f2bc305 force USE_VARIADIC_TEMPLATES

    Inspired by #8264.

  2. util: Update tinyformat
    Updates `tinyformat.h` to commit
    https://github.com/c42f/tinyformat/commit/3a33bbf65442432277eee079e83d3e8fac51730c upstream.
    
    Makes sure that our local changes are kept:
    
    - #3767 1b8fd35aadfad6a1e55391f02add6076c8c9ea8f Make tinyformat errors raise an exception instead of assert()ing
    - #4735 9b6d4c5cdc1ad7b12b8b7ba05125dad9ba2d396e Move strprintf define to tinyformat.h
    - #4748 6e5fd003e04b81115b6b164b21f048472d575535 include stdexcept (for std::exception)
    - #8000 9eaa0afa6ec5d3dd01e4d01121314ef51f2bc305 force USE_VARIADIC_TEMPLATES
    - Add `std::string format(const std::string &fmt...` added this
      at the time, as we want to be able to do `strprintf(_(...), ...)`
    
    Inspired by #8264.
    695041e495
  3. laanwj added the label Utils and libraries on Jun 27, 2016
  4. util: Remove zero-argument versions of LogPrint and error
    Changes in tinyformat, recently imported from upstream have made the
    zero-argument versions of formatting functions unnecessary. Remove them.
    
    This is a slight semantic change: `%` characters in the zero-argument
    call are now regarded and need to be escaped. As for as I know, the only
    use of this is in `main.cpp`.
    a5072a7730
  5. MarcoFalke commented at 9:30 am on June 29, 2016: member
    Concept ACK a5072a7
  6. jonasschnelli commented at 12:37 pm on June 29, 2016: contributor
    utACK a5072a773071b8f4b644f84a77643e2ad18dba3a
  7. in src/tinyformat.h: in a5072a7730
    87@@ -86,6 +88,18 @@
    88 // defined function bodies, use the macro TINYFORMAT_FOREACH_ARGNUM.  For an
    89 // example, see the implementation of printf() at the end of the source file.
    90 //
    91+// Sometimes it's useful to be able to pass a list of format arguments through
    92+// to a non-template function.  The FormatList class is provided as a way to do
    93+// this by storing the argument list in a type-opaque way.  Continuing the
    


    paveljanik commented at 6:16 pm on June 29, 2016:
    Another Satoshi suspect!

    laanwj commented at 8:05 am on June 30, 2016:
    :o we’ve caught the guy
  8. laanwj merged this on Jul 29, 2016
  9. laanwj closed this on Jul 29, 2016

  10. laanwj referenced this in commit 7a2d402727 on Jul 29, 2016
  11. luke-jr commented at 7:54 am on September 10, 2016: member
    Why haven’t our local changes been submitted upstream?
  12. codablock referenced this in commit 33040073b3 on Sep 19, 2017
  13. laanwj referenced this in commit 2631d55f61 on Nov 1, 2017
  14. codablock referenced this in commit c65dc92ea3 on Dec 29, 2017
  15. codablock referenced this in commit 13b4e659b6 on Jan 8, 2018
  16. sickpig referenced this in commit d4b39723ff on Jan 11, 2018
  17. sickpig referenced this in commit a5093ead3d on Jan 11, 2018
  18. sickpig referenced this in commit 6ba1f97cd5 on Jan 11, 2018
  19. sickpig referenced this in commit 47ba4dac33 on Jan 11, 2018
  20. andvgal referenced this in commit 4b9c4fa882 on Jan 6, 2019
  21. PastaPastaPasta referenced this in commit 31ef3121fd on Dec 22, 2019
  22. PastaPastaPasta referenced this in commit a15f9b9b7d on Jan 2, 2020
  23. PastaPastaPasta referenced this in commit ba471b6e03 on Jan 4, 2020
  24. PastaPastaPasta referenced this in commit 50c6dc4684 on Jan 12, 2020
  25. PastaPastaPasta referenced this in commit 4de44c6f25 on Jan 12, 2020
  26. PastaPastaPasta referenced this in commit 59c8d72968 on Jan 12, 2020
  27. PastaPastaPasta referenced this in commit 054aac32c3 on Jan 12, 2020
  28. PastaPastaPasta referenced this in commit 83a55427a4 on Jan 12, 2020
  29. PastaPastaPasta referenced this in commit 30b0a1f9f6 on Jan 12, 2020
  30. PastaPastaPasta referenced this in commit 7b26c638c7 on Jan 16, 2020
  31. furszy referenced this in commit 9ef9f5dea1 on Mar 27, 2020
  32. akshaynexus referenced this in commit 5c753ce7c2 on Mar 30, 2020
  33. ckti referenced this in commit 3d662ac628 on Mar 28, 2021
  34. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 18:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me