1. 12 Jun, 2023 3 commits
    • Adding more support and testing for int128 and uint128 flags from cl/534444213 · 5d1f1cf9
      PiperOrigin-RevId: 539726003
      Change-Id: Ie38f8d48a7b4c9d498fc1c4c4af6138048f80f68
      Abseil Team committed
    • Fix behaviors of StrCat() and StrFormat() regarding char types and enum types. · a3d9a943
      This is a conservative change, in that it only contains bugfixes and allows new patterns that used to be compile errors.  There are other changes we would like to make (as reflected in the comments in char_formatting_test.cc), but we are being careful about the implications of such behavior changes.
      
      The two implementation changes are:
      * Apply integral promotions to enums before printing them, so they are always treated as integers (and not chars) by StrCat and StrFormat.
      * Classify `unsigned char` and `signed char` as integer-like rather than char-like, so that `StrFormat("%v", v)` accepts those types as integers (consistent with `StrCat()`.)
      
      The behavior changes are:
      * StrCat() now accepts char-backed enums (rather than failing to compile).
      * StrFormat("%v") now accepts `signed char` and `unsigned char` as integral (rather than failing to compile).
      * StrFormat("%v") now correctly formats 8-bit enums as integers (rather than failing internally and emitting nothing).
      
      Tested:
        Modified the char_formatting_test.cc case to reflect changes.
        Re-ran all other tests.
      PiperOrigin-RevId: 539659674
      Change-Id: Ief56335f5a57e4582af396d00eaa9e7b6be4ddc6
      Greg Falcon committed
    • DirectMmap: Use off_t instead of off64_t for the offset parameter · 4500c2fa
      off_t is best for portability. Its size varies with the platform.
      off64_t is non-standard, but is present in glibc and some BSDs.
      It also matches the signature specified in the manual.
      https://man7.org/linux/man-pages/man2/mmap.2.html
      
      This is a re-spin of #1349, but correctly casts the type to the type
      expected by the kernel for mmap2.
      https://man7.org/linux/man-pages/man2/mmap2.2.html
      
      Fixes #1473
      
      PiperOrigin-RevId: 539656313
      Change-Id: I7a30dd9d3eb6af03a99da0d93d721a86f6521b25
      Derek Mauro committed
  2. 09 Jun, 2023 8 commits
  3. 08 Jun, 2023 3 commits
  4. 07 Jun, 2023 4 commits
  5. 06 Jun, 2023 2 commits
  6. 05 Jun, 2023 2 commits
  7. 04 Jun, 2023 1 commit
  8. 02 Jun, 2023 2 commits
  9. 01 Jun, 2023 4 commits
  10. 31 May, 2023 3 commits
  11. 30 May, 2023 2 commits
  12. 26 May, 2023 2 commits
  13. 25 May, 2023 3 commits
  14. 24 May, 2023 1 commit