|
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed "s/MPT_UCHAR('/UC_('/g" -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_ULITERAL("/UL_("/g' -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_UCHAR("/U_("/g' -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed "s/MPT_PATHSTRING_LITERAL('/PC_('/g" -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_PATHSTRING_LITERAL("/PL_("/g' -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_PATHSTRING("/P_("/g' -i |
|
|
There appear to be two lines dealing with MPT_UCHAR, is that intended?
It also seems like MPT_UCHAR and MPT_ULITERAL could be merged into the same macro, just like _T(...) / TEXT(...) works for both chars and string literals. |
|
|
Second MPT_UCHAR should be MPT_USTRING of course:
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_ULITERAL("/UL_("/g' -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_USTRING("/U_("/g' -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed "s/MPT_PATHSTRING_LITERAL('/PC_('/g" -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_PATHSTRING_LITERAL("/PL_("/g' -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_PATHSTRING("/P_("/g' -i
I would rather not merge MPT_UCHAR and MPT_ULITERAL into a single macro because we might have to un-merge them again when eventually (if at all possible) replacing them with some user-defined-literals and constexpr magic. Additionally, I think the code is much clearer if the macro names are different, because the returned type of these 2 macros is very different.
Also which name to chose seems difficult. U_ is unavailable because the shortest form is best used for MPT_USTRING . |
|
|
r11003 |
|
|
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed "s/MPT_UCHAR('/UC_('/g" -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_ULITERAL("/UL_("/g' -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_USTRING("/U_("/g' -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed "s/MPT_PATHSTRING_LITERAL('/PC_('/g" -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_PATHSTRING_LITERAL("/PL_("/g' -i
find common/ libopenmpt/ mptrack/ openmpt123/ pluginBridge/ soundbase/ sounddev/ sounddsp/ soundlib/ test/ unarchiver/ misc/ tracklib/ -type f \( -name '*.cpp' -o -name '*.c' -o -name '*.hpp' -o -name '*.h' \) | xargs --no-run-if-empty -n 1 sed 's/MPT_PATHSTRING("/P_("/g' -i |
|