Skip to content

Commit

Permalink
LIB: use #pragma once consistenly to avoid including the same file twice
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Westerfeld <[email protected]>
  • Loading branch information
swesterfeld committed Nov 18, 2023
1 parent f466034 commit 590149e
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 55 deletions.
5 changes: 1 addition & 4 deletions lib/argparser.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_ARGPARSER_HH
#define LIQUIDSFZ_ARGPARSER_HH
#pragma once

#include <vector>
#include <string>
Expand All @@ -25,5 +24,3 @@ public:
};

}

#endif /* LIQUIDSFZ_ARGPARSER_HH */
5 changes: 1 addition & 4 deletions lib/curve.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_CURVE_HH
#define LIQUIDSFZ_CURVE_HH
#pragma once

#include <vector>
#include <map>
Expand Down Expand Up @@ -92,5 +91,3 @@ public:
};

}

#endif /* LIQUIDSFZ_CURVE_HH */
5 changes: 1 addition & 4 deletions lib/envelope.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_ENVELOPE_HH
#define LIQUIDSFZ_ENVELOPE_HH
#pragma once

#include "loader.hh"

Expand Down Expand Up @@ -249,5 +248,3 @@ public:
};

}

#endif /* LIQUIDSFZ_ENVELOPE_HH */
5 changes: 1 addition & 4 deletions lib/filter.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_FILTER_HH
#define LIQUIDSFZ_FILTER_HH
#pragma once

#include <cmath>
#include <string>
Expand Down Expand Up @@ -405,5 +404,3 @@ public:
};

}

#endif /* LIQUIDSFZ_FILTER_HH */
5 changes: 1 addition & 4 deletions lib/hydrogenimport.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_HYDROGEN_HH
#define LIQUIDSFZ_HYDROGEN_HH
#pragma once

#include <string>

Expand Down Expand Up @@ -40,5 +39,3 @@ public:
};

}

#endif /* LIQUIDSFZ_HYDROGEN_HH */
5 changes: 1 addition & 4 deletions lib/lfogen.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_LFOGEN_HH
#define LIQUIDSFZ_LFOGEN_HH
#pragma once

#include "utils.hh"

Expand Down Expand Up @@ -101,5 +100,3 @@ public:
};

}

#endif /* LIQUIDSFZ_LFOGEN_HH */
4 changes: 1 addition & 3 deletions lib/liquidsfz.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_LIQUIDSFZ_HH
#define LIQUIDSFZ_LIQUIDSFZ_HH
#pragma once

#include <memory>
#include <functional>
Expand Down Expand Up @@ -628,4 +627,3 @@ messages will break realtime capabilty.
*/

}
#endif
5 changes: 1 addition & 4 deletions lib/loader.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_LOADER_HH
#define LIQUIDSFZ_LOADER_HH
#pragma once

#include <string>
#include <set>
Expand Down Expand Up @@ -512,5 +511,3 @@ public:
};

}

#endif /* LIQUIDSFZ_LOADER_HH */
2 changes: 2 additions & 0 deletions lib/log.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#pragma once

#include "utils.hh"

#include <string>
Expand Down
2 changes: 2 additions & 0 deletions lib/midnam.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#pragma once

#include "synth.hh"

namespace LiquidSFZInternal
Expand Down
5 changes: 1 addition & 4 deletions lib/samplecache.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_SAMPLECACHE_HH
#define LIQUIDSFZ_SAMPLECACHE_HH
#pragma once

#include <vector>
#include <functional>
Expand Down Expand Up @@ -483,5 +482,3 @@ Sample::end_playback()
}

}

#endif /* LIQUIDSFZ_SAMPLECACHE_HH */
5 changes: 1 addition & 4 deletions lib/sfpool.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_SFPOOL_HH
#define LIQUIDSFZ_SFPOOL_HH
#pragma once

#include <sndfile.h>

Expand Down Expand Up @@ -63,5 +62,3 @@ public:
};

}

#endif /* LIQUIDSFZ_SFPOOL_HH */
5 changes: 1 addition & 4 deletions lib/synth.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_SYNTH_HH
#define LIQUIDSFZ_SYNTH_HH
#pragma once

#include <random>
#include <algorithm>
Expand Down Expand Up @@ -708,5 +707,3 @@ public:
};

}

#endif /* LIQUIDSFZ_SYNTH_HH */
5 changes: 1 addition & 4 deletions lib/upsample.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_UPSAMPLE_HH
#define LIQUIDSFZ_UPSAMPLE_HH
#pragma once

namespace LiquidSFZInternal
{
Expand Down Expand Up @@ -89,5 +88,3 @@ upsample (const float *in, float *out)
}

}

#endif /* LIQUIDSFZ_UPSAMPLE_HH */
5 changes: 1 addition & 4 deletions lib/utils.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_UTILS_HH
#define LIQUIDSFZ_UTILS_HH
#pragma once

#include <cstring>

Expand Down Expand Up @@ -134,5 +133,3 @@ public:
};

}

#endif /* LIQUIDSFZ_UTILS_HH */
5 changes: 1 addition & 4 deletions lib/voice.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0

#ifndef LIQUIDSFZ_VOICE_HH
#define LIQUIDSFZ_VOICE_HH
#pragma once

#include "envelope.hh"
#include "filter.hh"
Expand Down Expand Up @@ -164,5 +163,3 @@ public:
};

}

#endif /* LIQUIDSFZ_VOICE_HH */

0 comments on commit 590149e

Please sign in to comment.