Skip to content

Commit 42beb57

Browse files
committed
[MISC] Macro comments: SEQAN3_HAS_ZLIB
1 parent ed1ad10 commit 42beb57

19 files changed

+30
-30
lines changed

doc/cookbook/compression_threads.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ int main()
2424
return 0;
2525
}
2626
//![example]
27-
#endif
27+
#endif // SEQAN3_HAS_ZLIB

include/seqan3/io/detail/misc_input.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ inline auto make_secondary_istream(std::basic_istream<char_t> & primary_stream,
123123
return {new contrib::basic_bgzf_istream<char_t>{primary_stream}, stream_deleter_default};
124124
#else
125125
throw file_open_error{"Trying to read from a bgzf file, but no ZLIB available."};
126-
#endif
126+
#endif // SEQAN3_HAS_ZLIB
127127
}
128128
else if (starts_with(magic_number, gz_compression::magic_header)) // GZIP
129129
{
@@ -134,7 +134,7 @@ inline auto make_secondary_istream(std::basic_istream<char_t> & primary_stream,
134134
return {new contrib::basic_gz_istream<char_t>{primary_stream}, stream_deleter_default};
135135
#else
136136
throw file_open_error{"Trying to read from a gzipped file, but no ZLIB available."};
137-
#endif
137+
#endif // SEQAN3_HAS_ZLIB
138138
}
139139
else if (starts_with(magic_number, bz2_compression::magic_header)) // BZip2
140140
{

include/seqan3/io/detail/misc_output.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ inline auto make_secondary_ostream(std::basic_ostream<char_t> & primary_stream,
5353
return {new contrib::basic_gz_ostream<char_t>{primary_stream}, stream_deleter_default};
5454
#else
5555
throw file_open_error{"Trying to write a gzipped file, but no ZLIB available."};
56-
#endif
56+
#endif // SEQAN3_HAS_ZLIB
5757
}
5858
else if ((extension == ".bgzf") || (extension == ".bam"))
5959
{
@@ -64,7 +64,7 @@ inline auto make_secondary_ostream(std::basic_ostream<char_t> & primary_stream,
6464
return {new contrib::basic_bgzf_ostream<char_t>{primary_stream}, stream_deleter_default};
6565
#else
6666
throw file_open_error{"Trying to write a bgzf'ed file, but no ZLIB available."};
67-
#endif
67+
#endif // SEQAN3_HAS_ZLIB
6868
}
6969
else if (extension == ".bz2")
7070
{

test/include/seqan3/test/zlib_skip.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#if SEQAN3_HAS_ZLIB
1717
# include <zlib.h>
18-
#endif
18+
#endif // SEQAN3_HAS_ZLIB
1919

2020
// Some of our tests check the binary compressed output of zlib. This is not guaranteed to be the same for all zlib
2121
// implementations.

test/performance/io/stream_input_benchmark.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# include <seqan3/contrib/stream/bgzf_ostream.hpp>
1616
# include <seqan3/contrib/stream/gz_istream.hpp>
1717
# include <seqan3/contrib/stream/gz_ostream.hpp>
18-
#endif
18+
#endif // SEQAN3_HAS_ZLIB
1919

2020
// only benchmark BZIP2 if explicitly requested, because slow setup
2121
#if !defined(SEQAN3_BENCH_BZIP2) && SEQAN3_HAS_BZIP2
@@ -33,7 +33,7 @@
3333

3434
# if SEQAN3_HAS_ZLIB
3535
# define SEQAN_HAS_ZLIB 1
36-
# endif
36+
# endif // SEQAN3_HAS_ZLIB
3737

3838
# if SEQAN3_HAS_BZIP2
3939
# define SEQAN_HAS_BZIP2 1
@@ -96,7 +96,7 @@ std::string const & input_comp<seqan2::GZFile> = input_comp<seqan3::contrib::gz_
9696
template <>
9797
std::string const & input_comp<seqan2::BgzfFile> = input_comp<seqan3::contrib::bgzf_istream>;
9898
# endif
99-
#endif
99+
#endif // SEQAN3_HAS_ZLIB
100100

101101
#if SEQAN3_HAS_BZIP2
102102
template <>
@@ -169,7 +169,7 @@ void compressed(benchmark::State & state)
169169
#if SEQAN3_HAS_ZLIB
170170
BENCHMARK_TEMPLATE(compressed, seqan3::contrib::gz_istream);
171171
BENCHMARK_TEMPLATE(compressed, seqan3::contrib::bgzf_istream);
172-
#endif
172+
#endif // SEQAN3_HAS_ZLIB
173173

174174
#if SEQAN3_HAS_BZIP2
175175
BENCHMARK_TEMPLATE(compressed, seqan3::contrib::bz2_istream);
@@ -204,7 +204,7 @@ void compressed_type_erased(benchmark::State & state)
204204
#if SEQAN3_HAS_ZLIB
205205
BENCHMARK_TEMPLATE(compressed_type_erased, seqan3::contrib::gz_istream);
206206
BENCHMARK_TEMPLATE(compressed_type_erased, seqan3::contrib::bgzf_istream);
207-
#endif
207+
#endif // SEQAN3_HAS_ZLIB
208208
#if SEQAN3_HAS_BZIP2
209209
BENCHMARK_TEMPLATE(compressed_type_erased, seqan3::contrib::bz2_istream);
210210
#endif
@@ -238,7 +238,7 @@ void compressed_type_erased2(benchmark::State & state)
238238
#if SEQAN3_HAS_ZLIB
239239
BENCHMARK_TEMPLATE(compressed_type_erased2, seqan3::contrib::gz_istream);
240240
BENCHMARK_TEMPLATE(compressed_type_erased2, seqan3::contrib::bgzf_istream);
241-
#endif
241+
#endif // SEQAN3_HAS_ZLIB
242242
#if SEQAN3_HAS_BZIP2
243243
BENCHMARK_TEMPLATE(compressed_type_erased2, seqan3::contrib::bz2_istream);
244244
#endif

test/performance/io/stream_output_benchmark.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#if SEQAN3_HAS_ZLIB
1212
# include <seqan3/contrib/stream/bgzf_ostream.hpp>
1313
# include <seqan3/contrib/stream/gz_ostream.hpp>
14-
#endif
14+
#endif // SEQAN3_HAS_ZLIB
1515

1616
#if SEQAN3_HAS_BZIP2
1717
# include <seqan3/contrib/stream/bz2_ostream.hpp>
@@ -23,7 +23,7 @@
2323

2424
# if SEQAN3_HAS_ZLIB
2525
# define SEQAN_HAS_ZLIB 1
26-
# endif
26+
# endif // SEQAN3_HAS_ZLIB
2727

2828
# if SEQAN3_HAS_BZIP2
2929
# define SEQAN_HAS_BZIP2 1
@@ -69,7 +69,7 @@ void compressed(benchmark::State & state)
6969
#if SEQAN3_HAS_ZLIB
7070
BENCHMARK_TEMPLATE(compressed, seqan3::contrib::gz_ostream);
7171
BENCHMARK_TEMPLATE(compressed, seqan3::contrib::bgzf_ostream);
72-
#endif
72+
#endif // SEQAN3_HAS_ZLIB
7373
#if SEQAN3_HAS_BZIP2
7474
BENCHMARK_TEMPLATE(compressed, seqan3::contrib::bz2_ostream);
7575
#endif
@@ -95,7 +95,7 @@ void compressed_type_erased(benchmark::State & state)
9595
#if SEQAN3_HAS_ZLIB
9696
BENCHMARK_TEMPLATE(compressed_type_erased, seqan3::contrib::gz_ostream);
9797
BENCHMARK_TEMPLATE(compressed_type_erased, seqan3::contrib::bgzf_ostream);
98-
#endif
98+
#endif // SEQAN3_HAS_ZLIB
9999
#if SEQAN3_HAS_BZIP2
100100
BENCHMARK_TEMPLATE(compressed_type_erased, seqan3::contrib::bz2_ostream);
101101
#endif
@@ -121,7 +121,7 @@ void compressed_type_erased2(benchmark::State & state)
121121
#if SEQAN3_HAS_ZLIB
122122
BENCHMARK_TEMPLATE(compressed_type_erased2, seqan3::contrib::gz_ostream);
123123
BENCHMARK_TEMPLATE(compressed_type_erased2, seqan3::contrib::bgzf_ostream);
124-
#endif
124+
#endif // SEQAN3_HAS_ZLIB
125125
#if SEQAN3_HAS_BZIP2
126126
BENCHMARK_TEMPLATE(compressed_type_erased2, seqan3::contrib::bz2_ostream);
127127
#endif

test/unit/contrib/stream/bgzf_istream_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ TEST(bgzf_istream_test, skipped)
3737
GTEST_SKIP() << "ZLIB is missing. Not running bgzf_istream_test.";
3838
}
3939

40-
#endif
40+
#endif // SEQAN3_HAS_ZLIB

test/unit/contrib/stream/bgzf_ostream_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ TEST(bgzf_ostream_test, skipped)
3939
GTEST_SKIP() << "ZLIB is missing. Not running bgzf_ostream_test.";
4040
}
4141

42-
#endif
42+
#endif // SEQAN3_HAS_ZLIB

test/unit/contrib/stream/gz_istream_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ TEST(gz_istream_test, skipped)
3535
GTEST_SKIP() << "ZLIB is missing. Not running gz_istream_test.";
3636
}
3737

38-
#endif
38+
#endif // SEQAN3_HAS_ZLIB

test/unit/contrib/stream/gz_ostream_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ TEST(gz_ostream_test, skipped)
3737
GTEST_SKIP() << "ZLIB is missing. Not running gz_ostream_test.";
3838
}
3939

40-
#endif
40+
#endif // SEQAN3_HAS_ZLIB

0 commit comments

Comments
 (0)