Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
ab9f5d20
Unverified
Commit
ab9f5d20
authored
Mar 12, 2020
by
Rosen Penev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace assert.h with cassert
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
a718086f
Hide whitespace changes
Inline
Side-by-side
Showing
246 changed files
with
320 additions
and
318 deletions
+320
-318
IcyMetaDataParser.cxx
src/IcyMetaDataParser.cxx
+1
-1
Idle.cxx
src/Idle.cxx
+1
-1
IdleFlags.cxx
src/IdleFlags.cxx
+1
-1
LogBackend.cxx
src/LogBackend.cxx
+2
-1
LogInit.cxx
src/LogInit.cxx
+2
-1
Mapper.cxx
src/Mapper.cxx
+1
-1
MusicBuffer.cxx
src/MusicBuffer.cxx
+1
-1
MusicChunk.cxx
src/MusicChunk.cxx
+1
-1
MusicPipe.cxx
src/MusicPipe.cxx
+1
-1
Permission.cxx
src/Permission.cxx
+1
-1
PlaylistFile.cxx
src/PlaylistFile.cxx
+2
-1
ReplayGainGlobal.cxx
src/ReplayGainGlobal.cxx
+1
-1
ReplayGainMode.cxx
src/ReplayGainMode.cxx
+1
-1
SingleMode.cxx
src/SingleMode.cxx
+1
-1
SongLoader.cxx
src/SongLoader.cxx
+1
-1
SongUpdate.cxx
src/SongUpdate.cxx
+2
-1
TagFile.cxx
src/TagFile.cxx
+1
-1
TagStream.cxx
src/TagStream.cxx
+1
-1
ArchiveList.cxx
src/archive/ArchiveList.cxx
+1
-1
ArchivePlugin.cxx
src/archive/ArchivePlugin.cxx
+1
-1
Idle.cxx
src/client/Idle.cxx
+1
-1
List.cxx
src/client/List.cxx
+1
-1
New.cxx
src/client/New.cxx
+1
-1
Subscribe.cxx
src/client/Subscribe.cxx
+1
-1
AllCommands.cxx
src/command/AllCommands.cxx
+1
-1
CommandListBuilder.hxx
src/command/CommandListBuilder.hxx
+1
-2
FileCommands.cxx
src/command/FileCommands.cxx
+2
-1
MessageCommands.cxx
src/command/MessageCommands.cxx
+1
-2
OtherCommands.cxx
src/command/OtherCommands.cxx
+1
-1
Request.hxx
src/command/Request.hxx
+1
-2
File.cxx
src/config/File.cxx
+1
-1
Path.cxx
src/config/Path.cxx
+2
-1
DatabaseLock.hxx
src/db/DatabaseLock.hxx
+1
-1
DatabaseSong.cxx
src/db/DatabaseSong.cxx
+1
-1
PlaylistVector.cxx
src/db/PlaylistVector.cxx
+1
-2
VHelper.cxx
src/db/VHelper.cxx
+1
-1
Directory.cxx
src/db/plugins/simple/Directory.cxx
+2
-1
UpnpDatabasePlugin.cxx
src/db/plugins/upnp/UpnpDatabasePlugin.cxx
+1
-1
Editor.cxx
src/db/update/Editor.cxx
+1
-1
ExcludeList.cxx
src/db/update/ExcludeList.cxx
+1
-1
InotifyUpdate.cxx
src/db/update/InotifyUpdate.cxx
+3
-3
Service.cxx
src/db/update/Service.cxx
+1
-1
Walk.cxx
src/db/update/Walk.cxx
+1
-1
Bridge.cxx
src/decoder/Bridge.cxx
+2
-1
Control.cxx
src/decoder/Control.cxx
+1
-2
Control.hxx
src/decoder/Control.hxx
+2
-2
DecoderAPI.cxx
src/decoder/DecoderAPI.cxx
+1
-1
DecoderPlugin.cxx
src/decoder/DecoderPlugin.cxx
+1
-1
DecoderPrint.cxx
src/decoder/DecoderPrint.cxx
+1
-2
AdPlugDecoderPlugin.cxx
src/decoder/plugins/AdPlugDecoderPlugin.cxx
+1
-1
AudiofileDecoderPlugin.cxx
src/decoder/plugins/AudiofileDecoderPlugin.cxx
+1
-1
FaadDecoderPlugin.cxx
src/decoder/plugins/FaadDecoderPlugin.cxx
+1
-1
FfmpegDecoderPlugin.cxx
src/decoder/plugins/FfmpegDecoderPlugin.cxx
+2
-1
FlacPcm.cxx
src/decoder/plugins/FlacPcm.cxx
+1
-1
FlacStreamDecoder.hxx
src/decoder/plugins/FlacStreamDecoder.hxx
+2
-3
GmeDecoderPlugin.cxx
src/decoder/plugins/GmeDecoderPlugin.cxx
+2
-1
MadDecoderPlugin.cxx
src/decoder/plugins/MadDecoderPlugin.cxx
+2
-1
MikmodDecoderPlugin.cxx
src/decoder/plugins/MikmodDecoderPlugin.cxx
+1
-1
ModplugDecoderPlugin.cxx
src/decoder/plugins/ModplugDecoderPlugin.cxx
+1
-2
WavpackDecoderPlugin.cxx
src/decoder/plugins/WavpackDecoderPlugin.cxx
+2
-4
EncoderInterface.hxx
src/encoder/EncoderInterface.hxx
+2
-1
LameEncoderPlugin.cxx
src/encoder/plugins/LameEncoderPlugin.cxx
+1
-1
OpusEncoderPlugin.cxx
src/encoder/plugins/OpusEncoderPlugin.cxx
+1
-1
TwolameEncoderPlugin.cxx
src/encoder/plugins/TwolameEncoderPlugin.cxx
+1
-1
WaveEncoderPlugin.cxx
src/encoder/plugins/WaveEncoderPlugin.cxx
+2
-1
BufferedSocket.hxx
src/event/BufferedSocket.hxx
+1
-1
Call.cxx
src/event/Call.cxx
+1
-2
FullyBufferedSocket.cxx
src/event/FullyBufferedSocket.cxx
+2
-1
IdleMonitor.cxx
src/event/IdleMonitor.cxx
+1
-1
Loop.hxx
src/event/Loop.hxx
+2
-3
MultiSocketMonitor.hxx
src/event/MultiSocketMonitor.hxx
+1
-2
PollGroupPoll.cxx
src/event/PollGroupPoll.cxx
+1
-1
PollGroupWinSelect.hxx
src/event/PollGroupWinSelect.hxx
+3
-3
ServerSocket.cxx
src/event/ServerSocket.cxx
+1
-2
SignalMonitor.cxx
src/event/SignalMonitor.cxx
+1
-1
SocketMonitor.cxx
src/event/SocketMonitor.cxx
+1
-2
SocketMonitor.hxx
src/event/SocketMonitor.hxx
+1
-1
Filter.hxx
src/filter/Filter.hxx
+1
-1
Observer.cxx
src/filter/Observer.cxx
+1
-1
AutoConvertFilterPlugin.cxx
src/filter/plugins/AutoConvertFilterPlugin.cxx
+1
-2
ChainFilterPlugin.cxx
src/filter/plugins/ChainFilterPlugin.cxx
+2
-3
ConvertFilterPlugin.cxx
src/filter/plugins/ConvertFilterPlugin.cxx
+1
-2
ReplayGainFilterPlugin.cxx
src/filter/plugins/ReplayGainFilterPlugin.cxx
+1
-2
Charset.cxx
src/fs/Charset.cxx
+1
-2
Path.hxx
src/fs/Path.hxx
+1
-2
Traits.hxx
src/fs/Traits.hxx
+1
-2
FileOutputStream.hxx
src/fs/io/FileOutputStream.hxx
+2
-1
FileReader.cxx
src/fs/io/FileReader.cxx
+1
-1
PeekReader.cxx
src/fs/io/PeekReader.cxx
+1
-1
TextFile.cxx
src/fs/io/TextFile.cxx
+1
-1
AsyncInputStream.cxx
src/input/AsyncInputStream.cxx
+1
-1
BufferedInputStream.hxx
src/input/BufferedInputStream.hxx
+1
-1
Init.cxx
src/input/Init.cxx
+1
-2
InputPlugin.cxx
src/input/InputPlugin.cxx
+2
-3
InputPlugin.hxx
src/input/InputPlugin.hxx
+2
-1
InputStream.cxx
src/input/InputStream.cxx
+1
-2
InputStream.hxx
src/input/InputStream.hxx
+2
-3
LocalOpen.cxx
src/input/LocalOpen.cxx
+1
-1
RewindInputStream.cxx
src/input/RewindInputStream.cxx
+2
-1
TextInputStream.cxx
src/input/TextInputStream.cxx
+1
-1
ThreadInputStream.cxx
src/input/ThreadInputStream.cxx
+2
-1
ThreadInputStream.hxx
src/input/ThreadInputStream.hxx
+1
-1
Item.cxx
src/input/cache/Item.cxx
+1
-1
AlsaInputPlugin.cxx
src/input/plugins/AlsaInputPlugin.cxx
+2
-1
CdioParanoiaInputPlugin.cxx
src/input/plugins/CdioParanoiaInputPlugin.cxx
+2
-1
CurlInputPlugin.cxx
src/input/plugins/CurlInputPlugin.cxx
+1
-1
QobuzClient.cxx
src/input/plugins/QobuzClient.cxx
+1
-2
Class.hxx
src/java/Class.hxx
+1
-1
Object.hxx
src/java/Object.hxx
+1
-1
Ref.hxx
src/java/Ref.hxx
+1
-2
Format.hxx
src/lib/alsa/Format.hxx
+1
-1
PeriodBuffer.hxx
src/lib/alsa/PeriodBuffer.hxx
+1
-1
Delegate.cxx
src/lib/curl/Delegate.cxx
+1
-2
Global.cxx
src/lib/curl/Global.cxx
+1
-1
Init.cxx
src/lib/curl/Init.cxx
+1
-1
Request.cxx
src/lib/curl/Request.cxx
+1
-1
AsyncRequest.hxx
src/lib/dbus/AsyncRequest.hxx
+1
-2
Time.hxx
src/lib/ffmpeg/Time.hxx
+2
-1
CaseFold.cxx
src/lib/icu/CaseFold.cxx
+1
-1
Collate.cxx
src/lib/icu/Collate.cxx
+1
-1
Util.cxx
src/lib/icu/Util.cxx
+1
-1
Base.cxx
src/lib/nfs/Base.cxx
+2
-1
Cancellable.hxx
src/lib/nfs/Cancellable.hxx
+1
-2
Error.cxx
src/lib/nfs/Error.cxx
+2
-1
FileReader.cxx
src/lib/nfs/FileReader.cxx
+2
-2
Glue.cxx
src/lib/nfs/Glue.cxx
+1
-1
Util.hxx
src/lib/sqlite/Util.hxx
+1
-1
ClientInit.cxx
src/lib/upnp/ClientInit.cxx
+1
-1
Init.cxx
src/lib/upnp/Init.cxx
+1
-1
FlacStreamMetadata.cxx
src/lib/xiph/FlacStreamMetadata.cxx
+1
-1
OggPage.hxx
src/lib/xiph/OggPage.hxx
+2
-1
OggStreamState.hxx
src/lib/xiph/OggStreamState.hxx
+2
-1
ls.cxx
src/ls.cxx
+1
-1
MixerAll.cxx
src/mixer/MixerAll.cxx
+1
-1
MixerControl.cxx
src/mixer/MixerControl.cxx
+1
-1
MixerType.cxx
src/mixer/MixerType.cxx
+1
-1
Volume.cxx
src/mixer/Volume.cxx
+2
-1
OssMixerPlugin.cxx
src/mixer/plugins/OssMixerPlugin.cxx
+2
-1
PulseMixerPlugin.cxx
src/mixer/plugins/PulseMixerPlugin.cxx
+1
-2
SoftwareMixerPlugin.cxx
src/mixer/plugins/SoftwareMixerPlugin.cxx
+2
-1
WinmmMixerPlugin.cxx
src/mixer/plugins/WinmmMixerPlugin.cxx
+1
-1
AddressInfo.cxx
src/net/AddressInfo.cxx
+1
-1
IPv4Address.cxx
src/net/IPv4Address.cxx
+1
-1
IPv6Address.cxx
src/net/IPv6Address.cxx
+2
-1
SocketAddress.cxx
src/net/SocketAddress.cxx
+2
-1
StaticSocketAddress.hxx
src/net/StaticSocketAddress.hxx
+1
-1
ToString.cxx
src/net/ToString.cxx
+1
-1
Control.cxx
src/output/Control.cxx
+1
-1
Init.cxx
src/output/Init.cxx
+1
-1
MultipleOutputs.cxx
src/output/MultipleOutputs.cxx
+1
-1
MultipleOutputs.hxx
src/output/MultipleOutputs.hxx
+1
-2
OutputPlugin.cxx
src/output/OutputPlugin.cxx
+1
-1
SharedPipeConsumer.hxx
src/output/SharedPipeConsumer.hxx
+1
-1
Source.hxx
src/output/Source.hxx
+2
-2
Thread.cxx
src/output/Thread.cxx
+2
-1
Timer.cxx
src/output/Timer.cxx
+1
-1
JackOutputPlugin.cxx
src/output/plugins/JackOutputPlugin.cxx
+1
-2
OssOutputPlugin.cxx
src/output/plugins/OssOutputPlugin.cxx
+1
-1
PulseOutputPlugin.cxx
src/output/plugins/PulseOutputPlugin.cxx
+1
-1
RecorderOutputPlugin.cxx
src/output/plugins/RecorderOutputPlugin.cxx
+2
-2
ShoutOutputPlugin.cxx
src/output/plugins/ShoutOutputPlugin.cxx
+2
-2
HttpdClient.cxx
src/output/plugins/httpd/HttpdClient.cxx
+2
-1
HttpdOutputPlugin.cxx
src/output/plugins/httpd/HttpdOutputPlugin.cxx
+1
-1
AudioFormat.cxx
src/pcm/AudioFormat.cxx
+2
-1
AudioParser.cxx
src/pcm/AudioParser.cxx
+2
-1
ChannelsConverter.cxx
src/pcm/ChannelsConverter.cxx
+1
-1
ChannelsConverter.hxx
src/pcm/ChannelsConverter.hxx
+1
-1
ConfiguredResampler.cxx
src/pcm/ConfiguredResampler.cxx
+2
-1
Convert.cxx
src/pcm/Convert.cxx
+1
-2
Dop.cxx
src/pcm/Dop.cxx
+1
-2
Dsd2Pcm.cxx
src/pcm/Dsd2Pcm.cxx
+2
-1
Export.cxx
src/pcm/Export.cxx
+2
-1
FallbackResampler.cxx
src/pcm/FallbackResampler.cxx
+1
-1
FormatConverter.cxx
src/pcm/FormatConverter.cxx
+1
-1
FormatConverter.hxx
src/pcm/FormatConverter.hxx
+1
-1
GlueResampler.cxx
src/pcm/GlueResampler.cxx
+1
-1
LibsamplerateResampler.cxx
src/pcm/LibsamplerateResampler.cxx
+2
-1
Mix.cxx
src/pcm/Mix.cxx
+1
-2
PcmChannels.cxx
src/pcm/PcmChannels.cxx
+1
-2
PcmDsd.cxx
src/pcm/PcmDsd.cxx
+1
-1
RestBuffer.hxx
src/pcm/RestBuffer.hxx
+1
-1
SampleFormat.cxx
src/pcm/SampleFormat.cxx
+1
-1
SoxrResampler.cxx
src/pcm/SoxrResampler.cxx
+2
-1
Volume.cxx
src/pcm/Volume.cxx
+2
-1
Volume.hxx
src/pcm/Volume.hxx
+1
-1
Control.cxx
src/player/Control.cxx
+1
-2
CrossFade.cxx
src/player/CrossFade.cxx
+1
-2
PlaylistMapper.cxx
src/playlist/PlaylistMapper.cxx
+1
-1
PlaylistRegistry.cxx
src/playlist/PlaylistRegistry.cxx
+1
-2
PlaylistStream.cxx
src/playlist/PlaylistStream.cxx
+1
-2
CueParser.cxx
src/playlist/cue/CueParser.cxx
+2
-1
IdTable.hxx
src/queue/IdTable.hxx
+1
-2
Playlist.cxx
src/queue/Playlist.cxx
+1
-1
Queue.hxx
src/queue/Queue.hxx
+1
-1
Filter.cxx
src/song/Filter.cxx
+2
-1
StringFilter.cxx
src/song/StringFilter.cxx
+1
-1
Database.cxx
src/sticker/Database.cxx
+1
-2
MemoryDirectoryReader.cxx
src/storage/MemoryDirectoryReader.cxx
+1
-1
CurlStorage.cxx
src/storage/plugins/CurlStorage.cxx
+1
-2
NfsStorage.cxx
src/storage/plugins/NfsStorage.cxx
+1
-1
EventFD.cxx
src/system/EventFD.cxx
+2
-1
EventPipe.cxx
src/system/EventPipe.cxx
+2
-1
FileDescriptor.cxx
src/system/FileDescriptor.cxx
+2
-1
SignalFD.cxx
src/system/SignalFD.cxx
+2
-1
UniqueFileDescriptor.hxx
src/system/UniqueFileDescriptor.hxx
+1
-2
ApeLoader.cxx
src/tag/ApeLoader.cxx
+1
-1
Builder.cxx
src/tag/Builder.cxx
+1
-1
FixString.cxx
src/tag/FixString.cxx
+2
-1
MixRamp.cxx
src/tag/MixRamp.cxx
+1
-1
ParseName.cxx
src/tag/ParseName.cxx
+2
-1
Pool.cxx
src/tag/Pool.cxx
+1
-1
ReplayGain.cxx
src/tag/ReplayGain.cxx
+1
-1
Tag.cxx
src/tag/Tag.cxx
+1
-1
VorbisComment.cxx
src/tag/VorbisComment.cxx
+1
-1
Thread.hxx
src/thread/Thread.hxx
+2
-2
ISO8601.cxx
src/time/ISO8601.cxx
+1
-1
Parser.cxx
src/time/Parser.cxx
+1
-1
PidFile.hxx
src/unix/PidFile.hxx
+2
-1
ASCII.hxx
src/util/ASCII.hxx
+2
-1
AllocatedArray.hxx
src/util/AllocatedArray.hxx
+1
-2
ByteReverse.cxx
src/util/ByteReverse.cxx
+1
-1
CircularBuffer.hxx
src/util/CircularBuffer.hxx
+2
-1
ConstBuffer.hxx
src/util/ConstBuffer.hxx
+1
-1
DivideString.hxx
src/util/DivideString.hxx
+1
-1
ForeignFifoBuffer.hxx
src/util/ForeignFifoBuffer.hxx
+2
-4
LazyRandomEngine.hxx
src/util/LazyRandomEngine.hxx
+1
-2
Manual.hxx
src/util/Manual.hxx
+1
-2
NumberParser.hxx
src/util/NumberParser.hxx
+2
-1
OptionDef.hxx
src/util/OptionDef.hxx
+1
-1
PeakBuffer.cxx
src/util/PeakBuffer.cxx
+1
-1
SliceBuffer.hxx
src/util/SliceBuffer.hxx
+2
-2
SparseBuffer.hxx
src/util/SparseBuffer.hxx
+1
-2
StaticFifoBuffer.hxx
src/util/StaticFifoBuffer.hxx
+2
-3
StringUtil.cxx
src/util/StringUtil.cxx
+1
-1
UriRelative.cxx
src/util/UriRelative.cxx
+2
-1
UriUtil.cxx
src/util/UriUtil.cxx
+2
-1
WritableBuffer.hxx
src/util/WritableBuffer.hxx
+1
-1
ContainerScan.cxx
test/ContainerScan.cxx
+1
-1
RunChromaprint.cxx
test/RunChromaprint.cxx
+1
-1
read_mixer.cxx
test/read_mixer.cxx
+2
-1
read_tags.cxx
test/read_tags.cxx
+1
-1
run_convert.cxx
test/run_convert.cxx
+1
-1
run_decoder.cxx
test/run_decoder.cxx
+1
-1
run_filter.cxx
test/run_filter.cxx
+1
-1
run_output.cxx
test/run_output.cxx
+1
-1
test_vorbis_encoder.cxx
test/test_vorbis_encoder.cxx
+1
-1
No files found.
src/IcyMetaDataParser.cxx
View file @
ab9f5d20
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
#include <string.h>
#include <string.h>
#ifdef HAVE_ICU_CONVERTER
#ifdef HAVE_ICU_CONVERTER
...
...
src/Idle.cxx
View file @
ab9f5d20
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "Main.hxx"
#include "Main.hxx"
#include "Instance.hxx"
#include "Instance.hxx"
#include <
assert.h
>
#include <
cassert
>
void
void
idle_add
(
unsigned
flags
)
idle_add
(
unsigned
flags
)
...
...
src/IdleFlags.cxx
View file @
ab9f5d20
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include "IdleFlags.hxx"
#include "IdleFlags.hxx"
#include "util/ASCII.hxx"
#include "util/ASCII.hxx"
#include <
assert.h
>
#include <
cassert
>
static
const
char
*
const
idle_names
[]
=
{
static
const
char
*
const
idle_names
[]
=
{
"database"
,
"database"
,
...
...
src/LogBackend.cxx
View file @
ab9f5d20
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
#include "util/StringStrip.hxx"
#include "util/StringStrip.hxx"
#include "config.h"
#include "config.h"
#include <assert.h>
#include <cassert>
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <time.h>
#include <time.h>
...
...
src/LogInit.cxx
View file @
ab9f5d20
...
@@ -30,11 +30,12 @@
...
@@ -30,11 +30,12 @@
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include "system/Error.hxx"
#include "system/Error.hxx"
#include <cassert>
#ifdef ENABLE_SYSTEMD_DAEMON
#ifdef ENABLE_SYSTEMD_DAEMON
#include <systemd/sd-daemon.h>
#include <systemd/sd-daemon.h>
#endif
#endif
#include <assert.h>
#include <string.h>
#include <string.h>
#include <fcntl.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdio.h>
...
...
src/Mapper.cxx
View file @
ab9f5d20
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#include "Main.hxx"
#include "Main.hxx"
#endif
#endif
#include <
assert.h
>
#include <
cassert
>
/**
/**
* The absolute path of the playlist directory encoded in the
* The absolute path of the playlist directory encoded in the
...
...
src/MusicBuffer.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "MusicBuffer.hxx"
#include "MusicBuffer.hxx"
#include "MusicChunk.hxx"
#include "MusicChunk.hxx"
#include <
assert.h
>
#include <
cassert
>
MusicBuffer
::
MusicBuffer
(
unsigned
num_chunks
)
MusicBuffer
::
MusicBuffer
(
unsigned
num_chunks
)
:
buffer
(
num_chunks
)
{
:
buffer
(
num_chunks
)
{
...
...
src/MusicChunk.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "pcm/AudioFormat.hxx"
#include "pcm/AudioFormat.hxx"
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
#include <
assert.h
>
#include <
cassert
>
MusicChunkInfo
::
MusicChunkInfo
()
noexcept
=
default
;
MusicChunkInfo
::
MusicChunkInfo
()
noexcept
=
default
;
MusicChunkInfo
::~
MusicChunkInfo
()
noexcept
=
default
;
MusicChunkInfo
::~
MusicChunkInfo
()
noexcept
=
default
;
...
...
src/MusicPipe.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "MusicPipe.hxx"
#include "MusicPipe.hxx"
#include "MusicChunk.hxx"
#include "MusicChunk.hxx"
#include <
assert.h
>
#include <
cassert
>
#ifndef NDEBUG
#ifndef NDEBUG
...
...
src/Permission.cxx
View file @
ab9f5d20
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include <cassert>
#include <map>
#include <map>
#include <string>
#include <string>
#include <utility>
#include <utility>
#include <assert.h>
#include <string.h>
#include <string.h>
static
constexpr
char
PERMISSION_PASSWORD_CHAR
=
'@'
;
static
constexpr
char
PERMISSION_PASSWORD_CHAR
=
'@'
;
...
...
src/PlaylistFile.cxx
View file @
ab9f5d20
...
@@ -42,7 +42,8 @@
...
@@ -42,7 +42,8 @@
#include "util/StringCompare.hxx"
#include "util/StringCompare.hxx"
#include "util/UriExtract.hxx"
#include "util/UriExtract.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
static
const
char
PLAYLIST_COMMENT
=
'#'
;
static
const
char
PLAYLIST_COMMENT
=
'#'
;
...
...
src/ReplayGainGlobal.cxx
View file @
ab9f5d20
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
#include "ReplayGainConfig.hxx"
#include "ReplayGainConfig.hxx"
#include "config/Data.hxx"
#include "config/Data.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
#include <math.h>
#include <math.h>
...
...
src/ReplayGainMode.cxx
View file @
ab9f5d20
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
#include "ReplayGainMode.hxx"
#include "ReplayGainMode.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
const
char
*
const
char
*
...
...
src/SingleMode.cxx
View file @
ab9f5d20
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
#include "SingleMode.hxx"
#include "SingleMode.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
const
char
*
const
char
*
...
...
src/SongLoader.cxx
View file @
ab9f5d20
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "PlaylistError.hxx"
#include "PlaylistError.hxx"
#include "config.h"
#include "config.h"
#include <
assert.h
>
#include <
cassert
>
#ifdef ENABLE_DATABASE
#ifdef ENABLE_DATABASE
...
...
src/SongUpdate.cxx
View file @
ab9f5d20
...
@@ -34,7 +34,8 @@
...
@@ -34,7 +34,8 @@
#include "TagArchive.hxx"
#include "TagArchive.hxx"
#endif
#endif
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#ifdef ENABLE_DATABASE
#ifdef ENABLE_DATABASE
...
...
src/TagFile.cxx
View file @
ab9f5d20
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "input/InputStream.hxx"
#include "input/InputStream.hxx"
#include "input/LocalOpen.hxx"
#include "input/LocalOpen.hxx"
#include <
assert.h
>
#include <
cassert
>
class
TagFileScan
{
class
TagFileScan
{
const
Path
path_fs
;
const
Path
path_fs
;
...
...
src/TagStream.cxx
View file @
ab9f5d20
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
#include "util/UriExtract.hxx"
#include "util/UriExtract.hxx"
#include <
assert.h
>
#include <
cassert
>
/**
/**
* Does the #DecoderPlugin support either the suffix or the MIME type?
* Does the #DecoderPlugin support either the suffix or the MIME type?
...
...
src/archive/ArchiveList.cxx
View file @
ab9f5d20
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
#include "plugins/Iso9660ArchivePlugin.hxx"
#include "plugins/Iso9660ArchivePlugin.hxx"
#include "plugins/ZzipArchivePlugin.hxx"
#include "plugins/ZzipArchivePlugin.hxx"
#include <cassert>
#include <iterator>
#include <iterator>
#include <assert.h>
#include <string.h>
#include <string.h>
const
ArchivePlugin
*
const
archive_plugins
[]
=
{
const
ArchivePlugin
*
const
archive_plugins
[]
=
{
...
...
src/archive/ArchivePlugin.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "ArchiveFile.hxx"
#include "ArchiveFile.hxx"
#include "fs/Path.hxx"
#include "fs/Path.hxx"
#include <
assert.h
>
#include <
cassert
>
std
::
unique_ptr
<
ArchiveFile
>
std
::
unique_ptr
<
ArchiveFile
>
archive_file_open
(
const
ArchivePlugin
*
plugin
,
Path
path
)
archive_file_open
(
const
ArchivePlugin
*
plugin
,
Path
path
)
...
...
src/client/Idle.cxx
View file @
ab9f5d20
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "Response.hxx"
#include "Response.hxx"
#include "Idle.hxx"
#include "Idle.hxx"
#include <
assert.h
>
#include <
cassert
>
static
void
static
void
WriteIdleResponse
(
Response
&
r
,
unsigned
flags
)
noexcept
WriteIdleResponse
(
Response
&
r
,
unsigned
flags
)
noexcept
...
...
src/client/List.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "List.hxx"
#include "List.hxx"
#include "util/DeleteDisposer.hxx"
#include "util/DeleteDisposer.hxx"
#include <
assert.h
>
#include <
cassert
>
ClientList
::~
ClientList
()
noexcept
ClientList
::~
ClientList
()
noexcept
{
{
...
...
src/client/New.cxx
View file @
ab9f5d20
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "net/ToString.hxx"
#include "net/ToString.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <
assert.h
>
#include <
cassert
>
static
constexpr
char
GREETING
[]
=
"OK MPD "
PROTOCOL_VERSION
"
\n
"
;
static
constexpr
char
GREETING
[]
=
"OK MPD "
PROTOCOL_VERSION
"
\n
"
;
...
...
src/client/Subscribe.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "Partition.hxx"
#include "Partition.hxx"
#include "IdleFlags.hxx"
#include "IdleFlags.hxx"
#include <
assert.h
>
#include <
cassert
>
Client
::
SubscribeResult
Client
::
SubscribeResult
Client
::
Subscribe
(
const
char
*
channel
)
noexcept
Client
::
Subscribe
(
const
char
*
channel
)
noexcept
...
...
src/command/AllCommands.cxx
View file @
ab9f5d20
...
@@ -48,9 +48,9 @@
...
@@ -48,9 +48,9 @@
#include "StickerCommands.hxx"
#include "StickerCommands.hxx"
#endif
#endif
#include <cassert>
#include <iterator>
#include <iterator>
#include <assert.h>
#include <string.h>
#include <string.h>
/*
/*
...
...
src/command/CommandListBuilder.hxx
View file @
ab9f5d20
...
@@ -20,11 +20,10 @@
...
@@ -20,11 +20,10 @@
#ifndef MPD_COMMAND_LIST_BUILDER_HXX
#ifndef MPD_COMMAND_LIST_BUILDER_HXX
#define MPD_COMMAND_LIST_BUILDER_HXX
#define MPD_COMMAND_LIST_BUILDER_HXX
#include <cassert>
#include <list>
#include <list>
#include <string>
#include <string>
#include <assert.h>
class
CommandListBuilder
{
class
CommandListBuilder
{
/**
/**
* print OK after each command execution
* print OK after each command execution
...
...
src/command/FileCommands.cxx
View file @
ab9f5d20
...
@@ -43,7 +43,8 @@
...
@@ -43,7 +43,8 @@
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <cassert>
#include <inttypes.h>
/* for PRIu64 */
#include <inttypes.h>
/* for PRIu64 */
gcc_pure
gcc_pure
...
...
src/command/MessageCommands.cxx
View file @
ab9f5d20
...
@@ -25,11 +25,10 @@
...
@@ -25,11 +25,10 @@
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include "Partition.hxx"
#include "Partition.hxx"
#include <cassert>
#include <set>
#include <set>
#include <string>
#include <string>
#include <assert.h>
CommandResult
CommandResult
handle_subscribe
(
Client
&
client
,
Request
args
,
Response
&
r
)
handle_subscribe
(
Client
&
client
,
Request
args
,
Response
&
r
)
{
{
...
...
src/command/OtherCommands.cxx
View file @
ab9f5d20
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
#include "db/update/Service.hxx"
#include "db/update/Service.hxx"
#endif
#endif
#include <
assert.h
>
#include <
cassert
>
static
void
static
void
print_spl_list
(
Response
&
r
,
const
PlaylistVector
&
list
)
print_spl_list
(
Response
&
r
,
const
PlaylistVector
&
list
)
...
...
src/command/Request.hxx
View file @
ab9f5d20
...
@@ -25,10 +25,9 @@
...
@@ -25,10 +25,9 @@
#include "Chrono.hxx"
#include "Chrono.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <cassert>
#include <utility>
#include <utility>
#include <assert.h>
class
Response
;
class
Response
;
class
Request
:
public
ConstBuffer
<
const
char
*>
{
class
Request
:
public
ConstBuffer
<
const
char
*>
{
...
...
src/config/File.cxx
View file @
ab9f5d20
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include "fs/io/BufferedReader.hxx"
#include "fs/io/BufferedReader.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <
assert.h
>
#include <
cassert
>
static
constexpr
char
CONF_COMMENT
=
'#'
;
static
constexpr
char
CONF_COMMENT
=
'#'
;
...
...
src/config/Path.cxx
View file @
ab9f5d20
...
@@ -24,7 +24,8 @@
...
@@ -24,7 +24,8 @@
#include "fs/StandardDirectory.hxx"
#include "fs/StandardDirectory.hxx"
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#ifndef _WIN32
#ifndef _WIN32
...
...
src/db/DatabaseLock.hxx
View file @
ab9f5d20
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <
assert.h
>
#include <
cassert
>
extern
Mutex
db_mutex
;
extern
Mutex
db_mutex
;
...
...
src/db/DatabaseSong.cxx
View file @
ab9f5d20
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "util/UriExtract.hxx"
#include "util/UriExtract.hxx"
#include "util/UriRelative.hxx"
#include "util/UriRelative.hxx"
#include <
assert.h
>
#include <
cassert
>
DetachedSong
DetachedSong
DatabaseDetachSong
(
const
Storage
*
storage
,
const
LightSong
&
song
)
noexcept
DatabaseDetachSong
(
const
Storage
*
storage
,
const
LightSong
&
song
)
noexcept
...
...
src/db/PlaylistVector.cxx
View file @
ab9f5d20
...
@@ -21,8 +21,7 @@
...
@@ -21,8 +21,7 @@
#include "db/DatabaseLock.hxx"
#include "db/DatabaseLock.hxx"
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
PlaylistVector
::
iterator
PlaylistVector
::
iterator
PlaylistVector
::
find
(
const
char
*
name
)
noexcept
PlaylistVector
::
find
(
const
char
*
name
)
noexcept
...
...
src/db/VHelper.cxx
View file @
ab9f5d20
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
#include "song/Filter.hxx"
#include "song/Filter.hxx"
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <utility>
#include <utility>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
...
...
src/db/plugins/simple/Directory.cxx
View file @
ab9f5d20
...
@@ -33,7 +33,8 @@
...
@@ -33,7 +33,8 @@
#include "util/Alloc.hxx"
#include "util/Alloc.hxx"
#include "util/DeleteDisposer.hxx"
#include "util/DeleteDisposer.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/db/plugins/upnp/UpnpDatabasePlugin.cxx
View file @
ab9f5d20
...
@@ -40,10 +40,10 @@
...
@@ -40,10 +40,10 @@
#include "util/RecursiveMap.hxx"
#include "util/RecursiveMap.hxx"
#include "util/SplitString.hxx"
#include "util/SplitString.hxx"
#include <cassert>
#include <string>
#include <string>
#include <utility>
#include <utility>
#include <assert.h>
#include <string.h>
#include <string.h>
static
const
char
*
const
rootid
=
"0"
;
static
const
char
*
const
rootid
=
"0"
;
...
...
src/db/update/Editor.cxx
View file @
ab9f5d20
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include "db/plugins/simple/Directory.hxx"
#include "db/plugins/simple/Directory.hxx"
#include "db/plugins/simple/Song.hxx"
#include "db/plugins/simple/Song.hxx"
#include <
assert.h
>
#include <
cassert
>
void
void
DatabaseEditor
::
DeleteSong
(
Directory
&
dir
,
Song
*
del
)
DatabaseEditor
::
DeleteSong
(
Directory
&
dir
,
Song
*
del
)
...
...
src/db/update/ExcludeList.cxx
View file @
ab9f5d20
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "util/StringStrip.hxx"
#include "util/StringStrip.hxx"
#include "config.h"
#include "config.h"
#include <
assert.h
>
#include <
cassert
>
#ifdef HAVE_CLASS_GLOB
#ifdef HAVE_CLASS_GLOB
...
...
src/db/update/InotifyUpdate.cxx
View file @
ab9f5d20
...
@@ -27,11 +27,11 @@
...
@@ -27,11 +27,11 @@
#include "fs/Traits.hxx"
#include "fs/Traits.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <string>
#include <cassert>
#include <map>
#include <forward_list>
#include <forward_list>
#include <map>
#include <string>
#include <assert.h>
#include <sys/inotify.h>
#include <sys/inotify.h>
#include <string.h>
#include <string.h>
#include <dirent.h>
#include <dirent.h>
...
...
src/db/update/Service.cxx
View file @
ab9f5d20
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#include "event/Loop.hxx"
#include "event/Loop.hxx"
#endif
#endif
#include <
assert.h
>
#include <
cassert
>
UpdateService
::
UpdateService
(
const
ConfigData
&
_config
,
UpdateService
::
UpdateService
(
const
ConfigData
&
_config
,
EventLoop
&
_loop
,
SimpleDatabase
&
_db
,
EventLoop
&
_loop
,
SimpleDatabase
&
_db
,
...
...
src/db/update/Walk.cxx
View file @
ab9f5d20
...
@@ -38,10 +38,10 @@
...
@@ -38,10 +38,10 @@
#include "util/UriExtract.hxx"
#include "util/UriExtract.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <cassert>
#include <exception>
#include <exception>
#include <memory>
#include <memory>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include <errno.h>
#include <errno.h>
...
...
src/decoder/Bridge.cxx
View file @
ab9f5d20
...
@@ -36,7 +36,8 @@
...
@@ -36,7 +36,8 @@
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include "util/StringBuffer.hxx"
#include "util/StringBuffer.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#include <math.h>
#include <math.h>
...
...
src/decoder/Control.cxx
View file @
ab9f5d20
...
@@ -21,10 +21,9 @@
...
@@ -21,10 +21,9 @@
#include "MusicPipe.hxx"
#include "MusicPipe.hxx"
#include "song/DetachedSong.hxx"
#include "song/DetachedSong.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
DecoderControl
::
DecoderControl
(
Mutex
&
_mutex
,
Cond
&
_client_cond
,
DecoderControl
::
DecoderControl
(
Mutex
&
_mutex
,
Cond
&
_client_cond
,
InputCacheManager
*
_input_cache
,
InputCacheManager
*
_input_cache
,
const
AudioFormat
_configured_audio_format
,
const
AudioFormat
_configured_audio_format
,
...
...
src/decoder/Control.hxx
View file @
ab9f5d20
...
@@ -31,11 +31,11 @@
...
@@ -31,11 +31,11 @@
#include "ReplayGainConfig.hxx"
#include "ReplayGainConfig.hxx"
#include "ReplayGainMode.hxx"
#include "ReplayGainMode.hxx"
#include <cassert>
#include <exception>
#include <exception>
#include <utility>
#include <memory>
#include <memory>
#include <utility>
#include <assert.h>
#include <stdint.h>
#include <stdint.h>
/* damn you, windows.h! */
/* damn you, windows.h! */
...
...
src/decoder/DecoderAPI.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "input/InputStream.hxx"
#include "input/InputStream.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <
assert.h
>
#include <
cassert
>
size_t
size_t
decoder_read
(
DecoderClient
*
client
,
decoder_read
(
DecoderClient
*
client
,
...
...
src/decoder/DecoderPlugin.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "DecoderPlugin.hxx"
#include "DecoderPlugin.hxx"
#include "util/StringUtil.hxx"
#include "util/StringUtil.hxx"
#include <
assert.h
>
#include <
cassert
>
bool
bool
DecoderPlugin
::
SupportsSuffix
(
const
char
*
suffix
)
const
noexcept
DecoderPlugin
::
SupportsSuffix
(
const
char
*
suffix
)
const
noexcept
...
...
src/decoder/DecoderPrint.cxx
View file @
ab9f5d20
...
@@ -22,10 +22,9 @@
...
@@ -22,10 +22,9 @@
#include "DecoderPlugin.hxx"
#include "DecoderPlugin.hxx"
#include "client/Response.hxx"
#include "client/Response.hxx"
#include <cassert>
#include <functional>
#include <functional>
#include <assert.h>
static
void
static
void
decoder_plugin_print
(
Response
&
r
,
decoder_plugin_print
(
Response
&
r
,
const
DecoderPlugin
&
plugin
)
const
DecoderPlugin
&
plugin
)
...
...
src/decoder/plugins/AdPlugDecoderPlugin.cxx
View file @
ab9f5d20
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include <adplug/adplug.h>
#include <adplug/adplug.h>
#include <adplug/emuopl.h>
#include <adplug/emuopl.h>
#include <
assert.h
>
#include <
cassert
>
static
constexpr
Domain
adplug_domain
(
"adplug"
);
static
constexpr
Domain
adplug_domain
(
"adplug"
);
...
...
src/decoder/plugins/AudiofileDecoderPlugin.cxx
View file @
ab9f5d20
...
@@ -29,9 +29,9 @@
...
@@ -29,9 +29,9 @@
#include <audiofile.h>
#include <audiofile.h>
#include <af_vfs.h>
#include <af_vfs.h>
#include <cassert>
#include <exception>
#include <exception>
#include <assert.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/decoder/plugins/FaadDecoderPlugin.cxx
View file @
ab9f5d20
...
@@ -30,9 +30,9 @@
...
@@ -30,9 +30,9 @@
#include <neaacdec.h>
#include <neaacdec.h>
#include <cassert>
#include <cmath>
#include <cmath>
#include <assert.h>
#include <string.h>
#include <string.h>
static
const
unsigned
adts_sample_rates
[]
=
static
const
unsigned
adts_sample_rates
[]
=
...
...
src/decoder/plugins/FfmpegDecoderPlugin.cxx
View file @
ab9f5d20
...
@@ -52,7 +52,8 @@ extern "C" {
...
@@ -52,7 +52,8 @@ extern "C" {
#include <libavutil/frame.h>
#include <libavutil/frame.h>
}
}
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
/**
/**
...
...
src/decoder/plugins/FlacPcm.cxx
View file @
ab9f5d20
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <
assert.h
>
#include <
cassert
>
void
void
FlacPcmImport
::
Open
(
unsigned
sample_rate
,
unsigned
bits_per_sample
,
FlacPcmImport
::
Open
(
unsigned
sample_rate
,
unsigned
bits_per_sample
,
...
...
src/decoder/plugins/FlacStreamDecoder.hxx
View file @
ab9f5d20
...
@@ -22,10 +22,9 @@
...
@@ -22,10 +22,9 @@
#include <FLAC/stream_decoder.h>
#include <FLAC/stream_decoder.h>
#include <
utility
>
#include <
cassert
>
#include <stdexcept>
#include <stdexcept>
#include <utility>
#include <assert.h>
/**
/**
* OO wrapper for a FLAC__StreamDecoder.
* OO wrapper for a FLAC__StreamDecoder.
...
...
src/decoder/plugins/GmeDecoderPlugin.cxx
View file @
ab9f5d20
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
#include <gme/gme.h>
#include <gme/gme.h>
#include <assert.h>
#include <cassert>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
...
...
src/decoder/plugins/MadDecoderPlugin.cxx
View file @
ab9f5d20
...
@@ -39,7 +39,8 @@
...
@@ -39,7 +39,8 @@
#include <id3tag.h>
#include <id3tag.h>
#endif
#endif
#include <assert.h>
#include <cassert>
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
...
...
src/decoder/plugins/MikmodDecoderPlugin.cxx
View file @
ab9f5d20
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include <mikmod.h>
#include <mikmod.h>
#include <
assert.h
>
#include <
cassert
>
static
constexpr
Domain
mikmod_domain
(
"mikmod"
);
static
constexpr
Domain
mikmod_domain
(
"mikmod"
);
...
...
src/decoder/plugins/ModplugDecoderPlugin.cxx
View file @
ab9f5d20
...
@@ -29,8 +29,7 @@
...
@@ -29,8 +29,7 @@
#include <libmodplug/modplug.h>
#include <libmodplug/modplug.h>
#include <cassert>
#include <assert.h>
static
constexpr
Domain
modplug_domain
(
"modplug"
);
static
constexpr
Domain
modplug_domain
(
"modplug"
);
...
...
src/decoder/plugins/WavpackDecoderPlugin.cxx
View file @
ab9f5d20
...
@@ -31,13 +31,11 @@
...
@@ -31,13 +31,11 @@
#include <wavpack/wavpack.h>
#include <wavpack/wavpack.h>
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <iterator>
#include <iterator>
#include <memory>
#include <memory>
#include <cstdlib>
#include <assert.h>
#define ERRORLEN 80
#define ERRORLEN 80
#ifdef OPEN_DSD_AS_PCM
#ifdef OPEN_DSD_AS_PCM
...
...
src/encoder/EncoderInterface.hxx
View file @
ab9f5d20
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
#include "EncoderPlugin.hxx"
#include "EncoderPlugin.hxx"
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <assert.h>
#include <cassert>
#include <stddef.h>
#include <stddef.h>
struct
AudioFormat
;
struct
AudioFormat
;
...
...
src/encoder/plugins/LameEncoderPlugin.cxx
View file @
ab9f5d20
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
#include <lame/lame.h>
#include <lame/lame.h>
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
class
LameEncoder
final
:
public
Encoder
{
class
LameEncoder
final
:
public
Encoder
{
...
...
src/encoder/plugins/OpusEncoderPlugin.cxx
View file @
ab9f5d20
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
#include <opus.h>
#include <opus.h>
#include <ogg/ogg.h>
#include <ogg/ogg.h>
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
namespace
{
namespace
{
...
...
src/encoder/plugins/TwolameEncoderPlugin.cxx
View file @
ab9f5d20
...
@@ -27,9 +27,9 @@
...
@@ -27,9 +27,9 @@
#include <twolame.h>
#include <twolame.h>
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
class
TwolameEncoder
final
:
public
Encoder
{
class
TwolameEncoder
final
:
public
Encoder
{
...
...
src/encoder/plugins/WaveEncoderPlugin.cxx
View file @
ab9f5d20
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
#include "util/ByteOrder.hxx"
#include "util/ByteOrder.hxx"
#include "util/DynamicFifoBuffer.hxx"
#include "util/DynamicFifoBuffer.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
static
constexpr
uint16_t
WAVE_FORMAT_PCM
=
1
;
static
constexpr
uint16_t
WAVE_FORMAT_PCM
=
1
;
...
...
src/event/BufferedSocket.hxx
View file @
ab9f5d20
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
#include "SocketMonitor.hxx"
#include "SocketMonitor.hxx"
#include "util/StaticFifoBuffer.hxx"
#include "util/StaticFifoBuffer.hxx"
#include <cassert>
#include <exception>
#include <exception>
#include <assert.h>
#include <stdint.h>
#include <stdint.h>
class
EventLoop
;
class
EventLoop
;
...
...
src/event/Call.cxx
View file @
ab9f5d20
...
@@ -23,10 +23,9 @@
...
@@ -23,10 +23,9 @@
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "thread/Cond.hxx"
#include <cassert>
#include <exception>
#include <exception>
#include <assert.h>
class
BlockingCallMonitor
final
class
BlockingCallMonitor
final
{
{
DeferEvent
defer_event
;
DeferEvent
defer_event
;
...
...
src/event/FullyBufferedSocket.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
#include "net/SocketError.hxx"
#include "net/SocketError.hxx"
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
FullyBufferedSocket
::
ssize_t
FullyBufferedSocket
::
ssize_t
...
...
src/event/IdleMonitor.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "IdleMonitor.hxx"
#include "IdleMonitor.hxx"
#include "Loop.hxx"
#include "Loop.hxx"
#include <
assert.h
>
#include <
cassert
>
void
void
IdleMonitor
::
Cancel
()
noexcept
IdleMonitor
::
Cancel
()
noexcept
...
...
src/event/Loop.hxx
View file @
ab9f5d20
...
@@ -34,10 +34,9 @@
...
@@ -34,10 +34,9 @@
#include <boost/intrusive/set.hpp>
#include <boost/intrusive/set.hpp>
#include <boost/intrusive/list.hpp>
#include <boost/intrusive/list.hpp>
#include <chrono>
#include <atomic>
#include <atomic>
#include <cassert>
#include <
assert.h
>
#include <
chrono
>
/**
/**
* An event loop that polls for events on file/socket descriptors.
* An event loop that polls for events on file/socket descriptors.
...
...
src/event/MultiSocketMonitor.hxx
View file @
ab9f5d20
...
@@ -24,11 +24,10 @@
...
@@ -24,11 +24,10 @@
#include "TimerEvent.hxx"
#include "TimerEvent.hxx"
#include "SocketMonitor.hxx"
#include "SocketMonitor.hxx"
#include <cassert>
#include <forward_list>
#include <forward_list>
#include <iterator>
#include <iterator>
#include <assert.h>
#ifndef _WIN32
#ifndef _WIN32
struct
pollfd
;
struct
pollfd
;
#endif
#endif
...
...
src/event/PollGroupPoll.cxx
View file @
ab9f5d20
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include "PollGroupPoll.hxx"
#include "PollGroupPoll.hxx"
#include <
assert.h
>
#include <
cassert
>
PollGroupPoll
::
PollGroupPoll
()
noexcept
=
default
;
PollGroupPoll
::
PollGroupPoll
()
noexcept
=
default
;
PollGroupPoll
::~
PollGroupPoll
()
noexcept
=
default
;
PollGroupPoll
::~
PollGroupPoll
()
noexcept
=
default
;
...
...
src/event/PollGroupWinSelect.hxx
View file @
ab9f5d20
...
@@ -22,11 +22,11 @@
...
@@ -22,11 +22,11 @@
#include "PollResultGeneric.hxx"
#include "PollResultGeneric.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <unordered_map>
#include <unordered_map>
#include <string.h>
#include <windows.h>
#include <windows.h>
#include <winsock2.h>
#include <winsock2.h>
...
...
src/event/ServerSocket.cxx
View file @
ab9f5d20
...
@@ -35,11 +35,10 @@
...
@@ -35,11 +35,10 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <cassert>
#include <string>
#include <string>
#include <utility>
#include <utility>
#include <assert.h>
#ifdef HAVE_UN
#ifdef HAVE_UN
#include <sys/stat.h>
#include <sys/stat.h>
#endif
#endif
...
...
src/event/SignalMonitor.cxx
View file @
ab9f5d20
...
@@ -37,12 +37,12 @@
...
@@ -37,12 +37,12 @@
#endif
#endif
#include <algorithm>
#include <algorithm>
#include <cassert>
#ifdef USE_SIGNALFD
#ifdef USE_SIGNALFD
#include <pthread.h>
#include <pthread.h>
#endif
#endif
#include <assert.h>
#include <signal.h>
#include <signal.h>
class
SignalMonitor
final
:
private
SocketMonitor
{
class
SignalMonitor
final
:
private
SocketMonitor
{
...
...
src/event/SocketMonitor.cxx
View file @
ab9f5d20
...
@@ -20,10 +20,9 @@
...
@@ -20,10 +20,9 @@
#include "SocketMonitor.hxx"
#include "SocketMonitor.hxx"
#include "Loop.hxx"
#include "Loop.hxx"
#include <cassert>
#include <utility>
#include <utility>
#include <assert.h>
void
void
SocketMonitor
::
Dispatch
(
unsigned
flags
)
noexcept
SocketMonitor
::
Dispatch
(
unsigned
flags
)
noexcept
{
{
...
...
src/event/SocketMonitor.hxx
View file @
ab9f5d20
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
#include "PollGroup.hxx"
#include "PollGroup.hxx"
#include "net/SocketDescriptor.hxx"
#include "net/SocketDescriptor.hxx"
#include <cassert>
#include <type_traits>
#include <type_traits>
#include <assert.h>
#include <stddef.h>
#include <stddef.h>
class
EventLoop
;
class
EventLoop
;
...
...
src/filter/Filter.hxx
View file @
ab9f5d20
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "pcm/AudioFormat.hxx"
#include "pcm/AudioFormat.hxx"
#include <
assert.h
>
#include <
cassert
>
template
<
typename
T
>
struct
ConstBuffer
;
template
<
typename
T
>
struct
ConstBuffer
;
...
...
src/filter/Observer.cxx
View file @
ab9f5d20
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "Prepared.hxx"
#include "Prepared.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <
assert.h
>
#include <
cassert
>
class
FilterObserver
::
PreparedProxy
final
:
public
PreparedFilter
{
class
FilterObserver
::
PreparedProxy
final
:
public
PreparedFilter
{
FilterObserver
&
observer
;
FilterObserver
&
observer
;
...
...
src/filter/plugins/AutoConvertFilterPlugin.cxx
View file @
ab9f5d20
...
@@ -24,10 +24,9 @@
...
@@ -24,10 +24,9 @@
#include "pcm/AudioFormat.hxx"
#include "pcm/AudioFormat.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <cassert>
#include <memory>
#include <memory>
#include <assert.h>
class
AutoConvertFilter
final
:
public
Filter
{
class
AutoConvertFilter
final
:
public
Filter
{
/**
/**
* The underlying filter.
* The underlying filter.
...
...
src/filter/plugins/ChainFilterPlugin.cxx
View file @
ab9f5d20
...
@@ -25,10 +25,9 @@
...
@@ -25,10 +25,9 @@
#include "util/StringBuffer.hxx"
#include "util/StringBuffer.hxx"
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include <
memory
>
#include <
cassert
>
#include <list>
#include <list>
#include <memory>
#include <assert.h>
class
ChainFilter
final
:
public
Filter
{
class
ChainFilter
final
:
public
Filter
{
struct
Child
{
struct
Child
{
...
...
src/filter/plugins/ConvertFilterPlugin.cxx
View file @
ab9f5d20
...
@@ -24,10 +24,9 @@
...
@@ -24,10 +24,9 @@
#include "pcm/Convert.hxx"
#include "pcm/Convert.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <cassert>
#include <memory>
#include <memory>
#include <assert.h>
class
ConvertFilter
final
:
public
Filter
{
class
ConvertFilter
final
:
public
Filter
{
/**
/**
* The input audio format; PCM data is passed to the filter()
* The input audio format; PCM data is passed to the filter()
...
...
src/filter/plugins/ReplayGainFilterPlugin.cxx
View file @
ab9f5d20
...
@@ -29,10 +29,9 @@
...
@@ -29,10 +29,9 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <cassert>
#include <exception>
#include <exception>
#include <assert.h>
static
constexpr
Domain
replay_gain_domain
(
"replay_gain"
);
static
constexpr
Domain
replay_gain_domain
(
"replay_gain"
);
class
ReplayGainFilter
final
:
public
Filter
{
class
ReplayGainFilter
final
:
public
Filter
{
...
...
src/fs/Charset.cxx
View file @
ab9f5d20
...
@@ -31,8 +31,7 @@
...
@@ -31,8 +31,7 @@
#endif
#endif
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
#ifdef HAVE_FS_CHARSET
#ifdef HAVE_FS_CHARSET
...
...
src/fs/Path.hxx
View file @
ab9f5d20
...
@@ -23,10 +23,9 @@
...
@@ -23,10 +23,9 @@
#include "util/Compiler.h"
#include "util/Compiler.h"
#include "Traits.hxx"
#include "Traits.hxx"
#include <cassert>
#include <string>
#include <string>
#include <assert.h>
class
AllocatedPath
;
class
AllocatedPath
;
/**
/**
...
...
src/fs/Traits.hxx
View file @
ab9f5d20
...
@@ -29,10 +29,9 @@
...
@@ -29,10 +29,9 @@
#include <tchar.h>
#include <tchar.h>
#endif
#endif
#include <cassert>
#include <string>
#include <string>
#include <assert.h>
#ifdef _WIN32
#ifdef _WIN32
#define PATH_LITERAL(s) _T(s)
#define PATH_LITERAL(s) _T(s)
#else
#else
...
...
src/fs/io/FileOutputStream.hxx
View file @
ab9f5d20
...
@@ -38,7 +38,8 @@
...
@@ -38,7 +38,8 @@
#include "system/FileDescriptor.hxx"
#include "system/FileDescriptor.hxx"
#endif
#endif
#include <assert.h>
#include <cassert>
#include <stdint.h>
#include <stdint.h>
#ifdef _WIN32
#ifdef _WIN32
...
...
src/fs/io/FileReader.cxx
View file @
ab9f5d20
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "system/Error.hxx"
#include "system/Error.hxx"
#include "system/Open.hxx"
#include "system/Open.hxx"
#include <
assert.h
>
#include <
cassert
>
#ifdef _WIN32
#ifdef _WIN32
...
...
src/fs/io/PeekReader.cxx
View file @
ab9f5d20
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
#include "PeekReader.hxx"
#include "PeekReader.hxx"
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
#include <string.h>
#include <string.h>
const
void
*
const
void
*
...
...
src/fs/io/TextFile.cxx
View file @
ab9f5d20
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include "BufferedReader.hxx"
#include "BufferedReader.hxx"
#include "fs/Path.hxx"
#include "fs/Path.hxx"
#include <
assert.h
>
#include <
cassert
>
TextFile
::
TextFile
(
Path
path_fs
)
TextFile
::
TextFile
(
Path
path_fs
)
:
file_reader
(
std
::
make_unique
<
FileReader
>
(
path_fs
)),
:
file_reader
(
std
::
make_unique
<
FileReader
>
(
path_fs
)),
...
...
src/input/AsyncInputStream.cxx
View file @
ab9f5d20
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
#include "thread/Cond.hxx"
#include "thread/Cond.hxx"
#include "event/Loop.hxx"
#include "event/Loop.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
AsyncInputStream
::
AsyncInputStream
(
EventLoop
&
event_loop
,
const
char
*
_url
,
AsyncInputStream
::
AsyncInputStream
(
EventLoop
&
event_loop
,
const
char
*
_url
,
...
...
src/input/BufferedInputStream.hxx
View file @
ab9f5d20
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include "InputStream.hxx"
#include "InputStream.hxx"
#include "BufferingInputStream.hxx"
#include "BufferingInputStream.hxx"
#include <
assert.h
>
#include <
cassert
>
/**
/**
* A "huge" buffer which remembers the (partial) contents of an
* A "huge" buffer which remembers the (partial) contents of an
...
...
src/input/Init.cxx
View file @
ab9f5d20
...
@@ -27,10 +27,9 @@
...
@@ -27,10 +27,9 @@
#include "PluginUnavailable.hxx"
#include "PluginUnavailable.hxx"
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
void
void
input_stream_global_init
(
const
ConfigData
&
config
,
EventLoop
&
event_loop
)
input_stream_global_init
(
const
ConfigData
&
config
,
EventLoop
&
event_loop
)
{
{
...
...
src/input/InputPlugin.cxx
View file @
ab9f5d20
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
#include "InputPlugin.hxx"
#include "InputPlugin.hxx"
#include "util/StringCompare.hxx"
#include "util/StringCompare.hxx"
#include <assert.h>
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <iterator>
#include <iterator>
bool
bool
...
@@ -71,4 +71,4 @@ protocol_is_whitelisted(const char *proto) {
...
@@ -71,4 +71,4 @@ protocol_is_whitelisted(const char *proto) {
return
std
::
binary_search
(
begin
,
end
,
proto
,
[](
const
char
*
a
,
const
char
*
b
)
{
return
std
::
binary_search
(
begin
,
end
,
proto
,
[](
const
char
*
a
,
const
char
*
b
)
{
return
strcasecmp
(
a
,
b
)
<
0
;
return
strcasecmp
(
a
,
b
)
<
0
;
});
});
}
}
\ No newline at end of file
src/input/InputPlugin.hxx
View file @
ab9f5d20
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
#include "Ptr.hxx"
#include "Ptr.hxx"
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <assert.h>
#include <cassert>
#include <set>
#include <set>
#include <string>
#include <string>
...
...
src/input/InputStream.cxx
View file @
ab9f5d20
...
@@ -22,10 +22,9 @@
...
@@ -22,10 +22,9 @@
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
#include "util/ASCII.hxx"
#include "util/ASCII.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
InputStream
::~
InputStream
()
noexcept
=
default
;
InputStream
::~
InputStream
()
noexcept
=
default
;
void
void
...
...
src/input/InputStream.hxx
View file @
ab9f5d20
...
@@ -25,10 +25,9 @@
...
@@ -25,10 +25,9 @@
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <
string
>
#include <
cassert
>
#include <memory>
#include <memory>
#include <string>
#include <assert.h>
struct
Tag
;
struct
Tag
;
class
InputStreamHandler
;
class
InputStreamHandler
;
...
...
src/input/LocalOpen.cxx
View file @
ab9f5d20
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "fs/Path.hxx"
#include "fs/Path.hxx"
#include "system/Error.hxx"
#include "system/Error.hxx"
#include <
assert.h
>
#include <
cassert
>
InputStreamPtr
InputStreamPtr
OpenLocalInputStream
(
Path
path
,
Mutex
&
mutex
)
OpenLocalInputStream
(
Path
path
,
Mutex
&
mutex
)
...
...
src/input/RewindInputStream.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
#include "RewindInputStream.hxx"
#include "RewindInputStream.hxx"
#include "ProxyInputStream.hxx"
#include "ProxyInputStream.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
class
RewindInputStream
final
:
public
ProxyInputStream
{
class
RewindInputStream
final
:
public
ProxyInputStream
{
...
...
src/input/TextInputStream.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "InputStream.hxx"
#include "InputStream.hxx"
#include "util/TextFile.hxx"
#include "util/TextFile.hxx"
#include <
assert.h
>
#include <
cassert
>
TextInputStream
::
TextInputStream
(
InputStreamPtr
&&
_is
)
noexcept
TextInputStream
::
TextInputStream
(
InputStreamPtr
&&
_is
)
noexcept
:
is
(
std
::
move
(
_is
))
{}
:
is
(
std
::
move
(
_is
))
{}
...
...
src/input/ThreadInputStream.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
#include "CondHandler.hxx"
#include "CondHandler.hxx"
#include "thread/Name.hxx"
#include "thread/Name.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
ThreadInputStream
::
ThreadInputStream
(
const
char
*
_plugin
,
ThreadInputStream
::
ThreadInputStream
(
const
char
*
_plugin
,
...
...
src/input/ThreadInputStream.hxx
View file @
ab9f5d20
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
#include "util/HugeAllocator.hxx"
#include "util/HugeAllocator.hxx"
#include "util/CircularBuffer.hxx"
#include "util/CircularBuffer.hxx"
#include <cassert>
#include <exception>
#include <exception>
#include <assert.h>
#include <stdint.h>
#include <stdint.h>
/**
/**
...
...
src/input/cache/Item.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "Lease.hxx"
#include "Lease.hxx"
#include "input/InputStream.hxx"
#include "input/InputStream.hxx"
#include <
assert.h
>
#include <
cassert
>
InputCacheItem
::
InputCacheItem
(
InputStreamPtr
_input
)
noexcept
InputCacheItem
::
InputCacheItem
(
InputStreamPtr
_input
)
noexcept
:
BufferingInputStream
(
std
::
move
(
_input
)),
:
BufferingInputStream
(
std
::
move
(
_input
)),
...
...
src/input/plugins/AlsaInputPlugin.cxx
View file @
ab9f5d20
...
@@ -43,7 +43,8 @@
...
@@ -43,7 +43,8 @@
#include <alsa/asoundlib.h>
#include <alsa/asoundlib.h>
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
static
constexpr
Domain
alsa_input_domain
(
"alsa"
);
static
constexpr
Domain
alsa_input_domain
(
"alsa"
);
...
...
src/input/plugins/CdioParanoiaInputPlugin.cxx
View file @
ab9f5d20
...
@@ -34,11 +34,12 @@
...
@@ -34,11 +34,12 @@
#include "Log.hxx"
#include "Log.hxx"
#include "config/Block.hxx"
#include "config/Block.hxx"
#include <cassert>
#include <stdio.h>
#include <stdio.h>
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include <assert.h>
#include <cdio/cd_types.h>
#include <cdio/cd_types.h>
...
...
src/input/plugins/CurlInputPlugin.cxx
View file @
ab9f5d20
...
@@ -49,9 +49,9 @@
...
@@ -49,9 +49,9 @@
#include "util/UriQueryParser.hxx"
#include "util/UriQueryParser.hxx"
#endif
#endif
#include <cassert>
#include <cinttypes>
#include <cinttypes>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <curl/curl.h>
#include <curl/curl.h>
...
...
src/input/plugins/QobuzClient.cxx
View file @
ab9f5d20
...
@@ -21,10 +21,9 @@
...
@@ -21,10 +21,9 @@
#include "lib/crypto/MD5.hxx"
#include "lib/crypto/MD5.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
namespace
{
namespace
{
class
QueryStringBuilder
{
class
QueryStringBuilder
{
...
...
src/java/Class.hxx
View file @
ab9f5d20
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#include "Ref.hxx"
#include "Ref.hxx"
#include "Exception.hxx"
#include "Exception.hxx"
#include <
assert.h
>
#include <
cassert
>
namespace
Java
{
namespace
Java
{
/**
/**
...
...
src/java/Object.hxx
View file @
ab9f5d20
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include <jni.h>
#include <jni.h>
#include <
assert.h
>
#include <
cassert
>
namespace
Java
{
namespace
Java
{
/**
/**
...
...
src/java/Ref.hxx
View file @
ab9f5d20
...
@@ -34,10 +34,9 @@
...
@@ -34,10 +34,9 @@
#include <jni.h>
#include <jni.h>
#include <cassert>
#include <utility>
#include <utility>
#include <assert.h>
namespace
Java
{
namespace
Java
{
/**
/**
* Hold a local reference on a JNI object.
* Hold a local reference on a JNI object.
...
...
src/lib/alsa/Format.hxx
View file @
ab9f5d20
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include <alsa/asoundlib.h>
#include <alsa/asoundlib.h>
#include <
assert.h
>
#include <
cassert
>
#if SND_LIB_VERSION >= 0x1001c
#if SND_LIB_VERSION >= 0x1001c
/* alsa-lib supports DSD since version 1.0.27.1 */
/* alsa-lib supports DSD since version 1.0.27.1 */
...
...
src/lib/alsa/PeriodBuffer.hxx
View file @
ab9f5d20
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
#include <alsa/asoundlib.h>
#include <alsa/asoundlib.h>
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
#include <stdint.h>
#include <stdint.h>
namespace
Alsa
{
namespace
Alsa
{
...
...
src/lib/curl/Delegate.cxx
View file @
ab9f5d20
...
@@ -30,10 +30,9 @@
...
@@ -30,10 +30,9 @@
#include "Delegate.hxx"
#include "Delegate.hxx"
#include "Parser.hxx"
#include "Parser.hxx"
#include <cassert>
#include <utility>
#include <utility>
#include <assert.h>
void
void
DelegateCurlResponseHandler
::
OnHeaders
(
unsigned
status
,
DelegateCurlResponseHandler
::
OnHeaders
(
unsigned
status
,
std
::
multimap
<
std
::
string
,
std
::
string
>
&&
headers
)
std
::
multimap
<
std
::
string
,
std
::
string
>
&&
headers
)
...
...
src/lib/curl/Global.cxx
View file @
ab9f5d20
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include <
assert.h
>
#include <
cassert
>
static
constexpr
Domain
curlm_domain
(
"curlm"
);
static
constexpr
Domain
curlm_domain
(
"curlm"
);
...
...
src/lib/curl/Init.cxx
View file @
ab9f5d20
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "event/Call.hxx"
#include "event/Call.hxx"
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
#include <
assert.h
>
#include <
cassert
>
Mutex
CurlInit
::
mutex
;
Mutex
CurlInit
::
mutex
;
unsigned
CurlInit
::
ref
;
unsigned
CurlInit
::
ref
;
...
...
src/lib/curl/Request.cxx
View file @
ab9f5d20
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
#include <curl/curl.h>
#include <curl/curl.h>
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
#include <string.h>
#include <string.h>
CurlRequest
::
CurlRequest
(
CurlGlobal
&
_global
,
CurlRequest
::
CurlRequest
(
CurlGlobal
&
_global
,
...
...
src/lib/dbus/AsyncRequest.hxx
View file @
ab9f5d20
...
@@ -33,10 +33,9 @@
...
@@ -33,10 +33,9 @@
#include "PendingCall.hxx"
#include "PendingCall.hxx"
#include "Message.hxx"
#include "Message.hxx"
#include <cassert>
#include <functional>
#include <functional>
#include <assert.h>
namespace
ODBus
{
namespace
ODBus
{
/**
/**
...
...
src/lib/ffmpeg/Time.hxx
View file @
ab9f5d20
...
@@ -28,7 +28,8 @@ extern "C" {
...
@@ -28,7 +28,8 @@ extern "C" {
#include <libavutil/mathematics.h>
#include <libavutil/mathematics.h>
}
}
#include <assert.h>
#include <cassert>
#include <stdint.h>
#include <stdint.h>
/* suppress the ffmpeg compatibility macro */
/* suppress the ffmpeg compatibility macro */
...
...
src/lib/icu/CaseFold.cxx
View file @
ab9f5d20
...
@@ -40,9 +40,9 @@
...
@@ -40,9 +40,9 @@
#include <windows.h>
#include <windows.h>
#endif
#endif
#include <cassert>
#include <memory>
#include <memory>
#include <assert.h>
#include <string.h>
#include <string.h>
AllocatedString
<>
AllocatedString
<>
...
...
src/lib/icu/Collate.cxx
View file @
ab9f5d20
...
@@ -38,10 +38,10 @@
...
@@ -38,10 +38,10 @@
#include <windows.h>
#include <windows.h>
#endif
#endif
#include <cassert>
#include <memory>
#include <memory>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
#ifdef HAVE_ICU
#ifdef HAVE_ICU
...
...
src/lib/icu/Util.cxx
View file @
ab9f5d20
...
@@ -24,10 +24,10 @@
...
@@ -24,10 +24,10 @@
#include <unicode/ustring.h>
#include <unicode/ustring.h>
#include <cassert>
#include <memory>
#include <memory>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
AllocatedArray
<
UChar
>
AllocatedArray
<
UChar
>
...
...
src/lib/nfs/Base.cxx
View file @
ab9f5d20
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
#include "Base.hxx"
#include "Base.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
static
char
nfs_base_server
[
64
];
static
char
nfs_base_server
[
64
];
...
...
src/lib/nfs/Cancellable.hxx
View file @
ab9f5d20
...
@@ -25,8 +25,7 @@
...
@@ -25,8 +25,7 @@
#include <boost/intrusive/list.hpp>
#include <boost/intrusive/list.hpp>
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
template
<
typename
T
>
template
<
typename
T
>
class
CancellablePointer
class
CancellablePointer
...
...
src/lib/nfs/Error.cxx
View file @
ab9f5d20
...
@@ -37,7 +37,8 @@ extern "C" {
...
@@ -37,7 +37,8 @@ extern "C" {
#include <nfsc/libnfs.h>
#include <nfsc/libnfs.h>
}
}
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
static
StringBuffer
<
256
>
static
StringBuffer
<
256
>
...
...
src/lib/nfs/FileReader.cxx
View file @
ab9f5d20
...
@@ -24,10 +24,10 @@
...
@@ -24,10 +24,10 @@
#include "event/Call.hxx"
#include "event/Call.hxx"
#include "util/ASCII.hxx"
#include "util/ASCII.hxx"
#include <
utility
>
#include <
cassert
>
#include <stdexcept>
#include <stdexcept>
#include <utility>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <fcntl.h>
#include <fcntl.h>
...
...
src/lib/nfs/Glue.cxx
View file @
ab9f5d20
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "event/Call.hxx"
#include "event/Call.hxx"
#include "util/Manual.hxx"
#include "util/Manual.hxx"
#include <
assert.h
>
#include <
cassert
>
static
Manual
<
NfsManager
>
nfs_glue
;
static
Manual
<
NfsManager
>
nfs_glue
;
static
unsigned
in_use
;
static
unsigned
in_use
;
...
...
src/lib/sqlite/Util.hxx
View file @
ab9f5d20
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include <sqlite3.h>
#include <sqlite3.h>
#include <
assert.h
>
#include <
cassert
>
namespace
Sqlite
{
namespace
Sqlite
{
...
...
src/lib/upnp/ClientInit.cxx
View file @
ab9f5d20
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include <upnptools.h>
#include <upnptools.h>
#include <
assert.h
>
#include <
cassert
>
static
Mutex
upnp_client_init_mutex
;
static
Mutex
upnp_client_init_mutex
;
static
unsigned
upnp_client_ref
;
static
unsigned
upnp_client_ref
;
...
...
src/lib/upnp/Init.cxx
View file @
ab9f5d20
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include <upnptools.h>
#include <upnptools.h>
#include <ixml.h>
#include <ixml.h>
#include <
assert.h
>
#include <
cassert
>
static
Mutex
upnp_init_mutex
;
static
Mutex
upnp_init_mutex
;
static
unsigned
upnp_ref
;
static
unsigned
upnp_ref
;
...
...
src/lib/xiph/FlacStreamMetadata.cxx
View file @
ab9f5d20
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#include "ReplayGainInfo.hxx"
#include "ReplayGainInfo.hxx"
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include <
assert.h
>
#include <
cassert
>
static
StringView
static
StringView
ToStringView
(
const
FLAC__StreamMetadata_VorbisComment_Entry
&
entry
)
noexcept
ToStringView
(
const
FLAC__StreamMetadata_VorbisComment_Entry
&
entry
)
noexcept
...
...
src/lib/xiph/OggPage.hxx
View file @
ab9f5d20
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
#include <ogg/ogg.h>
#include <ogg/ogg.h>
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#include <stdint.h>
#include <stdint.h>
...
...
src/lib/xiph/OggStreamState.hxx
View file @
ab9f5d20
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
#include <ogg/ogg.h>
#include <ogg/ogg.h>
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#include <stdint.h>
#include <stdint.h>
...
...
src/ls.cxx
View file @
ab9f5d20
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include "client/Response.hxx"
#include "client/Response.hxx"
#include "util/UriExtract.hxx"
#include "util/UriExtract.hxx"
#include <
assert.h
>
#include <
cassert
>
#include <string>
#include <string>
...
...
src/mixer/MixerAll.cxx
View file @
ab9f5d20
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include "pcm/Volume.hxx"
#include "pcm/Volume.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <
assert.h
>
#include <
cassert
>
gcc_pure
gcc_pure
static
int
static
int
...
...
src/mixer/MixerControl.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "MixerControl.hxx"
#include "MixerControl.hxx"
#include "MixerInternal.hxx"
#include "MixerInternal.hxx"
#include <
assert.h
>
#include <
cassert
>
Mixer
*
Mixer
*
mixer_new
(
EventLoop
&
event_loop
,
mixer_new
(
EventLoop
&
event_loop
,
...
...
src/mixer/MixerType.cxx
View file @
ab9f5d20
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
#include "MixerType.hxx"
#include "MixerType.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
MixerType
MixerType
...
...
src/mixer/Volume.cxx
View file @
ab9f5d20
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
#include "fs/io/BufferedOutputStream.hxx"
#include "fs/io/BufferedOutputStream.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <cassert>
#include <stdlib.h>
#include <stdlib.h>
#define SW_VOLUME_STATE "sw_volume: "
#define SW_VOLUME_STATE "sw_volume: "
...
...
src/mixer/plugins/OssMixerPlugin.cxx
View file @
ab9f5d20
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <fcntl.h>
...
...
src/mixer/plugins/PulseMixerPlugin.cxx
View file @
ab9f5d20
...
@@ -32,10 +32,9 @@
...
@@ -32,10 +32,9 @@
#include <pulse/stream.h>
#include <pulse/stream.h>
#include <pulse/subscribe.h>
#include <pulse/subscribe.h>
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
class
PulseMixer
final
:
public
Mixer
{
class
PulseMixer
final
:
public
Mixer
{
PulseOutput
&
output
;
PulseOutput
&
output
;
...
...
src/mixer/plugins/SoftwareMixerPlugin.cxx
View file @
ab9f5d20
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
#include "filter/plugins/VolumeFilterPlugin.hxx"
#include "filter/plugins/VolumeFilterPlugin.hxx"
#include "pcm/Volume.hxx"
#include "pcm/Volume.hxx"
#include <assert.h>
#include <cassert>
#include <math.h>
#include <math.h>
class
SoftwareMixer
final
:
public
Mixer
{
class
SoftwareMixer
final
:
public
Mixer
{
...
...
src/mixer/plugins/WinmmMixerPlugin.cxx
View file @
ab9f5d20
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
#include <mmsystem.h>
#include <mmsystem.h>
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <math.h>
#include <math.h>
#include <windows.h>
#include <windows.h>
...
...
src/net/AddressInfo.cxx
View file @
ab9f5d20
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#include "AddressInfo.hxx"
#include "AddressInfo.hxx"
#include "Features.hxx"
#include "Features.hxx"
#include <
assert.h
>
#include <
cassert
>
static
constexpr
int
address_family_ranking
[]
=
{
static
constexpr
int
address_family_ranking
[]
=
{
#ifdef HAVE_UN
#ifdef HAVE_UN
...
...
src/net/IPv4Address.cxx
View file @
ab9f5d20
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "IPv4Address.hxx"
#include "IPv4Address.hxx"
#include <
assert.h
>
#include <
cassert
>
static
const
struct
sockaddr_in
*
static
const
struct
sockaddr_in
*
CastToIPv4
(
const
struct
sockaddr
*
p
)
noexcept
CastToIPv4
(
const
struct
sockaddr
*
p
)
noexcept
...
...
src/net/IPv6Address.cxx
View file @
ab9f5d20
...
@@ -30,7 +30,8 @@
...
@@ -30,7 +30,8 @@
#include "IPv6Address.hxx"
#include "IPv6Address.hxx"
#include "IPv4Address.hxx"
#include "IPv4Address.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
static
const
struct
sockaddr_in6
*
static
const
struct
sockaddr_in6
*
...
...
src/net/SocketAddress.cxx
View file @
ab9f5d20
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
#include "IPv6Address.hxx"
#include "IPv6Address.hxx"
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#ifdef HAVE_UN
#ifdef HAVE_UN
...
...
src/net/StaticSocketAddress.hxx
View file @
ab9f5d20
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include "Features.hxx"
#include "Features.hxx"
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <
assert.h
>
#include <
cassert
>
/**
/**
* An OO wrapper for struct sockaddr_storage.
* An OO wrapper for struct sockaddr_storage.
...
...
src/net/ToString.cxx
View file @
ab9f5d20
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include "IPv4Address.hxx"
#include "IPv4Address.hxx"
#include <algorithm>
#include <algorithm>
#include <cassert>
#ifdef _WIN32
#ifdef _WIN32
#include <ws2tcpip.h>
#include <ws2tcpip.h>
...
@@ -48,7 +49,6 @@
...
@@ -48,7 +49,6 @@
#include <sys/un.h>
#include <sys/un.h>
#endif
#endif
#include <assert.h>
#include <string.h>
#include <string.h>
#ifdef HAVE_UN
#ifdef HAVE_UN
...
...
src/output/Control.cxx
View file @
ab9f5d20
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include "config/Block.hxx"
#include "config/Block.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <
assert.h
>
#include <
cassert
>
/** after a failure, wait this duration before
/** after a failure, wait this duration before
automatically reopening the device */
automatically reopening the device */
...
...
src/output/Init.cxx
View file @
ab9f5d20
...
@@ -39,9 +39,9 @@
...
@@ -39,9 +39,9 @@
#include "util/StringFormat.hxx"
#include "util/StringFormat.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
#define AUDIO_OUTPUT_TYPE "type"
#define AUDIO_OUTPUT_TYPE "type"
...
...
src/output/MultipleOutputs.cxx
View file @
ab9f5d20
...
@@ -30,9 +30,9 @@
...
@@ -30,9 +30,9 @@
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include "util/StringAPI.hxx"
#include "util/StringAPI.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
MultipleOutputs
::
MultipleOutputs
(
AudioOutputClient
&
_client
,
MultipleOutputs
::
MultipleOutputs
(
AudioOutputClient
&
_client
,
...
...
src/output/MultipleOutputs.hxx
View file @
ab9f5d20
...
@@ -28,11 +28,10 @@
...
@@ -28,11 +28,10 @@
#include "Chrono.hxx"
#include "Chrono.hxx"
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <cassert>
#include <memory>
#include <memory>
#include <vector>
#include <vector>
#include <assert.h>
class
MusicPipe
;
class
MusicPipe
;
class
EventLoop
;
class
EventLoop
;
class
MixerListener
;
class
MixerListener
;
...
...
src/output/OutputPlugin.cxx
View file @
ab9f5d20
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include "OutputPlugin.hxx"
#include "OutputPlugin.hxx"
#include <
assert.h
>
#include <
cassert
>
AudioOutput
*
AudioOutput
*
ao_plugin_init
(
EventLoop
&
event_loop
,
ao_plugin_init
(
EventLoop
&
event_loop
,
...
...
src/output/SharedPipeConsumer.hxx
View file @
ab9f5d20
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <
assert.h
>
#include <
cassert
>
struct
MusicChunk
;
struct
MusicChunk
;
class
MusicPipe
;
class
MusicPipe
;
...
...
src/output/Source.hxx
View file @
ab9f5d20
...
@@ -28,10 +28,10 @@
...
@@ -28,10 +28,10 @@
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <
utility
>
#include <
cassert
>
#include <memory>
#include <memory>
#include <utility>
#include <assert.h>
#include <stdint.h>
#include <stdint.h>
struct
MusicChunk
;
struct
MusicChunk
;
...
...
src/output/Thread.cxx
View file @
ab9f5d20
...
@@ -29,7 +29,8 @@
...
@@ -29,7 +29,8 @@
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
void
void
...
...
src/output/Timer.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "Timer.hxx"
#include "Timer.hxx"
#include "pcm/AudioFormat.hxx"
#include "pcm/AudioFormat.hxx"
#include <
assert.h
>
#include <
cassert
>
Timer
::
Timer
(
const
AudioFormat
af
)
Timer
::
Timer
(
const
AudioFormat
af
)
:
rate
(
af
.
sample_rate
*
af
.
GetFrameSize
())
:
rate
(
af
.
sample_rate
*
af
.
GetFrameSize
())
...
...
src/output/plugins/JackOutputPlugin.cxx
View file @
ab9f5d20
...
@@ -29,8 +29,7 @@
...
@@ -29,8 +29,7 @@
#include "Log.hxx"
#include "Log.hxx"
#include <atomic>
#include <atomic>
#include <cassert>
#include <assert.h>
#include <jack/jack.h>
#include <jack/jack.h>
#include <jack/types.h>
#include <jack/types.h>
...
...
src/output/plugins/OssOutputPlugin.cxx
View file @
ab9f5d20
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include "util/ByteOrder.hxx"
#include "util/ByteOrder.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <cassert>
#include <iterator>
#include <iterator>
#include <stdexcept>
#include <stdexcept>
...
@@ -36,7 +37,6 @@
...
@@ -36,7 +37,6 @@
#include <errno.h>
#include <errno.h>
#include <stdlib.h>
#include <stdlib.h>
#include <unistd.h>
#include <unistd.h>
#include <assert.h>
#if defined(__OpenBSD__) || defined(__NetBSD__)
#if defined(__OpenBSD__) || defined(__NetBSD__)
# include <soundcard.h>
# include <soundcard.h>
...
...
src/output/plugins/PulseOutputPlugin.cxx
View file @
ab9f5d20
...
@@ -33,9 +33,9 @@
...
@@ -33,9 +33,9 @@
#include <pulse/subscribe.h>
#include <pulse/subscribe.h>
#include <pulse/version.h>
#include <pulse/version.h>
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <stddef.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/output/plugins/RecorderOutputPlugin.cxx
View file @
ab9f5d20
...
@@ -30,10 +30,10 @@
...
@@ -30,10 +30,10 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "util/ScopeExit.hxx"
#include "util/ScopeExit.hxx"
#include <
stdexcep
t>
#include <
casser
t>
#include <memory>
#include <memory>
#include <stdexcept>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
static
constexpr
Domain
recorder_domain
(
"recorder"
);
static
constexpr
Domain
recorder_domain
(
"recorder"
);
...
...
src/output/plugins/ShoutOutputPlugin.cxx
View file @
ab9f5d20
...
@@ -30,10 +30,10 @@
...
@@ -30,10 +30,10 @@
#include <shout/shout.h>
#include <shout/shout.h>
#include <
stdexcep
t>
#include <
casser
t>
#include <memory>
#include <memory>
#include <stdexcept>
#include <assert.h>
#include <stdio.h>
#include <stdio.h>
static
constexpr
unsigned
DEFAULT_CONN_TIMEOUT
=
2
;
static
constexpr
unsigned
DEFAULT_CONN_TIMEOUT
=
2
;
...
...
src/output/plugins/httpd/HttpdClient.cxx
View file @
ab9f5d20
...
@@ -27,7 +27,8 @@
...
@@ -27,7 +27,8 @@
#include "net/UniqueSocketDescriptor.hxx"
#include "net/UniqueSocketDescriptor.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#include <stdio.h>
#include <stdio.h>
...
...
src/output/plugins/httpd/HttpdOutputPlugin.cxx
View file @
ab9f5d20
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "util/DeleteDisposer.hxx"
#include "util/DeleteDisposer.hxx"
#include "config/Net.hxx"
#include "config/Net.hxx"
#include <
assert.h
>
#include <
cassert
>
#include <string.h>
#include <string.h>
...
...
src/pcm/AudioFormat.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "util/StringBuffer.hxx"
#include "util/StringBuffer.hxx"
#include <assert.h>
#include <cassert>
#include <stdio.h>
#include <stdio.h>
void
void
...
...
src/pcm/AudioParser.cxx
View file @
ab9f5d20
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/pcm/ChannelsConverter.cxx
View file @
ab9f5d20
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include <
assert.h
>
#include <
cassert
>
void
void
PcmChannelsConverter
::
Open
(
SampleFormat
_format
,
PcmChannelsConverter
::
Open
(
SampleFormat
_format
,
...
...
src/pcm/ChannelsConverter.hxx
View file @
ab9f5d20
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include "Buffer.hxx"
#include "Buffer.hxx"
#ifndef NDEBUG
#ifndef NDEBUG
#include <
assert.h
>
#include <
cassert
>
#endif
#endif
template
<
typename
T
>
struct
ConstBuffer
;
template
<
typename
T
>
struct
ConstBuffer
;
...
...
src/pcm/ConfiguredResampler.cxx
View file @
ab9f5d20
...
@@ -34,7 +34,8 @@
...
@@ -34,7 +34,8 @@
#include "SoxrResampler.hxx"
#include "SoxrResampler.hxx"
#endif
#endif
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
enum
class
SelectedResampler
{
enum
class
SelectedResampler
{
...
...
src/pcm/Convert.cxx
View file @
ab9f5d20
...
@@ -21,10 +21,9 @@
...
@@ -21,10 +21,9 @@
#include "ConfiguredResampler.hxx"
#include "ConfiguredResampler.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
void
void
pcm_convert_global_init
(
const
ConfigData
&
config
)
pcm_convert_global_init
(
const
ConfigData
&
config
)
{
{
...
...
src/pcm/Dop.cxx
View file @
ab9f5d20
...
@@ -21,10 +21,9 @@
...
@@ -21,10 +21,9 @@
#include "ChannelDefs.hxx"
#include "ChannelDefs.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <cassert>
#include <functional>
#include <functional>
#include <assert.h>
static
constexpr
uint32_t
static
constexpr
uint32_t
pcm_two_dsd_to_dop_marker1
(
uint8_t
a
,
uint8_t
b
)
noexcept
pcm_two_dsd_to_dop_marker1
(
uint8_t
a
,
uint8_t
b
)
noexcept
{
{
...
...
src/pcm/Dsd2Pcm.cxx
View file @
ab9f5d20
...
@@ -35,7 +35,8 @@ or implied, of Sebastian Gesemann.
...
@@ -35,7 +35,8 @@ or implied, of Sebastian Gesemann.
#include "util/BitReverse.hxx"
#include "util/BitReverse.hxx"
#include "util/GenerateArray.hxx"
#include "util/GenerateArray.hxx"
#include <assert.h>
#include <cassert>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
...
...
src/pcm/Export.cxx
View file @
ab9f5d20
...
@@ -25,7 +25,8 @@
...
@@ -25,7 +25,8 @@
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include "util/WritableBuffer.hxx"
#include "util/WritableBuffer.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
void
void
...
...
src/pcm/FallbackResampler.cxx
View file @
ab9f5d20
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include "FallbackResampler.hxx"
#include "FallbackResampler.hxx"
#include <
assert.h
>
#include <
cassert
>
AudioFormat
AudioFormat
FallbackPcmResampler
::
Open
(
AudioFormat
&
af
,
unsigned
new_sample_rate
)
FallbackPcmResampler
::
Open
(
AudioFormat
&
af
,
unsigned
new_sample_rate
)
...
...
src/pcm/FormatConverter.cxx
View file @
ab9f5d20
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include <
assert.h
>
#include <
cassert
>
void
void
PcmFormatConverter
::
Open
(
SampleFormat
_src_format
,
SampleFormat
_dest_format
)
PcmFormatConverter
::
Open
(
SampleFormat
_src_format
,
SampleFormat
_dest_format
)
...
...
src/pcm/FormatConverter.hxx
View file @
ab9f5d20
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include "Dither.hxx"
#include "Dither.hxx"
#ifndef NDEBUG
#ifndef NDEBUG
#include <
assert.h
>
#include <
cassert
>
#endif
#endif
template
<
typename
T
>
struct
ConstBuffer
;
template
<
typename
T
>
struct
ConstBuffer
;
...
...
src/pcm/GlueResampler.cxx
View file @
ab9f5d20
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "Resampler.hxx"
#include "Resampler.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include <
assert.h
>
#include <
cassert
>
GluePcmResampler
::
GluePcmResampler
()
GluePcmResampler
::
GluePcmResampler
()
:
resampler
(
pcm_resampler_create
())
{}
:
resampler
(
pcm_resampler_create
())
{}
...
...
src/pcm/LibsamplerateResampler.cxx
View file @
ab9f5d20
...
@@ -24,7 +24,8 @@
...
@@ -24,7 +24,8 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <assert.h>
#include <cassert>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
...
...
src/pcm/Mix.cxx
View file @
ab9f5d20
...
@@ -25,10 +25,9 @@
...
@@ -25,10 +25,9 @@
#include "Dither.cxx" // including the .cxx file to get inlined templates
#include "Dither.cxx" // including the .cxx file to get inlined templates
#include <cassert>
#include <cmath>
#include <cmath>
#include <assert.h>
template
<
SampleFormat
F
,
class
Traits
=
SampleTraits
<
F
>>
template
<
SampleFormat
F
,
class
Traits
=
SampleTraits
<
F
>>
static
typename
Traits
::
value_type
static
typename
Traits
::
value_type
PcmAddVolume
(
PcmDither
&
dither
,
PcmAddVolume
(
PcmDither
&
dither
,
...
...
src/pcm/PcmChannels.cxx
View file @
ab9f5d20
...
@@ -27,8 +27,7 @@
...
@@ -27,8 +27,7 @@
#include <array>
#include <array>
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
template
<
typename
D
,
typename
S
>
template
<
typename
D
,
typename
S
>
static
void
static
void
...
...
src/pcm/PcmDsd.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "Dsd2Pcm.hxx"
#include "Dsd2Pcm.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <
assert.h
>
#include <
cassert
>
ConstBuffer
<
float
>
ConstBuffer
<
float
>
PcmDsd
::
ToFloat
(
unsigned
channels
,
ConstBuffer
<
uint8_t
>
src
)
noexcept
PcmDsd
::
ToFloat
(
unsigned
channels
,
ConstBuffer
<
uint8_t
>
src
)
noexcept
...
...
src/pcm/RestBuffer.hxx
View file @
ab9f5d20
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
#include "ChannelDefs.hxx"
#include "ChannelDefs.hxx"
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
#include <stddef.h>
#include <stddef.h>
template
<
typename
T
>
struct
ConstBuffer
;
template
<
typename
T
>
struct
ConstBuffer
;
...
...
src/pcm/SampleFormat.cxx
View file @
ab9f5d20
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include "SampleFormat.hxx"
#include "SampleFormat.hxx"
#include <
assert.h
>
#include <
cassert
>
const
char
*
const
char
*
sample_format_to_string
(
SampleFormat
format
)
noexcept
sample_format_to_string
(
SampleFormat
format
)
noexcept
...
...
src/pcm/SoxrResampler.cxx
View file @
ab9f5d20
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
#include <soxr.h>
#include <soxr.h>
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
static
constexpr
Domain
soxr_domain
(
"soxr"
);
static
constexpr
Domain
soxr_domain
(
"soxr"
);
...
...
src/pcm/Volume.cxx
View file @
ab9f5d20
...
@@ -27,7 +27,8 @@
...
@@ -27,7 +27,8 @@
#include "Dither.cxx" // including the .cxx file to get inlined templates
#include "Dither.cxx" // including the .cxx file to get inlined templates
#include <assert.h>
#include <cassert>
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <string.h>
...
...
src/pcm/Volume.hxx
View file @
ab9f5d20
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include "Dither.hxx"
#include "Dither.hxx"
#ifndef NDEBUG
#ifndef NDEBUG
#include <
assert.h
>
#include <
cassert
>
#endif
#endif
template
<
typename
T
>
struct
ConstBuffer
;
template
<
typename
T
>
struct
ConstBuffer
;
...
...
src/player/Control.cxx
View file @
ab9f5d20
...
@@ -23,8 +23,7 @@
...
@@ -23,8 +23,7 @@
#include "song/DetachedSong.hxx"
#include "song/DetachedSong.hxx"
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
PlayerControl
::
PlayerControl
(
PlayerListener
&
_listener
,
PlayerControl
::
PlayerControl
(
PlayerListener
&
_listener
,
PlayerOutputs
&
_outputs
,
PlayerOutputs
&
_outputs
,
...
...
src/player/CrossFade.cxx
View file @
ab9f5d20
...
@@ -25,10 +25,9 @@
...
@@ -25,10 +25,9 @@
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <cassert>
#include <cmath>
#include <cmath>
#include <assert.h>
static
constexpr
Domain
cross_fade_domain
(
"cross_fade"
);
static
constexpr
Domain
cross_fade_domain
(
"cross_fade"
);
gcc_pure
gcc_pure
...
...
src/playlist/PlaylistMapper.cxx
View file @
ab9f5d20
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "storage/StorageInterface.hxx"
#include "storage/StorageInterface.hxx"
#include "util/UriUtil.hxx"
#include "util/UriUtil.hxx"
#include <
assert.h
>
#include <
cassert
>
/**
/**
* Load a playlist from the configured playlist directory.
* Load a playlist from the configured playlist directory.
...
...
src/playlist/PlaylistRegistry.cxx
View file @
ab9f5d20
...
@@ -38,10 +38,9 @@
...
@@ -38,10 +38,9 @@
#include "config/Data.hxx"
#include "config/Data.hxx"
#include "config/Block.hxx"
#include "config/Block.hxx"
#include <cassert>
#include <iterator>
#include <iterator>
#include <assert.h>
const
PlaylistPlugin
*
const
playlist_plugins
[]
=
{
const
PlaylistPlugin
*
const
playlist_plugins
[]
=
{
&
extm3u_playlist_plugin
,
&
extm3u_playlist_plugin
,
&
m3u_playlist_plugin
,
&
m3u_playlist_plugin
,
...
...
src/playlist/PlaylistStream.cxx
View file @
ab9f5d20
...
@@ -26,10 +26,9 @@
...
@@ -26,10 +26,9 @@
#include "util/UriExtract.hxx"
#include "util/UriExtract.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <cassert>
#include <exception>
#include <exception>
#include <assert.h>
static
std
::
unique_ptr
<
SongEnumerator
>
static
std
::
unique_ptr
<
SongEnumerator
>
playlist_open_path_suffix
(
Path
path
,
Mutex
&
mutex
)
playlist_open_path_suffix
(
Path
path
,
Mutex
&
mutex
)
try
{
try
{
...
...
src/playlist/cue/CueParser.cxx
View file @
ab9f5d20
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
#include "util/StringStrip.hxx"
#include "util/StringStrip.hxx"
#include "util/CharUtil.hxx"
#include "util/CharUtil.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/queue/IdTable.hxx
View file @
ab9f5d20
...
@@ -23,8 +23,7 @@
...
@@ -23,8 +23,7 @@
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
/**
/**
* A table that maps id numbers to position numbers.
* A table that maps id numbers to position numbers.
...
...
src/queue/Playlist.cxx
View file @
ab9f5d20
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include "SingleMode.hxx"
#include "SingleMode.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <
assert.h
>
#include <
cassert
>
void
void
playlist
::
TagModified
(
DetachedSong
&&
song
)
noexcept
playlist
::
TagModified
(
DetachedSong
&&
song
)
noexcept
...
...
src/queue/Queue.hxx
View file @
ab9f5d20
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
#include "SingleMode.hxx"
#include "SingleMode.hxx"
#include "util/LazyRandomEngine.hxx"
#include "util/LazyRandomEngine.hxx"
#include <cassert>
#include <utility>
#include <utility>
#include <assert.h>
#include <stdint.h>
#include <stdint.h>
class
DetachedSong
;
class
DetachedSong
;
...
...
src/song/Filter.cxx
View file @
ab9f5d20
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
#include "util/ASCII.hxx"
#include "util/ASCII.hxx"
#include "util/UriUtil.hxx"
#include "util/UriUtil.hxx"
#include <assert.h>
#include <cassert>
#include <stdlib.h>
#include <stdlib.h>
#define LOCATE_TAG_FILE_KEY "file"
#define LOCATE_TAG_FILE_KEY "file"
...
...
src/song/StringFilter.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "StringFilter.hxx"
#include "StringFilter.hxx"
#include "util/StringAPI.hxx"
#include "util/StringAPI.hxx"
#include <
assert.h
>
#include <
cassert
>
bool
bool
StringFilter
::
MatchWithoutNegation
(
const
char
*
s
)
const
noexcept
StringFilter
::
MatchWithoutNegation
(
const
char
*
s
)
const
noexcept
...
...
src/sticker/Database.cxx
View file @
ab9f5d20
...
@@ -25,10 +25,9 @@
...
@@ -25,10 +25,9 @@
#include "util/StringCompare.hxx"
#include "util/StringCompare.hxx"
#include "util/ScopeExit.hxx"
#include "util/ScopeExit.hxx"
#include <cassert>
#include <iterator>
#include <iterator>
#include <assert.h>
using
namespace
Sqlite
;
using
namespace
Sqlite
;
enum
sticker_sql
{
enum
sticker_sql
{
...
...
src/storage/MemoryDirectoryReader.cxx
View file @
ab9f5d20
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include "MemoryDirectoryReader.hxx"
#include "MemoryDirectoryReader.hxx"
#include <
assert.h
>
#include <
cassert
>
const
char
*
const
char
*
MemoryStorageDirectoryReader
::
Read
()
noexcept
MemoryStorageDirectoryReader
::
Read
()
noexcept
...
...
src/storage/plugins/CurlStorage.cxx
View file @
ab9f5d20
...
@@ -41,12 +41,11 @@
...
@@ -41,12 +41,11 @@
#include "util/StringFormat.hxx"
#include "util/StringFormat.hxx"
#include "util/UriExtract.hxx"
#include "util/UriExtract.hxx"
#include <cassert>
#include <memory>
#include <memory>
#include <string>
#include <string>
#include <utility>
#include <utility>
#include <assert.h>
class
CurlStorage
final
:
public
Storage
{
class
CurlStorage
final
:
public
Storage
{
const
std
::
string
base
;
const
std
::
string
base
;
...
...
src/storage/plugins/NfsStorage.cxx
View file @
ab9f5d20
...
@@ -42,9 +42,9 @@ extern "C" {
...
@@ -42,9 +42,9 @@ extern "C" {
#include <nfsc/libnfs-raw-nfs.h>
#include <nfsc/libnfs-raw-nfs.h>
}
}
#include <cassert>
#include <string>
#include <string>
#include <assert.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <fcntl.h>
...
...
src/system/EventFD.cxx
View file @
ab9f5d20
...
@@ -31,7 +31,8 @@
...
@@ -31,7 +31,8 @@
#include "system/Error.hxx"
#include "system/Error.hxx"
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <assert.h>
#include <cassert>
#include <sys/eventfd.h>
#include <sys/eventfd.h>
EventFD
::
EventFD
()
EventFD
::
EventFD
()
...
...
src/system/EventPipe.cxx
View file @
ab9f5d20
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
#include "system/Error.hxx"
#include "system/Error.hxx"
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <assert.h>
#include <cassert>
#include <unistd.h>
#include <unistd.h>
#ifdef _WIN32
#ifdef _WIN32
...
...
src/system/FileDescriptor.cxx
View file @
ab9f5d20
...
@@ -30,7 +30,8 @@
...
@@ -30,7 +30,8 @@
#include "FileDescriptor.hxx"
#include "FileDescriptor.hxx"
#include "system/Error.hxx"
#include "system/Error.hxx"
#include <assert.h>
#include <cassert>
#include <stdint.h>
#include <stdint.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <fcntl.h>
...
...
src/system/SignalFD.cxx
View file @
ab9f5d20
...
@@ -30,7 +30,8 @@
...
@@ -30,7 +30,8 @@
#include "SignalFD.hxx"
#include "SignalFD.hxx"
#include "Error.hxx"
#include "Error.hxx"
#include <assert.h>
#include <cassert>
#include <sys/signalfd.h>
#include <sys/signalfd.h>
void
void
...
...
src/system/UniqueFileDescriptor.hxx
View file @
ab9f5d20
...
@@ -32,10 +32,9 @@
...
@@ -32,10 +32,9 @@
#include "FileDescriptor.hxx"
#include "FileDescriptor.hxx"
#include <cassert>
#include <utility>
#include <utility>
#include <assert.h>
/**
/**
* An OO wrapper for a UNIX file descriptor.
* An OO wrapper for a UNIX file descriptor.
*/
*/
...
...
src/tag/ApeLoader.cxx
View file @
ab9f5d20
...
@@ -22,10 +22,10 @@
...
@@ -22,10 +22,10 @@
#include "input/InputStream.hxx"
#include "input/InputStream.hxx"
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include <cassert>
#include <memory>
#include <memory>
#include <stdint.h>
#include <stdint.h>
#include <assert.h>
#include <string.h>
#include <string.h>
struct
ApeFooter
{
struct
ApeFooter
{
...
...
src/tag/Builder.cxx
View file @
ab9f5d20
...
@@ -27,8 +27,8 @@
...
@@ -27,8 +27,8 @@
#include <algorithm>
#include <algorithm>
#include <array>
#include <array>
#include <cassert>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
TagBuilder
::
TagBuilder
(
const
Tag
&
other
)
noexcept
TagBuilder
::
TagBuilder
(
const
Tag
&
other
)
noexcept
...
...
src/tag/FixString.cxx
View file @
ab9f5d20
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include "util/UTF8.hxx"
#include "util/UTF8.hxx"
#include <assert.h>
#include <cassert>
#include <stdlib.h>
#include <stdlib.h>
gcc_pure
gcc_pure
...
...
src/tag/MixRamp.cxx
View file @
ab9f5d20
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include "util/ASCII.hxx"
#include "util/ASCII.hxx"
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include <
assert.h
>
#include <
cassert
>
template
<
typename
T
>
template
<
typename
T
>
static
bool
static
bool
...
...
src/tag/ParseName.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
#include "util/ASCII.hxx"
#include "util/ASCII.hxx"
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
TagType
TagType
...
...
src/tag/Pool.cxx
View file @
ab9f5d20
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
#include "util/VarSize.hxx"
#include "util/VarSize.hxx"
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include <cassert>
#include <limits>
#include <limits>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdint.h>
...
...
src/tag/ReplayGain.cxx
View file @
ab9f5d20
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include "util/ASCII.hxx"
#include "util/ASCII.hxx"
#include "util/NumberParser.hxx"
#include "util/NumberParser.hxx"
#include <
assert.h
>
#include <
cassert
>
template
<
typename
T
>
template
<
typename
T
>
static
bool
static
bool
...
...
src/tag/Tag.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "Pool.hxx"
#include "Pool.hxx"
#include "Builder.hxx"
#include "Builder.hxx"
#include <
assert.h
>
#include <
cassert
>
void
void
Tag
::
Clear
()
noexcept
Tag
::
Clear
()
noexcept
...
...
src/tag/VorbisComment.cxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "VorbisComment.hxx"
#include "VorbisComment.hxx"
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include <
assert.h
>
#include <
cassert
>
StringView
StringView
GetVorbisCommentValue
(
StringView
entry
,
StringView
name
)
noexcept
GetVorbisCommentValue
(
StringView
entry
,
StringView
name
)
noexcept
...
...
src/thread/Thread.hxx
View file @
ab9f5d20
...
@@ -23,14 +23,14 @@
...
@@ -23,14 +23,14 @@
#include "util/BindMethod.hxx"
#include "util/BindMethod.hxx"
#include "util/Compiler.h"
#include "util/Compiler.h"
#include <cassert>
#ifdef _WIN32
#ifdef _WIN32
#include <windows.h>
#include <windows.h>
#else
#else
#include <pthread.h>
#include <pthread.h>
#endif
#endif
#include <assert.h>
class
Thread
{
class
Thread
{
typedef
BoundMethod
<
void
()
noexcept
>
Function
;
typedef
BoundMethod
<
void
()
noexcept
>
Function
;
const
Function
f
;
const
Function
f
;
...
...
src/time/ISO8601.cxx
View file @
ab9f5d20
...
@@ -34,9 +34,9 @@
...
@@ -34,9 +34,9 @@
#include "Convert.hxx"
#include "Convert.hxx"
#include "util/StringBuffer.hxx"
#include "util/StringBuffer.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <stdlib.h>
#include <stdlib.h>
StringBuffer
<
64
>
StringBuffer
<
64
>
...
...
src/time/Parser.cxx
View file @
ab9f5d20
...
@@ -30,9 +30,9 @@
...
@@ -30,9 +30,9 @@
#include "Parser.hxx"
#include "Parser.hxx"
#include "Convert.hxx"
#include "Convert.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <time.h>
#include <time.h>
std
::
chrono
::
system_clock
::
time_point
std
::
chrono
::
system_clock
::
time_point
...
...
src/unix/PidFile.hxx
View file @
ab9f5d20
...
@@ -24,7 +24,8 @@
...
@@ -24,7 +24,8 @@
#include "fs/AllocatedPath.hxx"
#include "fs/AllocatedPath.hxx"
#include "system/Error.hxx"
#include "system/Error.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/util/ASCII.hxx
View file @
ab9f5d20
...
@@ -33,7 +33,8 @@
...
@@ -33,7 +33,8 @@
#include "StringView.hxx"
#include "StringView.hxx"
#include "Compiler.h"
#include "Compiler.h"
#include <assert.h>
#include <cassert>
#include <strings.h>
#include <strings.h>
/**
/**
...
...
src/util/AllocatedArray.hxx
View file @
ab9f5d20
...
@@ -35,8 +35,7 @@
...
@@ -35,8 +35,7 @@
#include "Compiler.h"
#include "Compiler.h"
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
/**
/**
* An array allocated on the heap with a length determined at runtime.
* An array allocated on the heap with a length determined at runtime.
...
...
src/util/ByteReverse.cxx
View file @
ab9f5d20
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "util/ByteOrder.hxx"
#include "util/ByteOrder.hxx"
#include "Compiler.h"
#include "Compiler.h"
#include <
assert.h
>
#include <
cassert
>
void
void
reverse_bytes_16
(
uint16_t
*
gcc_restrict
dest
,
reverse_bytes_16
(
uint16_t
*
gcc_restrict
dest
,
...
...
src/util/CircularBuffer.hxx
View file @
ab9f5d20
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
#include "WritableBuffer.hxx"
#include "WritableBuffer.hxx"
#include <assert.h>
#include <cassert>
#include <stddef.h>
#include <stddef.h>
/**
/**
...
...
src/util/ConstBuffer.hxx
View file @
ab9f5d20
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include <cstddef>
#include <cstddef>
#ifndef NDEBUG
#ifndef NDEBUG
#include <
assert.h
>
#include <
cassert
>
#endif
#endif
template
<
typename
T
>
template
<
typename
T
>
...
...
src/util/DivideString.hxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef MPD_DIVIDE_STRING_HXX
#ifndef MPD_DIVIDE_STRING_HXX
#define MPD_DIVIDE_STRING_HXX
#define MPD_DIVIDE_STRING_HXX
#include <
assert.h
>
#include <
cassert
>
/**
/**
* Split a given constant string at a separator character. Duplicates
* Split a given constant string at a separator character. Duplicates
...
...
src/util/ForeignFifoBuffer.hxx
View file @
ab9f5d20
...
@@ -32,12 +32,10 @@
...
@@ -32,12 +32,10 @@
#include "WritableBuffer.hxx"
#include "WritableBuffer.hxx"
#include <utility>
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstddef>
#include <utility>
#include <assert.h>
/**
/**
* A first-in-first-out buffer: you can append data at the end, and
* A first-in-first-out buffer: you can append data at the end, and
...
...
src/util/LazyRandomEngine.hxx
View file @
ab9f5d20
...
@@ -20,10 +20,9 @@
...
@@ -20,10 +20,9 @@
#ifndef MPD_LAZY_RANDOM_ENGINE_HXX
#ifndef MPD_LAZY_RANDOM_ENGINE_HXX
#define MPD_LAZY_RANDOM_ENGINE_HXX
#define MPD_LAZY_RANDOM_ENGINE_HXX
#include <cassert>
#include <random>
#include <random>
#include <assert.h>
/**
/**
* A random engine that will be created and seeded on demand.
* A random engine that will be created and seeded on demand.
*/
*/
...
...
src/util/Manual.hxx
View file @
ab9f5d20
...
@@ -30,11 +30,10 @@
...
@@ -30,11 +30,10 @@
#ifndef MANUAL_HXX
#ifndef MANUAL_HXX
#define MANUAL_HXX
#define MANUAL_HXX
#include <cassert>
#include <new>
#include <new>
#include <utility>
#include <utility>
#include <assert.h>
#if defined(__GNUC__) || defined(__clang__)
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
...
...
src/util/NumberParser.hxx
View file @
ab9f5d20
...
@@ -31,7 +31,8 @@
...
@@ -31,7 +31,8 @@
#ifndef NUMBER_PARSER_HXX
#ifndef NUMBER_PARSER_HXX
#define NUMBER_PARSER_HXX
#define NUMBER_PARSER_HXX
#include <assert.h>
#include <cassert>
#include <stdint.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
src/util/OptionDef.hxx
View file @
ab9f5d20
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#ifndef MPD_UTIL_OPTIONDEF_HXX
#ifndef MPD_UTIL_OPTIONDEF_HXX
#define MPD_UTIL_OPTIONDEF_HXX
#define MPD_UTIL_OPTIONDEF_HXX
#include <
assert.h
>
#include <
cassert
>
/**
/**
* Command line option definition.
* Command line option definition.
...
...
src/util/PeakBuffer.cxx
View file @
ab9f5d20
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
#include "DynamicFifoBuffer.hxx"
#include "DynamicFifoBuffer.hxx"
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <assert.h>
#include <string.h>
#include <string.h>
PeakBuffer
::~
PeakBuffer
()
PeakBuffer
::~
PeakBuffer
()
...
...
src/util/SliceBuffer.hxx
View file @
ab9f5d20
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
#include "HugeAllocator.hxx"
#include "HugeAllocator.hxx"
#include "Compiler.h"
#include "Compiler.h"
#include <
utility
>
#include <
cassert
>
#include <new>
#include <new>
#include <utility>
#include <assert.h>
#include <stddef.h>
#include <stddef.h>
/**
/**
...
...
src/util/SparseBuffer.hxx
View file @
ab9f5d20
...
@@ -34,10 +34,9 @@
...
@@ -34,10 +34,9 @@
#include "ConstBuffer.hxx"
#include "ConstBuffer.hxx"
#include "WritableBuffer.hxx"
#include "WritableBuffer.hxx"
#include <cassert>
#include <map>
#include <map>
#include <assert.h>
/**
/**
* Helper class for #SparseBuffer which describes which portions of
* Helper class for #SparseBuffer which describes which portions of
* the buffer have "known" data.
* the buffer have "known" data.
...
...
src/util/StaticFifoBuffer.hxx
View file @
ab9f5d20
...
@@ -32,11 +32,10 @@
...
@@ -32,11 +32,10 @@
#include "WritableBuffer.hxx"
#include "WritableBuffer.hxx"
#include <utility>
#include <algorithm>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstddef>
#include <utility>
#include <assert.h>
/**
/**
* A first-in-first-out buffer: you can append data at the end, and
* A first-in-first-out buffer: you can append data at the end, and
...
...
src/util/StringUtil.cxx
View file @
ab9f5d20
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include "CharUtil.hxx"
#include "CharUtil.hxx"
#include "ASCII.hxx"
#include "ASCII.hxx"
#include <
assert.h
>
#include <
cassert
>
bool
bool
StringArrayContainsCase
(
const
char
*
const
*
haystack
,
StringArrayContainsCase
(
const
char
*
const
*
haystack
,
...
...
src/util/UriRelative.cxx
View file @
ab9f5d20
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
#include "StringAPI.hxx"
#include "StringAPI.hxx"
#include "StringCompare.hxx"
#include "StringCompare.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
bool
bool
...
...
src/util/UriUtil.cxx
View file @
ab9f5d20
...
@@ -30,7 +30,8 @@
...
@@ -30,7 +30,8 @@
#include "UriUtil.hxx"
#include "UriUtil.hxx"
#include "ASCII.hxx"
#include "ASCII.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#include <string.h>
static
const
char
*
static
const
char
*
...
...
src/util/WritableBuffer.hxx
View file @
ab9f5d20
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#include <cstddef>
#include <cstddef>
#ifndef NDEBUG
#ifndef NDEBUG
#include <
assert.h
>
#include <
cassert
>
#endif
#endif
template
<
typename
T
>
template
<
typename
T
>
...
...
test/ContainerScan.cxx
View file @
ab9f5d20
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
#include "util/PrintException.hxx"
#include "util/PrintException.hxx"
#include "util/UriExtract.hxx"
#include "util/UriExtract.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <unistd.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
...
...
test/RunChromaprint.cxx
View file @
ab9f5d20
...
@@ -34,9 +34,9 @@
...
@@ -34,9 +34,9 @@
#include "Log.hxx"
#include "Log.hxx"
#include "LogBackend.hxx"
#include "LogBackend.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <unistd.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
...
...
test/read_mixer.cxx
View file @
ab9f5d20
...
@@ -25,7 +25,8 @@
...
@@ -25,7 +25,8 @@
#include "config/Block.hxx"
#include "config/Block.hxx"
#include "util/PrintException.hxx"
#include "util/PrintException.hxx"
#include <assert.h>
#include <cassert>
#include <stdlib.h>
#include <stdlib.h>
const
FilterPlugin
*
const
FilterPlugin
*
...
...
test/read_tags.cxx
View file @
ab9f5d20
...
@@ -33,9 +33,9 @@
...
@@ -33,9 +33,9 @@
#include "util/StringView.hxx"
#include "util/StringView.hxx"
#include "util/PrintException.hxx"
#include "util/PrintException.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <unistd.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
...
...
test/run_convert.cxx
View file @
ab9f5d20
...
@@ -36,9 +36,9 @@
...
@@ -36,9 +36,9 @@
#include "Log.hxx"
#include "Log.hxx"
#include "LogBackend.hxx"
#include "LogBackend.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <stddef.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
...
...
test/run_decoder.cxx
View file @
ab9f5d20
...
@@ -33,9 +33,9 @@
...
@@ -33,9 +33,9 @@
#include "Log.hxx"
#include "Log.hxx"
#include "LogBackend.hxx"
#include "LogBackend.hxx"
#include <cassert>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <unistd.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
...
...
test/run_filter.cxx
View file @
ab9f5d20
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include "util/PrintException.hxx"
#include "util/PrintException.hxx"
#include <cassert>
#include <memory>
#include <memory>
#include <stdexcept>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
...
...
test/run_output.cxx
View file @
ab9f5d20
...
@@ -30,9 +30,9 @@
...
@@ -30,9 +30,9 @@
#include "util/ScopeExit.hxx"
#include "util/ScopeExit.hxx"
#include "util/PrintException.hxx"
#include "util/PrintException.hxx"
#include <cassert>
#include <memory>
#include <memory>
#include <assert.h>
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdlib.h>
...
...
test/test_vorbis_encoder.cxx
View file @
ab9f5d20
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
#include "tag/Builder.hxx"
#include "tag/Builder.hxx"
#include "util/PrintException.hxx"
#include "util/PrintException.hxx"
#include <cassert>
#include <memory>
#include <memory>
#include <assert.h>
#include <stddef.h>
#include <stddef.h>
static
uint8_t
zero
[
256
];
static
uint8_t
zero
[
256
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment