Commit 2f5106c9 authored by Max Kellermann's avatar Max Kellermann

tag/Settings: convert to C++

parent 0c19418e
...@@ -818,7 +818,7 @@ libtag_a_SOURCES =\ ...@@ -818,7 +818,7 @@ libtag_a_SOURCES =\
src/tag/TagBuilder.cxx src/tag/TagBuilder.hxx \ src/tag/TagBuilder.cxx src/tag/TagBuilder.hxx \
src/tag/TagItem.hxx \ src/tag/TagItem.hxx \
src/tag/TagHandler.cxx src/tag/TagHandler.hxx \ src/tag/TagHandler.cxx src/tag/TagHandler.hxx \
src/tag/TagSettings.c src/tag/TagSettings.h \ src/tag/Settings.cxx src/tag/Settings.hxx \
src/tag/TagConfig.cxx src/tag/TagConfig.hxx \ src/tag/TagConfig.cxx src/tag/TagConfig.hxx \
src/tag/TagNames.c \ src/tag/TagNames.c \
src/tag/TagString.cxx src/tag/TagString.hxx \ src/tag/TagString.cxx src/tag/TagString.hxx \
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "config.h" #include "config.h"
#include "TagPrint.hxx" #include "TagPrint.hxx"
#include "tag/Tag.hxx" #include "tag/Tag.hxx"
#include "tag/TagSettings.h" #include "tag/Settings.hxx"
#include "client/Response.hxx" #include "client/Response.hxx"
void void
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include "fs/io/BufferedOutputStream.hxx" #include "fs/io/BufferedOutputStream.hxx"
#include "fs/io/TextFile.hxx" #include "fs/io/TextFile.hxx"
#include "tag/Tag.hxx" #include "tag/Tag.hxx"
#include "tag/TagSettings.h" #include "tag/Settings.hxx"
#include "fs/Charset.hxx" #include "fs/Charset.hxx"
#include "util/StringUtil.hxx" #include "util/StringUtil.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "Set.hxx" #include "Set.hxx"
#include "TagBuilder.hxx" #include "TagBuilder.hxx"
#include "TagSettings.h" #include "Settings.hxx"
#include <assert.h> #include <assert.h>
......
...@@ -17,6 +17,6 @@ ...@@ -17,6 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include "TagSettings.h" #include "Settings.hxx"
tag_mask_t global_tag_mask = (tag_mask_t)-1 & ~(1 << TAG_COMMENT); tag_mask_t global_tag_mask = (tag_mask_t)-1 & ~(1 << TAG_COMMENT);
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef MPD_TAG_SETTINGS_H #ifndef MPD_TAG_SETTINGS_HXX
#define MPD_TAG_SETTINGS_H #define MPD_TAG_SETTINGS_HXX
#include "TagType.h" #include "TagType.h"
#include "Compiler.h" #include "Compiler.h"
...@@ -29,8 +29,6 @@ typedef uint_least32_t tag_mask_t; ...@@ -29,8 +29,6 @@ typedef uint_least32_t tag_mask_t;
extern tag_mask_t global_tag_mask; extern tag_mask_t global_tag_mask;
#ifdef __cplusplus
gcc_const gcc_const
static inline bool static inline bool
IsTagEnabled(unsigned tag) IsTagEnabled(unsigned tag)
...@@ -46,5 +44,3 @@ IsTagEnabled(TagType tag) ...@@ -46,5 +44,3 @@ IsTagEnabled(TagType tag)
} }
#endif #endif
#endif
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "config.h" #include "config.h"
#include "TagBuilder.hxx" #include "TagBuilder.hxx"
#include "TagSettings.h" #include "Settings.hxx"
#include "TagPool.hxx" #include "TagPool.hxx"
#include "TagString.hxx" #include "TagString.hxx"
#include "Tag.hxx" #include "Tag.hxx"
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "config.h" #include "config.h"
#include "TagConfig.hxx" #include "TagConfig.hxx"
#include "TagSettings.h" #include "Settings.hxx"
#include "Tag.hxx" #include "Tag.hxx"
#include "config/ConfigGlobal.hxx" #include "config/ConfigGlobal.hxx"
#include "config/ConfigOption.hxx" #include "config/ConfigOption.hxx"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment