[PATCH 2/3] winmm: Replace command ids with symbolic constants in mci command resources.

Octavian Voicu octavian.voicu at gmail.com
Wed Sep 1 12:51:24 CDT 2010


In order to prevent copy-paste errors, the changes were generated
using the following script, executed from git root (there are two very
long lines, might not work if they're wrapped):

for i in MCI_OPEN MCI_CLOSE MCI_ESCAPE MCI_PLAY MCI_SEEK MCI_STOP
MCI_PAUSE MCI_INFO MCI_GETDEVCAPS MCI_SPIN MCI_SET MCI_STEP MCI_RECORD
MCI_SYSINFO MCI_BREAK MCI_SOUND MCI_SAVE MCI_STATUS MCI_CUE
MCI_REALIZE MCI_WINDOW MCI_PUT MCI_WHERE MCI_FREEZE MCI_UNFREEZE
MCI_LOAD MCI_CUT MCI_COPY MCI_PASTE MCI_UPDATE MCI_RESUME MCI_DELETE;
do j=`egrep "^#define $i\\W" include/mmsystem.h | awk '{print $3}' |
sed 's/0x0/0x00000/g'`; k=`echo $i | sed 's/MCI_//g'`; sed -i
"s/${j}L, MCI_COMMAND_HEAD,/$i, 0, MCI_COMMAND_HEAD,/ig"
dlls/mciavi32/mciavi_res.rc dlls/mciqtz32/mciavi_res.rc
dlls/winmm/winmm_res.rc; done

for i in MCI_CAPTURE MCI_MONITOR MCI_RESERVE MCI_SETAUDIO MCI_SIGNAL
MCI_SETVIDEO MCI_QUALITY MCI_LIST MCI_UNDO MCI_CONFIGURE MCI_RESTORE;
do j=`egrep "^#define $i\\W" include/digitalv.h | awk '{print $3}' |
sed 's/0x0/0x00000/g'`; k=`echo $i | sed 's/MCI_//g'`; sed -i
"s/${j}L, MCI_COMMAND_HEAD,/$i, 0, MCI_COMMAND_HEAD,/ig"
dlls/mciavi32/mciavi_res.rc dlls/mciqtz32/mciavi_res.rc
dlls/winmm/winmm_res.rc; done



More information about the wine-devel mailing list