Clean up macros a bit (#6444)

* Prefix `STRINGIFY` and `STR` macros with `LMMS_`

* Fix include guard macro names

* Remove unused macros
This commit is contained in:
Dominic Clark
2022-06-23 12:20:05 +01:00
committed by GitHub
parent c2fa2375dc
commit 96df9b006c
59 changed files with 66 additions and 94 deletions

View File

@@ -36,7 +36,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT amplifier_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Amplifier",
QT_TRANSLATE_NOOP( "PluginBrowser", "A native amplifier plugin" ),
"Vesa Kivimäki <contact/dot/diizy/at/nbl/dot/fi>",

View File

@@ -57,7 +57,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT audiofileprocessor_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"AudioFileProcessor",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Simple sampler with various settings for "

View File

@@ -36,7 +36,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT bassbooster_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"BassBooster",
QT_TRANSLATE_NOOP( "PluginBrowser", "Boost your bass the fast and simple way" ),
"Tobias Doerffel <tobydox/at/users.sf.net>",

View File

@@ -54,7 +54,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT bitinvader_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"BitInvader",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Customizable wavetable synthesizer" ),

View File

@@ -43,7 +43,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT bitcrush_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Bitcrush",
QT_TRANSLATE_NOOP( "PluginBrowser", "An oversampling bitcrusher" ),
"Vesa Kivimäki <contact/dot/diizy/at/nbl/dot/fi>",

View File

@@ -37,7 +37,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT carlapatchbay_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Carla Patchbay",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Carla Patchbay Instrument" ),

View File

@@ -37,7 +37,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT carlarack_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Carla Rack",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Carla Rack Instrument" ),

View File

@@ -38,7 +38,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT compressor_plugin_descriptor =
{
STRINGIFY(PLUGIN_NAME),
LMMS_STRINGIFY(PLUGIN_NAME),
"Compressor",
QT_TRANSLATE_NOOP("PluginBrowser", "A dynamic range compressor."),
"Lost Robot <r94231@gmail.com>",

View File

@@ -38,7 +38,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT crossovereq_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Crossover Equalizer",
QT_TRANSLATE_NOOP( "PluginBrowser", "A 4-band Crossover Equalizer" ),
"Vesa Kivimäki <contact/dot/diizy/at/nbl/dot/fi>",

View File

@@ -39,7 +39,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT delay_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Delay",
QT_TRANSLATE_NOOP( "PluginBrowser", "A native delay plugin" ),
"Dave French <contact/dot/dave/dot/french3/at/googlemail/dot/com>",

View File

@@ -38,7 +38,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT dualfilter_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Dual Filter",
QT_TRANSLATE_NOOP( "PluginBrowser", "A Dual filter plugin" ),
"Vesa Kivimäki <contact/dot/diizy/at/nbl/dot/fi>",

View File

@@ -41,7 +41,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT dynamicsprocessor_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Dynamics Processor",
QT_TRANSLATE_NOOP( "PluginBrowser",
"plugin for processing dynamics in a flexible way" ),

View File

@@ -39,7 +39,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT eq_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Equalizer",
QT_TRANSLATE_NOOP( "PluginBrowser", "A native eq plugin" ),
"Dave French <contact/dot/dave/dot/french3/at/googlemail/dot/com>",

View File

@@ -37,7 +37,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT flanger_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Flanger",
QT_TRANSLATE_NOOP( "PluginBrowser", "A native flanger plugin" ),
"Dave French <contact/dot/dave/dot/french3/at/googlemail/dot/com>",

View File

@@ -52,7 +52,7 @@ extern "C"
{
Plugin::Descriptor PLUGIN_EXPORT freeboy_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"FreeBoy",
QT_TRANSLATE_NOOP( "PluginBrowser", "Emulation of GameBoy (TM) APU" ),

View File

@@ -64,7 +64,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT gigplayer_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"GIG Player",
QT_TRANSLATE_NOOP( "PluginBrowser", "Player for GIG files" ),
"Garrett Wilson <g/at/floft/dot/net>",

View File

@@ -24,7 +24,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT hydrogenimport_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Hydrogen Import",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Filter for importing Hydrogen files into LMMS" ),

View File

@@ -49,7 +49,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT kicker_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Kicker",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Versatile drum synthesizer" ),

