Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mac/files/
Date: Mon, 16 Oct 2017 10:05:48
Message-Id: 1508148340.b5deff6256d089f43b17ae555ffa62bf0758950a.monsieurp@gentoo
1 commit: b5deff6256d089f43b17ae555ffa62bf0758950a
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Oct 13 10:18:10 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 16 10:05:40 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5deff62
7
8 media-sound/mac: remove unused patch.
9
10 Closes: https://github.com/gentoo/gentoo/pull/5938
11
12 media-sound/mac/files/mac-3.99.4.5.7-gcc6.patch | 181 ------------------------
13 1 file changed, 181 deletions(-)
14
15 diff --git a/media-sound/mac/files/mac-3.99.4.5.7-gcc6.patch b/media-sound/mac/files/mac-3.99.4.5.7-gcc6.patch
16 deleted file mode 100644
17 index e22d1c1f539..00000000000
18 --- a/media-sound/mac/files/mac-3.99.4.5.7-gcc6.patch
19 +++ /dev/null
20 @@ -1,181 +0,0 @@
21 -From: Peter Levine <plevine457@×××××.com>
22 ---- mac-3.99-u4-b5-s7/src/Shared/NoWindows.h.old 2016-09-18 21:37:56.049105791 -0400
23 -+++ mac-3.99-u4-b5-s7/src/Shared/NoWindows.h 2016-09-18 21:55:29.666295506 -0400
24 -@@ -39,8 +39,8 @@
25 - typedef const wchar_t * LPCWSTR;
26 -
27 - #define ZeroMemory(POINTER, BYTES) memset(POINTER, 0, BYTES);
28 --#define max(a,b) (((a) > (b)) ? (a) : (b))
29 --#define min(a,b) (((a) < (b)) ? (a) : (b))
30 -+#define max_macro(a,b) (((a) > (b)) ? (a) : (b))
31 -+#define min_macro(a,b) (((a) < (b)) ? (a) : (b))
32 -
33 - #define __stdcall
34 - #define CALLBACK
35 ---- mac-3.99-u4-b5-s7/src/Shared/CircleBuffer.cpp.old 2016-09-18 21:43:44.270495095 -0400
36 -+++ mac-3.99-u4-b5-s7/src/Shared/CircleBuffer.cpp 2016-09-18 21:44:47.960148731 -0400
37 -@@ -45,7 +45,7 @@
38 -
39 - if (pBuffer != NULL && nBytes > 0)
40 - {
41 -- int nHeadBytes = min(m_nEndCap - m_nHead, nBytes);
42 -+ int nHeadBytes = min_macro(m_nEndCap - m_nHead, nBytes);
43 - int nFrontBytes = nBytes - nHeadBytes;
44 -
45 - memcpy(&pBuffer[0], &m_pBuffer[m_nHead], nHeadBytes);
46 -@@ -72,7 +72,7 @@
47 -
48 - int CCircleBuffer::RemoveHead(int nBytes)
49 - {
50 -- nBytes = min(MaxGet(), nBytes);
51 -+ nBytes = min_macro(MaxGet(), nBytes);
52 - m_nHead += nBytes;
53 - if (m_nHead >= m_nEndCap)
54 - m_nHead -= m_nEndCap;
55 -@@ -81,7 +81,7 @@
56 -
57 - int CCircleBuffer::RemoveTail(int nBytes)
58 - {
59 -- nBytes = min(MaxGet(), nBytes);
60 -+ nBytes = min_macro(MaxGet(), nBytes);
61 - m_nTail -= nBytes;
62 - if (m_nTail < 0)
63 - m_nTail += m_nEndCap;
64 ---- mac-3.99-u4-b5-s7/src/MACLib/APECompress.cpp.old 2016-09-18 21:48:40.916547811 -0400
65 -+++ mac-3.99-u4-b5-s7/src/MACLib/APECompress.cpp 2016-09-18 21:51:43.670733601 -0400
66 -@@ -117,7 +117,7 @@
67 - return ERROR_UNDEFINED;
68 -
69 - // calculate how many bytes to copy and add that much to the buffer
70 -- int nBytesToProcess = min(nBytesAvailable, nBytes - nBytesDone);
71 -+ int nBytesToProcess = min_macro(nBytesAvailable, nBytes - nBytesDone);
72 - memcpy(pBuffer, &pData[nBytesDone], nBytesToProcess);
73 -
74 - // unlock the buffer (fail if not successful)
75 -@@ -162,7 +162,7 @@
76 -
77 - while ((m_nBufferTail - m_nBufferHead) >= nThreshold)
78 - {
79 -- int nFrameBytes = min(m_spAPECompressCreate->GetFullFrameBytes(), m_nBufferTail - m_nBufferHead);
80 -+ int nFrameBytes = min_macro(m_spAPECompressCreate->GetFullFrameBytes(), m_nBufferTail - m_nBufferHead);
81 -
82 - if (nFrameBytes == 0)
83 - break;
84 ---- mac-3.99-u4-b5-s7/src/MACLib/APEDecompress.cpp.old 2016-09-18 21:46:56.962072960 -0400
85 -+++ mac-3.99-u4-b5-s7/src/MACLib/APEDecompress.cpp 2016-09-18 22:01:14.402044817 -0400
86 -@@ -35,8 +35,8 @@
87 - m_bErrorDecodingCurrentFrame = FALSE;
88 -
89 - // set the "real" start and finish blocks
90 -- m_nStartBlock = (nStartBlock < 0) ? 0 : min(nStartBlock, GetInfo(APE_INFO_TOTAL_BLOCKS));
91 -- m_nFinishBlock = (nFinishBlock < 0) ? GetInfo(APE_INFO_TOTAL_BLOCKS) : min(nFinishBlock, GetInfo(APE_INFO_TOTAL_BLOCKS));
92 -+ m_nStartBlock = (nStartBlock < 0) ? 0 : min_macro(nStartBlock, GetInfo(APE_INFO_TOTAL_BLOCKS));
93 -+ m_nFinishBlock = (nFinishBlock < 0) ? GetInfo(APE_INFO_TOTAL_BLOCKS) : min_macro(nFinishBlock, GetInfo(APE_INFO_TOTAL_BLOCKS));
94 - m_bIsRanged = (m_nStartBlock != 0) || (m_nFinishBlock != GetInfo(APE_INFO_TOTAL_BLOCKS));
95 - }
96 -
97 -@@ -85,7 +85,7 @@
98 -
99 - // cap
100 - int nBlocksUntilFinish = m_nFinishBlock - m_nCurrentBlock;
101 -- const int nBlocksToRetrieve = min(nBlocks, nBlocksUntilFinish);
102 -+ const int nBlocksToRetrieve = min_macro(nBlocks, nBlocksUntilFinish);
103 -
104 - // get the data
105 - unsigned char * pOutputBuffer = (unsigned char *) pBuffer;
106 -@@ -99,7 +99,7 @@
107 -
108 - // analyze how much to remove from the buffer
109 - const int nFrameBufferBlocks = m_nFrameBufferFinishedBlocks;
110 -- nBlocksThisPass = min(nBlocksLeft, nFrameBufferBlocks);
111 -+ nBlocksThisPass = min_macro(nBlocksLeft, nFrameBufferBlocks);
112 -
113 - // remove as much as possible
114 - if (nBlocksThisPass > 0)
115 -@@ -182,7 +182,7 @@
116 -
117 - int nFrameOffsetBlocks = m_nCurrentFrameBufferBlock % GetInfo(APE_INFO_BLOCKS_PER_FRAME);
118 - int nFrameBlocksLeft = nFrameBlocks - nFrameOffsetBlocks;
119 -- int nBlocksThisPass = min(nFrameBlocksLeft, nBlocksLeft);
120 -+ int nBlocksThisPass = min_macro(nFrameBlocksLeft, nBlocksLeft);
121 -
122 - // start the frame if we need to
123 - if (nFrameOffsetBlocks == 0)
124 ---- mac-3.99-u4-b5-s7/src/MACLib/APESimple.cpp.old 2016-09-18 21:47:16.972925909 -0400
125 -+++ mac-3.99-u4-b5-s7/src/MACLib/APESimple.cpp 2016-09-18 21:52:39.022779503 -0400
126 -@@ -193,7 +193,7 @@
127 - nBytesRead = 1;
128 - while ((nBytesLeft > 0) && (nBytesRead > 0))
129 - {
130 -- int nBytesToRead = min(16384, nBytesLeft);
131 -+ int nBytesToRead = min_macro(16384, nBytesLeft);
132 - if (pIO->Read(spBuffer, nBytesToRead, &nBytesRead) != ERROR_SUCCESS)
133 - return ERROR_IO_READ;
134 -
135 ---- mac-3.99-u4-b5-s7/src/MACLib/APETag.cpp.old 2016-09-18 21:55:53.331533348 -0400
136 -+++ mac-3.99-u4-b5-s7/src/MACLib/APETag.cpp 2016-09-18 21:58:21.508345586 -0400
137 -@@ -16,7 +16,7 @@
138 - memcpy(m_spFieldNameUTF16, pFieldName, (wcslen(pFieldName) + 1) * sizeof(str_utf16));
139 -
140 - // data (we'll always allocate two extra bytes and memset to 0 so we're safely NULL terminated)
141 -- m_nFieldValueBytes = max(nFieldBytes, 0);
142 -+ m_nFieldValueBytes = max_macro(nFieldBytes, 0);
143 - m_spFieldValue.Assign(new char [m_nFieldValueBytes + 2], TRUE);
144 - memset(m_spFieldValue, 0, m_nFieldValueBytes + 2);
145 - if (m_nFieldValueBytes > 0)
146 ---- mac-3.99-u4-b5-s7/src/MACLib/BitArray.cpp.old 2016-09-18 21:53:24.090030009 -0400
147 -+++ mac-3.99-u4-b5-s7/src/MACLib/BitArray.cpp 2016-09-18 22:00:13.500083252 -0400
148 -@@ -113,7 +113,7 @@
149 - m_nCurrentBitIndex = (m_nCurrentBitIndex & 31);
150 -
151 - // zero the rest of the memory (may not need the +1 because of frame byte alignment)
152 -- memset(&m_pBitArray[1], 0, min(nBytesToWrite + 1, BIT_ARRAY_BYTES - 1));
153 -+ memset(&m_pBitArray[1], 0, min_macro(nBytesToWrite + 1, BIT_ARRAY_BYTES - 1));
154 - }
155 -
156 - // return a success
157 -@@ -247,7 +247,7 @@
158 - BitArrayState.k++;
159 -
160 - // figure the pivot value
161 -- int nPivotValue = max(nOriginalKSum / 32, 1);
162 -+ int nPivotValue = max_macro(nOriginalKSum / 32, 1);
163 - int nOverflow = nEncode / nPivotValue;
164 - int nBase = nEncode - (nOverflow * nPivotValue);
165 -
166 ---- mac-3.99-u4-b5-s7/src/MACLib/MACProgressHelper.cpp.old 2016-09-18 21:56:44.606337012 -0400
167 -+++ mac-3.99-u4-b5-s7/src/MACLib/MACProgressHelper.cpp 2016-09-18 21:59:55.854310134 -0400
168 -@@ -35,7 +35,7 @@
169 - m_nCurrentStep = nCurrentStep;
170 -
171 - // figure the percentage done
172 -- float fPercentageDone = float(m_nCurrentStep) / float(max(m_nTotalSteps, 1));
173 -+ float fPercentageDone = float(m_nCurrentStep) / float(max_macro(m_nTotalSteps, 1));
174 - int nPercentageDone = (int) (fPercentageDone * 1000 * 100);
175 - if (nPercentageDone > 100000) nPercentageDone = 100000;
176 -
177 ---- mac-3.99-u4-b5-s7/src/MACLib/Prepare.cpp.old 2016-09-18 21:56:29.974394222 -0400
178 -+++ mac-3.99-u4-b5-s7/src/MACLib/Prepare.cpp 2016-09-18 21:59:28.214726465 -0400
179 -@@ -177,9 +177,9 @@
180 -
181 - if (LPeak == 0) { *pSpecialCodes |= SPECIAL_FRAME_LEFT_SILENCE; }
182 - if (RPeak == 0) { *pSpecialCodes |= SPECIAL_FRAME_RIGHT_SILENCE; }
183 -- if (max(LPeak, RPeak) > *pPeakLevel)
184 -+ if (max_macro(LPeak, RPeak) > *pPeakLevel)
185 - {
186 -- *pPeakLevel = max(LPeak, RPeak);
187 -+ *pPeakLevel = max_macro(LPeak, RPeak);
188 - }
189 -
190 - // check for pseudo-stereo files
191 ---- mac-3.99-u4-b5-s7/src/MACLib/UnBitArray.cpp.old 2016-09-18 21:56:16.548445898 -0400
192 -+++ mac-3.99-u4-b5-s7/src/MACLib/UnBitArray.cpp 2016-09-18 21:58:56.148161050 -0400
193 -@@ -110,7 +110,7 @@
194 - if (m_nVersion >= 3990)
195 - {
196 - // figure the pivot value
197 -- int nPivotValue = max(BitArrayState.nKSum / 32, 1);
198 -+ int nPivotValue = max_macro(BitArrayState.nKSum / 32, 1);
199 -
200 - // get the overflow
201 - int nOverflow = 0;