Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: ff77d74ab52590846591427ee35fea75d583c484
      
https://github.com/tianocore/edk2/commit/ff77d74ab52590846591427ee35fea75d583c484
  Author: Vishal Oliyil Kunnil <[email protected]>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M MdePkg/Include/Library/BaseLib.h
    M MdePkg/Library/BaseLib/String.c

  Log Message:
  -----------
  MdePkg/BaseLib: Add AsciiStrRChr

Add AsciiStrRChr() to BaseLib, which returns the last occurrence of
a character in a Null-terminated ASCII string. This mirrors the
existing AsciiStrStr() API style and provides a reusable
implementation for consumers that currently hand-roll this logic.

Signed-off-by: Vishal Oliyil Kunnil <[email protected]>


  Commit: 19d198baace6c9b5582d59471ecad6336ca255e0
      
https://github.com/tianocore/edk2/commit/19d198baace6c9b5582d59471ecad6336ca255e0
  Author: Vishal Oliyil Kunnil <[email protected]>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M MdePkg/Include/Library/BaseLib.h
    M MdePkg/Library/BaseLib/String.c

  Log Message:
  -----------
  MdePkg/BaseLib: Add AsciiIsSpace

Add AsciiIsSpace() to BaseLib, which checks whether an ASCII
character is a space character as defined by the ISO C isspace()
function. This will be used to implement AsciiStrToUintn() and
AsciiStrToUint64().

Signed-off-by: Vishal Oliyil Kunnil <[email protected]>


  Commit: f443364513d9f65c793563a324cbc5580ce35a69
      
https://github.com/tianocore/edk2/commit/f443364513d9f65c793563a324cbc5580ce35a69
  Author: Vishal Oliyil Kunnil <[email protected]>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M MdePkg/Include/Library/BaseLib.h
    M MdePkg/Library/BaseLib/String.c

  Log Message:
  -----------
  MdePkg/BaseLib: Add AsciiStrToUintn and AsciiStrToUint64

Add AsciiStrToUintn() and AsciiStrToUint64() to BaseLib. These are
thin wrappers that dispatch to the existing AsciiStrHexToUintnS()/
AsciiStrDecimalToUintnS() (and UINT64 equivalents) based on Base,
which must be 0 (auto-detect via a "0x"/"0X" prefix), 10, or 16.
No new radix-parsing logic is introduced; the existing conversion
routines already cover the bases actually used in practice.

Signed-off-by: Vishal Oliyil Kunnil <[email protected]>


  Commit: 81d3038813d32f94322226a21bf6f3d291a7d194
      
https://github.com/tianocore/edk2/commit/81d3038813d32f94322226a21bf6f3d291a7d194
  Author: Vishal Oliyil Kunnil <[email protected]>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M MdePkg/Library/BaseFdtLib/BaseFdtLib.inf
    M MdePkg/Library/BaseFdtLib/LibFdtSupport.h
    R MdePkg/Library/BaseFdtLib/LibFdtWrapper.c

  Log Message:
  -----------
  MdePkg/BaseFdtLib: Use BaseLib strrchr/strtoul, drop LibFdtWrapper.c

Point the strrchr and strtoul macros in LibFdtSupport.h at the new
AsciiStrRChr() and AsciiStrToUintn() BaseLib APIs instead of the
private fdt_strrchr()/fdt_strtoul() implementations. This removes
duplicated logic and picks up the overflow-detection already present
in the underlying AsciiStrHexToUintnS()/AsciiStrDecimalToUintnS()
conversion routines.

LibFdtWrapper.c is now empty of purpose and is removed, along with
its entry in BaseFdtLib.inf.

Signed-off-by: Vishal Oliyil Kunnil <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/d61662fbfd7e...81d3038813d3

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to