View File

@@ -50,7 +50,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT ladspabrowser_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"LADSPA Plugin Browser",
QT_TRANSLATE_NOOP( "PluginBrowser",
"List installed LADSPA plugins" ),

View File

@@ -53,7 +53,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT ladspaeffect_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"LADSPA",
QT_TRANSLATE_NOOP( "PluginBrowser",
"plugin for using arbitrary LADSPA-effects "

View File

@@ -80,7 +80,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT lb302_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"LB302",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Incomplete monophonic imitation TB-303" ),

View File

@@ -29,8 +29,8 @@
*/
#ifndef LB302_H_
#define LB302_H_
#ifndef LB302_H
#define LB302_H
#include "DspEffectLibrary.h"
#include "Instrument.h"
@@ -303,4 +303,4 @@ private:
} // namespace lmms
#endif
#endif // LB302_H

View File

@@ -40,7 +40,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT lv2effect_plugin_descriptor =
{
STRINGIFY(PLUGIN_NAME),
LMMS_STRINGIFY(PLUGIN_NAME),
"LV2",
QT_TRANSLATE_NOOP("PluginBrowser",
"plugin for using arbitrary LV2-effects inside LMMS."),

View File

@@ -49,7 +49,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT lv2instrument_plugin_descriptor =
{
STRINGIFY(PLUGIN_NAME),
LMMS_STRINGIFY(PLUGIN_NAME),
"LV2",
QT_TRANSLATE_NOOP("PluginBrowser",
"plugin for using arbitrary LV2 instruments inside LMMS."),

View File

@@ -44,7 +44,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT midiexport_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"MIDI Export",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Filter for exporting MIDI-files from LMMS" ),

View File

@@ -65,7 +65,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT midiimport_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"MIDI Import",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Filter for importing MIDI-files into LMMS" ),

View File

@@ -47,7 +47,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT monstro_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Monstro",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Monstrous 3-oscillator synth with modulation matrix" ),

View File

@@ -36,7 +36,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT multitapecho_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Multitap Echo",
QT_TRANSLATE_NOOP( "PluginBrowser", "A multitap echo delay plugin" ),
"Vesa Kivimäki <contact/dot/diizy/at/nbl/dot/fi>",

View File

@@ -45,7 +45,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT nes_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Nescaline",
QT_TRANSLATE_NOOP( "PluginBrowser",
"A NES-like synthesizer" ),

View File

@@ -67,7 +67,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT opulenz_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"OpulenZ",
QT_TRANSLATE_NOOP( "PluginBrowser",
"2-operator FM Synth" ),

View File

@@ -50,7 +50,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT organic_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Organic",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Additive Synthesizer for organ-like sounds" ),

View File

@@ -55,7 +55,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT patman_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"PatMan",
QT_TRANSLATE_NOOP( "PluginBrowser",
"GUS-compatible patch instrument" ),

View File

@@ -23,8 +23,8 @@
*/
#ifndef PATMAN_H_
#define PATMAN_H_
#ifndef PATMAN_H
#define PATMAN_H
#include "Instrument.h"
#include "InstrumentView.h"
@@ -162,4 +162,4 @@ private:
} // namespace lmms
#endif
#endif // PATMAN_H

View File

@@ -42,7 +42,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT peakcontrollereffect_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Peak Controller",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Plugin for controlling knobs with sound peaks" ),

View File

@@ -37,7 +37,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT reverbsc_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"ReverbSC",
QT_TRANSLATE_NOOP( "PluginBrowser", "Reverb algorithm by Sean Costello" ),
"Paul Batchelor",

View File

