1.3 KiB
1.3 KiB
Backporting patches
This document tries to list all changes that must be made to individual patches when backporting them to earlier branches of the codebase.
This list is incomplete.
OpenMPT 1.28 / libopenmpt 0.4
- Replace
std::absbympt::abs. - Replace
std::bytebympt::byte. - Replace
std::clampbympt::clamp. - Replace
std::databympt::data. - Replace
std::gcdbympt::gcd. - Replace
std::lcmbympt::lcm. - Replace
std::make_uniquebympt::make_unique. - Replace
std::sizebympt::size. - Replace
if constexprbyMPT_CONSTANT_IF. - Replace
static_assertbyMPT_STATIC_ASSERT. - Replace
[[nodiscard]]byMPT_NODISCARD. - Replace
[[fallthrough]]byMPT_FALLTHROUGH. - Reokace
mpt::lock_guardbyMPT_LOCK_GUARD.
OpenMPT 1.27 / libopenmpt 0.3
- Replace string macros with longer versions:
- U_("foo") --> MPT_USTRING("foo")
- UL_("foo") --> MPT_ULITERAL("foo")
- UC_('x') --> MPT_UCHAR('x')
- P_("foo") --> MPT_PATHSTRING("foo")
- PL_("foo") --> MPT_PATHSTRING_LITERAL("foo")
- PC_('x') --> MPT_PATHSTRING_LITERAL('x') See https://bugs.openmpt.org/view.php?id=1107.