gecko-dev/content/media/webaudio
Ehsan Akhgari 2824b29025 Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
..
blink Bug 890716. Fix race in Reverb::Reverb. r=padenot 2013-07-26 13:35:22 +12:00
compiledtest Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo 2013-07-18 13:59:53 -04:00
test Bug 895720 - Actually use the fuzz value. 2013-07-30 11:10:33 +01:00
AnalyserNode.cpp Bug 815643 - Part 4: Add the Convolution processing implementation to the build system; r=roc 2013-06-10 16:09:01 -04:00
AnalyserNode.h Bug 815643 - Part 2: Refactor our Web Audio FFT code into the FFTBlock class; r=roc 2013-06-10 16:08:21 -04:00
AudioBuffer.cpp Bug 890543 - Make AudioBuffer not inherit from nsISupports; r=mccr8 2013-07-05 16:21:52 -04:00
AudioBuffer.h Bug 891543 - Remove the version of AudioBuffer::GetChannelData that is unused; r=roc 2013-07-09 17:35:05 -04:00
AudioBufferSourceNode.cpp Bug 886653 - Don't call speex_resampler_skip_zeros when changing the rate in AudioBufferSourceNode. r=ehsan 2013-07-12 17:21:51 +02:00
AudioBufferSourceNode.h Bug 880265 - Remove AudioBufferSourceNode.gain; r=ehsan 2013-06-08 00:55:04 +05:30
AudioContext.cpp Bug 883591 - Don't allow creating a MediaStreamDestinationNode on an OfflineAudioContext. r=ehsan 2013-07-18 11:57:38 +02:00
AudioContext.h Bug 885170 - Remove nsINode::GetClassInfo(); r=peterv 2013-07-24 09:31:06 +02:00
AudioDestinationNode.cpp Bug 879111 - Mute Web Audio when allowMedia is false on the docshell. r=ehsan 2013-07-03 17:44:32 -07:00
AudioDestinationNode.h Bug 879111 - Mute Web Audio when allowMedia is false on the docshell. r=ehsan 2013-07-03 17:44:32 -07:00
AudioListener.cpp Bug 894150 - Unregister the PannerNode in the AudioListener when destroying the stream. r=ehsan 2013-07-16 14:45:41 +02:00
AudioListener.h Bug 894150 - Unregister the PannerNode in the AudioListener when destroying the stream. r=ehsan 2013-07-16 14:45:41 +02:00
AudioNode.cpp Bug 890248. Avoid situations where adding a new input to an AudioNode can race with a message telling the AudioNode to release its mPlayingRef. r=ehsan 2013-07-05 13:49:53 +12:00
AudioNode.h Bug 890248. Avoid situations where adding a new input to an AudioNode can race with a message telling the AudioNode to release its mPlayingRef. r=ehsan 2013-07-05 13:49:53 +12:00
AudioParam.cpp Bug 873553 - Part 2: Teach each AudioNodeStream about its sampling rate, and store the value inside AudioContext; r=roc 2013-05-24 13:09:29 -04:00
AudioParam.h Bug 878328 - Sanitize the time argument of AudioParam.setValueCurveAtTime; r=roc 2013-06-02 09:26:06 -04:00
AudioParamTimeline.h Bug 866434 - Part 3: Mix in the value generated by AudioNode inputs to AudioParams when getting their values during audio processing; r=roc 2013-05-01 23:12:59 -04:00
AudioProcessingEvent.cpp Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor 2013-05-22 10:05:28 -06:00
AudioProcessingEvent.h Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger 2013-04-25 12:29:54 -04:00
BiquadFilterNode.cpp Bug 859022 - Remove the MSVC exemption for FAIL_ON_WARNINGS in content/media. r=roc 2013-06-27 20:30:41 +09:00
BiquadFilterNode.h Bug 867588 - Remove support for implementing Web Audio nodes which are not connected to the MediaStreams backend; r=roc 2013-05-01 11:09:07 -04:00
ChannelMergerNode.cpp Bug 868855 - Respect the input's volume in ChannelMergerNode and ChannelSplitterNode; r=roc 2013-05-06 14:30:47 -04:00
ChannelMergerNode.h Bug 865248 - Implement ChannelMergerNode; r=roc 2013-05-05 11:49:37 -04:00
ChannelSplitterNode.cpp Bug 868855 - Respect the input's volume in ChannelMergerNode and ChannelSplitterNode; r=roc 2013-05-06 14:30:47 -04:00
ChannelSplitterNode.h Bug 865248 - Implement ChannelMergerNode; r=roc 2013-05-05 11:49:37 -04:00
ConvolverNode.cpp Bug 891254 - Fix the usage of uninitialized samples when the input to a ConvolverNode has a volume; r=roc 2013-07-18 10:22:47 -04:00
ConvolverNode.h Bug 890248. Avoid situations where adding a new input to an AudioNode can race with a message telling the AudioNode to release its mPlayingRef. r=ehsan 2013-07-05 13:49:53 +12:00
DelayNode.cpp Bug 890248. Avoid situations where adding a new input to an AudioNode can race with a message telling the AudioNode to release its mPlayingRef. r=ehsan 2013-07-05 13:49:53 +12:00
DelayNode.h Bug 890248. Avoid situations where adding a new input to an AudioNode can race with a message telling the AudioNode to release its mPlayingRef. r=ehsan 2013-07-05 13:49:53 +12:00
DynamicsCompressorNode.cpp Bug 859022 - Remove the MSVC exemption for FAIL_ON_WARNINGS in content/media. r=roc 2013-06-27 20:30:41 +09:00
DynamicsCompressorNode.h Bug 867588 - Remove support for implementing Web Audio nodes which are not connected to the MediaStreams backend; r=roc 2013-05-01 11:09:07 -04:00
EnableWebAudioCheck.cpp
EnableWebAudioCheck.h Use #include guards in the web audio code, no bug 2012-10-30 17:39:38 -04:00
FFTBlock.h Bug 886660 - Fix the leak in FFTBlock::SetFFTSize(); r=roc 2013-06-25 20:37:56 -04:00
GainNode.cpp Bug 859022 - Remove the MSVC exemption for FAIL_ON_WARNINGS in content/media. r=roc 2013-06-27 20:30:41 +09:00
GainNode.h Bug 867588 - Remove support for implementing Web Audio nodes which are not connected to the MediaStreams backend; r=roc 2013-05-01 11:09:07 -04:00
Makefile.in bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal 2013-07-11 11:06:34 -04:00
MediaBufferDecoder.cpp Bug 884061 - Part 3d: Use NS_DECL_THREADSAFE_ISUPPORTS in content/, r=smaug 2013-07-18 21:21:19 -05:00
MediaBufferDecoder.h Bug 891986 - Keep the source ArrayBuffer to a decodeAudioData call alive until the decoding is complete. r=mccr8,ehsan 2013-07-16 11:00:36 +02:00
MediaStreamAudioDestinationNode.cpp Bug 859022 - Remove the MSVC exemption for FAIL_ON_WARNINGS in content/media. r=roc 2013-06-27 20:30:41 +09:00
MediaStreamAudioDestinationNode.h Bug 865257 - Implement MediaStreamAudioDestinationNode. r=ehsan,roc 2013-05-21 15:17:47 -04:00
OfflineAudioCompletionEvent.cpp Bug 836599 - Part 9: Implement the DOM binding for OfflineAudioContext; r=roc 2013-05-16 19:30:41 -04:00
OfflineAudioCompletionEvent.h Bug 836599 - Part 11: Implement the processing of OfflineAudioContext; r=roc 2013-05-16 19:30:57 -04:00
PannerNode.cpp Bug 894150 - Unregister the PannerNode in the AudioListener when destroying the stream. r=ehsan 2013-07-16 14:45:41 +02:00
PannerNode.h Bug 894150 - Unregister the PannerNode in the AudioListener when destroying the stream. r=ehsan 2013-07-16 14:45:41 +02:00
PeriodicWave.cpp Bug 865256 - Part 2: Rename WaveTable to PeriodicWave; r=roc 2013-06-19 18:24:26 -04:00
PeriodicWave.h Bug 865256 - Part 2: Rename WaveTable to PeriodicWave; r=roc 2013-06-19 18:24:26 -04:00
PlayingRefChangeHandler.h Bug 890248. Avoid situations where adding a new input to an AudioNode can race with a message telling the AudioNode to release its mPlayingRef. r=ehsan 2013-07-05 13:49:53 +12:00
ReportDecodeResultTask.h Bug 856822: Annotate ~1700 methods with MOZ_OVERRIDE in /content r=smaug 2013-05-29 13:43:41 -07:00
ScriptProcessorNode.cpp Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor 2013-05-22 10:05:28 -06:00
ScriptProcessorNode.h Bug 868409 - ScriptProcessorNode's playing ref should remain active as long as there are outstanding connections; r=roc 2013-05-03 10:59:41 -04:00
ThreeDPoint.cpp Bug 849918 - Initial support for PannerNode's 3D positional audio (equalpower panning model). r=ehsan,roc 2013-03-21 17:45:53 +01:00
ThreeDPoint.h Bug 849918 - Initial support for PannerNode's 3D positional audio (equalpower panning model). r=ehsan,roc 2013-03-21 17:45:53 +01:00
WaveShaperNode.cpp Bug 865251 - Implement WaveShaperNode; r=roc 2013-05-14 00:12:30 -04:00
WaveShaperNode.h Bug 877762 - GC: Post-barrier cycle collector participants - 7 Convert most JSObect to use Heap<T> (ex. XBL) r=bz 2013-06-18 11:00:38 +01:00
WebAudioUtils.cpp Bug 892492 - Fix automation on AudioBufferSourceNode.playbackRate. r=ehsan 2013-07-12 11:23:21 +02:00
WebAudioUtils.h Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo 2013-07-18 13:59:53 -04:00
moz.build Bug 865256 - Part 2: Rename WaveTable to PeriodicWave; r=roc 2013-06-19 18:24:26 -04:00