@@ -58,7 +58,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT sf2player_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Sf2 Player",
QT_TRANSLATE_NOOP( "PluginBrowser", "Player for SoundFont files" ),
"Paul Giblock <drfaygo/at/gmail/dot/com>",

View File

@@ -61,7 +61,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT sfxr_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"sfxr",
QT_TRANSLATE_NOOP( "PluginBrowser",
"LMMS port of sfxr" ),

View File

@@ -75,7 +75,7 @@ extern "C"
{
Plugin::Descriptor PLUGIN_EXPORT sid_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"SID",
QT_TRANSLATE_NOOP( "PluginBrowser", "Emulation of the MOS6581 and MOS8580 "
"SID.\nThis chip was used in the Commodore 64 computer." ),

View File

@@ -37,7 +37,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT stereoenhancer_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"StereoEnhancer Effect",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Plugin for enhancing stereo separation of a stereo input file" ),

View File

@@ -37,7 +37,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT stereomatrix_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Stereo Matrix",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Plugin for freely manipulating stereo output" ),

View File

@@ -53,7 +53,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT malletsstk_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Mallets",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Tuneful things to bang on" ),

View File

@@ -50,7 +50,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT tripleoscillator_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"TripleOscillator",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Three powerful oscillators you can modulate "

View File

@@ -34,7 +34,7 @@ namespace lmms
extern "C" {
Plugin::Descriptor PLUGIN_EXPORT vectorscope_plugin_descriptor =
{
STRINGIFY(PLUGIN_NAME),
LMMS_STRINGIFY(PLUGIN_NAME),
"Vectorscope",
QT_TRANSLATE_NOOP("PluginBrowser", "A stereo field visualizer."),
"Martin Pavelek <he29/dot/HS/at/gmail/dot/com>",

View File

@@ -71,7 +71,7 @@ extern "C"
Plugin::Descriptor Q_DECL_EXPORT vestige_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"VeSTige",
QT_TRANSLATE_NOOP( "PluginBrowser",
"VST-host for using VST(i)-plugins within LMMS" ),

View File

@@ -52,7 +52,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT vibedstrings_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Vibed",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Vibrating string modeler" ),

View File

@@ -36,7 +36,7 @@ extern "C"
Plugin::Descriptor VSTBASE_EXPORT vstbase_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"VST Base",
"library for all LMMS plugins dealing with VST-plugins",
"Tobias Doerffel <tobydox/at/users/dot/sf/dot/net>",

View File

@@ -43,7 +43,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT vsteffect_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"VST",
QT_TRANSLATE_NOOP( "PluginBrowser",
"plugin for using arbitrary VST effects inside LMMS." ),

View File

@@ -46,7 +46,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT watsyn_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Watsyn",
QT_TRANSLATE_NOOP( "PluginBrowser",
"4-oscillator modulatable wavetable synth" ),

View File

@@ -40,7 +40,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT waveshaper_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"Waveshaper Effect",
QT_TRANSLATE_NOOP( "PluginBrowser",
"plugin for waveshaping" ),

View File

@@ -54,7 +54,7 @@ namespace lmms
extern "C" {
Plugin::Descriptor PLUGIN_EXPORT xpressive_plugin_descriptor = { STRINGIFY(
Plugin::Descriptor PLUGIN_EXPORT xpressive_plugin_descriptor = { LMMS_STRINGIFY(
PLUGIN_NAME), "Xpressive", QT_TRANSLATE_NOOP("PluginBrowser",
"Mathematical expression parser"), "Orr Dvori", 0x0100,
Plugin::Instrument, new PluginPixmapLoader("logo"), nullptr, nullptr };

View File

@@ -60,7 +60,7 @@ extern "C"
Plugin::Descriptor PLUGIN_EXPORT zynaddsubfx_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
LMMS_STRINGIFY( PLUGIN_NAME ),
"ZynAddSubFX",
QT_TRANSLATE_NOOP( "PluginBrowser",
"Embedded ZynAddSubFX" ),