diff options
author | Terry May <terrydmay@gmail.com> | 2019-11-28 21:03:02 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2020-01-02 14:15:18 -0800 |
commit | 85239e9f9d44748e1da48c1838be0c7c4beff9e7 (patch) | |
tree | 05ee5de97a389bea54bee654d64dd8c8c24f5ead /gr-blocks/grc | |
parent | 1690b1e9465d32d6c87befe70af16a61fdb79d58 (diff) |
digital/blocks: Remove broken/unnecessary C++ sizeof translation
Several components use the following translation in cpp_templates:
```
translations: gr.sizeof_: 'sizeof('
```
The problem is the generated code is missing a closing parens i.e.:
this->blocks_delay_0 = blocks::delay::make(sizeof(gr_complex*1, 0);
This could be fixed by adding a closing parens in the make template, but
it looks awkward to have an unmatched closing parens. And only a few
blocks currently have this closing parens added. Most of them produce
erroneous code like that above.
However, this sizeof translation is not even needed in the YAML file
because cpp_top_block.py explicitly adds the proper sizeof translation.
```
translations.update( {r"gr\.sizeof_([\w_]+)": r"sizeof(\1)"} )
```
So removing this translation all together produces correct code for
blocks that use gr.sizeof_X.
Diffstat (limited to 'gr-blocks/grc')
37 files changed, 6 insertions, 68 deletions
diff --git a/gr-blocks/grc/blocks_burst_tagger.block.yml b/gr-blocks/grc/blocks_burst_tagger.block.yml index f20e1ea6ed..3523889fc0 100644 --- a/gr-blocks/grc/blocks_burst_tagger.block.yml +++ b/gr-blocks/grc/blocks_burst_tagger.block.yml @@ -55,13 +55,12 @@ templates: cpp_templates: includes: ['#include <gnuradio/blocks/burst_tagger.h>'] declarations: 'blocks::burst_tagger::sptr ${id};' - make: "this->${id} = blocks::burst_tagger::make(${type.size});\nthis->${id}.set_true_tag(${true_key},${true_value});\n\ + make: "this->${id} = blocks::burst_tagger::make(${type.size};\nthis->${id}.set_true_tag(${true_key},${true_value});\n\ this->${id}.set_false_tag(${false_key},${false_value});\n\t" callbacks: - set_true_tag(${true_key},${true_value}) - set_false_tag(${false_key},${false_value}) translations: - gr.sizeof_: 'sizeof(' 'True': 'true' 'False': 'false' diff --git a/gr-blocks/grc/blocks_copy.block.yml b/gr-blocks/grc/blocks_copy.block.yml index fcea82e766..3785bc7919 100644 --- a/gr-blocks/grc/blocks_copy.block.yml +++ b/gr-blocks/grc/blocks_copy.block.yml @@ -62,7 +62,6 @@ cpp_templates: callbacks: - set_enabled(${enabled}) translations: - gr.sizeof_: 'sizeof(' 'True': 'true' 'False': 'false' diff --git a/gr-blocks/grc/blocks_deinterleave.block.yml b/gr-blocks/grc/blocks_deinterleave.block.yml index cacaa4149d..c882f1d40b 100644 --- a/gr-blocks/grc/blocks_deinterleave.block.yml +++ b/gr-blocks/grc/blocks_deinterleave.block.yml @@ -50,7 +50,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/deinterleave.h>'] declarations: 'blocks::deinterleave::sptr ${id};' make: 'this->${id} = blocks::deinterleave::make(${type.size}*${vlen}, ${blocksize});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_delay.block.yml b/gr-blocks/grc/blocks_delay.block.yml index 6d5485976f..ac9cb182b7 100644 --- a/gr-blocks/grc/blocks_delay.block.yml +++ b/gr-blocks/grc/blocks_delay.block.yml @@ -54,7 +54,5 @@ cpp_templates: make: 'this->${id} = blocks::delay::make(${type.size}*${vlen}, ${delay});' callbacks: - set_dly(${delay}) - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_file_descriptor_sink.block.yml b/gr-blocks/grc/blocks_file_descriptor_sink.block.yml index f0b72cb3a6..02f0e2e303 100644 --- a/gr-blocks/grc/blocks_file_descriptor_sink.block.yml +++ b/gr-blocks/grc/blocks_file_descriptor_sink.block.yml @@ -36,7 +36,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/file_descriptor_sink.h>'] declarations: 'blocks::file_descriptor_sink::sptr ${id};' make: 'this->${id} = blocks::file_descriptor_sink::make(${type.size}*${vlen}, ${fd});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_file_descriptor_source.block.yml b/gr-blocks/grc/blocks_file_descriptor_source.block.yml index 94eecdae77..40599cd90b 100644 --- a/gr-blocks/grc/blocks_file_descriptor_source.block.yml +++ b/gr-blocks/grc/blocks_file_descriptor_source.block.yml @@ -40,7 +40,6 @@ cpp_templates: declarations: 'blocks::file_descriptor_source::sptr ${id};' make: 'this->${id} = blocks::file_descriptor_source::make(${type.size}*${vlen}, ${fd}, ${repeat});' translations: - gr.sizeof_: 'sizeof(' 'True': 'true' 'False': 'false' diff --git a/gr-blocks/grc/blocks_file_sink.block.yml b/gr-blocks/grc/blocks_file_sink.block.yml index 69c9cf4452..8c624e675e 100644 --- a/gr-blocks/grc/blocks_file_sink.block.yml +++ b/gr-blocks/grc/blocks_file_sink.block.yml @@ -52,12 +52,11 @@ templates: cpp_templates: includes: ['#include <gnuradio/blocks/file_sink.h>'] declarations: 'blocks::file_sink::sptr ${id};' - make: 'this->${id} = blocks::file_sink::make(${type.size})*${vlen}, ${file}, ${append});' + make: 'this->${id} = blocks::file_sink::make(${type.size}*${vlen}, ${file}, ${append});' callbacks: - open(${file}) translations: 'True': 'true' 'False': 'false' - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_file_source.block.yml b/gr-blocks/grc/blocks_file_source.block.yml index 3a82e40d40..6beea9f908 100644 --- a/gr-blocks/grc/blocks_file_source.block.yml +++ b/gr-blocks/grc/blocks_file_source.block.yml @@ -60,12 +60,11 @@ templates: cpp_templates: includes: ['#include <gnuradio/blocks/file_source.h>'] declarations: 'blocks::file_source::sptr ${id};' - make: 'this->${id} =blocks::file_source::make(${type.size})*${vlen}, "${file[1:-1]}", ${repeat}, ${offset}, ${length});' + make: 'this->${id} =blocks::file_source::make(${type.size}*${vlen}, "${file[1:-1]}", ${repeat}, ${offset}, ${length});' callbacks: - open(${file}, ${repeat}) translations: 'True': 'true' 'False': 'false' - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_head.block.yml b/gr-blocks/grc/blocks_head.block.yml index 59d2a7b9dd..63cad63b93 100644 --- a/gr-blocks/grc/blocks_head.block.yml +++ b/gr-blocks/grc/blocks_head.block.yml @@ -46,7 +46,5 @@ cpp_templates: make: 'this->${id} = blocks::head::make(${type.size}*${vlen}, ${num_items});' callbacks: - set_length(${num_items}) - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_interleave.block.yml b/gr-blocks/grc/blocks_interleave.block.yml index e2ab6c612f..8b87a79e42 100644 --- a/gr-blocks/grc/blocks_interleave.block.yml +++ b/gr-blocks/grc/blocks_interleave.block.yml @@ -50,7 +50,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/interleave.h>'] declarations: 'blocks::interleave::sptr ${id};' make: 'this->${id} = blocks::interleave::make(${type.size}*${vlen}, ${blocksize});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_keep_m_in_n.block.yml b/gr-blocks/grc/blocks_keep_m_in_n.block.yml index b54873fd0a..01c755ae5c 100644 --- a/gr-blocks/grc/blocks_keep_m_in_n.block.yml +++ b/gr-blocks/grc/blocks_keep_m_in_n.block.yml @@ -57,7 +57,5 @@ cpp_templates: - set_offset(${offset}) - set_m(${m}) - set_n(${n}) - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_keep_one_in_n.block.yml b/gr-blocks/grc/blocks_keep_one_in_n.block.yml index 4c98afa738..d4d29439ad 100644 --- a/gr-blocks/grc/blocks_keep_one_in_n.block.yml +++ b/gr-blocks/grc/blocks_keep_one_in_n.block.yml @@ -48,7 +48,5 @@ cpp_templates: make: 'this->${id} = blocks::keep_one_in_n::make(${type.size}*${vlen}, ${n});' callbacks: - set_n(${n}) - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_nop.block.yml b/gr-blocks/grc/blocks_nop.block.yml index e7703b4a46..de2fe88470 100644 --- a/gr-blocks/grc/blocks_nop.block.yml +++ b/gr-blocks/grc/blocks_nop.block.yml @@ -46,7 +46,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/nop.h>'] declarations: 'blocks::nop::sptr ${id};' make: 'this->${id} = blocks::nop::make(${type.size}*${vlen});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_null_sink.block.yml b/gr-blocks/grc/blocks_null_sink.block.yml index c6145cbced..e9715270b2 100644 --- a/gr-blocks/grc/blocks_null_sink.block.yml +++ b/gr-blocks/grc/blocks_null_sink.block.yml @@ -44,8 +44,6 @@ templates: cpp_templates: includes: ['#include <gnuradio/blocks/null_sink.h>'] declarations: 'blocks::null_sink::sptr ${id};' - make: 'this->${id} = blocks::null_sink::make(${type.size})*${vlen});' - translations: - gr.sizeof_: 'sizeof(' + make: 'this->${id} = blocks::null_sink::make(${type.size}*${vlen});' file_format: 1 diff --git a/gr-blocks/grc/blocks_null_source.block.yml b/gr-blocks/grc/blocks_null_source.block.yml index fb28b50121..6ace66728c 100644 --- a/gr-blocks/grc/blocks_null_source.block.yml +++ b/gr-blocks/grc/blocks_null_source.block.yml @@ -40,8 +40,6 @@ templates: cpp_templates: includes: ['#include <gnuradio/blocks/null_source.h>'] declarations: 'blocks::null_source::sptr ${id};' - make: 'this->${id} = blocks::null_source::make(${type.size})*${vlen});' - translations: - gr.sizeof_: 'sizeof(' + make: 'this->${id} = blocks::null_source::make(${type.size}*${vlen});' file_format: 1 diff --git a/gr-blocks/grc/blocks_patterned_interleaver.block.yml b/gr-blocks/grc/blocks_patterned_interleaver.block.yml index af13c01f65..6ef1cd6666 100644 --- a/gr-blocks/grc/blocks_patterned_interleaver.block.yml +++ b/gr-blocks/grc/blocks_patterned_interleaver.block.yml @@ -44,7 +44,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/patterned_interleaver.h>'] declarations: 'blocks::patterned_interleaver::sptr ${id};' make: 'this->${id} = blocks::patterned_interleaver::make(${type.size}*${vlen}, ${pattern});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_probe_rate.block.yml b/gr-blocks/grc/blocks_probe_rate.block.yml index 6cfa4ab616..4456d269fb 100644 --- a/gr-blocks/grc/blocks_probe_rate.block.yml +++ b/gr-blocks/grc/blocks_probe_rate.block.yml @@ -46,7 +46,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/probe_rate.h>'] declarations: 'blocks::probe_rate::sptr ${id};' make: 'this->${id} = blocks::probe_rate::make(${type.size}*${vlen}, ${mintime}, ${alpha});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_repeat.block.yml b/gr-blocks/grc/blocks_repeat.block.yml index 8a961d2672..c683be08df 100644 --- a/gr-blocks/grc/blocks_repeat.block.yml +++ b/gr-blocks/grc/blocks_repeat.block.yml @@ -45,7 +45,5 @@ cpp_templates: make: 'this->${id} = blocks::repeat::make(${type.size}*${vlen}, ${interp});' callbacks: - set_interpolation(${interp}) - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_selector.block.yml b/gr-blocks/grc/blocks_selector.block.yml index 5470c7d150..86a009e6e9 100644 --- a/gr-blocks/grc/blocks_selector.block.yml +++ b/gr-blocks/grc/blocks_selector.block.yml @@ -86,7 +86,6 @@ cpp_templates: - set_input_index(${input_index}) - set_output_index(${output_index}) translations: - gr.sizeof_: 'sizeof(' 'True': 'true' 'False': 'false' diff --git a/gr-blocks/grc/blocks_skiphead.block.yml b/gr-blocks/grc/blocks_skiphead.block.yml index 2fa3928d00..8e7099e915 100644 --- a/gr-blocks/grc/blocks_skiphead.block.yml +++ b/gr-blocks/grc/blocks_skiphead.block.yml @@ -42,7 +42,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/skiphead.h>'] declarations: 'blocks::skiphead::sptr ${id};' make: 'this->${id} = blocks::skiphead::make(${type.size}*${vlen}, ${num_items});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_stream_mux.block.yml b/gr-blocks/grc/blocks_stream_mux.block.yml index 80eb59eb0e..7b03166bfd 100644 --- a/gr-blocks/grc/blocks_stream_mux.block.yml +++ b/gr-blocks/grc/blocks_stream_mux.block.yml @@ -50,7 +50,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/stream_mux.h>'] declarations: 'blocks::stream_mux::sptr ${id};' make: 'this->${id} = blocks::stream_mux::make(${type.size}*${vlen}, ${lengths});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_stream_to_streams.block.yml b/gr-blocks/grc/blocks_stream_to_streams.block.yml index ebfbafb12d..13980f7e4b 100644 --- a/gr-blocks/grc/blocks_stream_to_streams.block.yml +++ b/gr-blocks/grc/blocks_stream_to_streams.block.yml @@ -45,7 +45,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/stream_to_streams.h>'] declarations: 'blocks::stream_to_streams::sptr ${id};' make: 'this->${id} = blocks::stream_to_streams::make(${type.size}*${vlen}, ${num_streams});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_stream_to_tagged_stream.block.yml b/gr-blocks/grc/blocks_stream_to_tagged_stream.block.yml index 950efd6eb3..a17a7b156d 100644 --- a/gr-blocks/grc/blocks_stream_to_tagged_stream.block.yml +++ b/gr-blocks/grc/blocks_stream_to_tagged_stream.block.yml @@ -48,7 +48,5 @@ cpp_templates: callbacks: - set_packet_len(${packet_len}) - set_packet_len_pmt(${packet_len}) - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_streams_to_stream.block.yml b/gr-blocks/grc/blocks_streams_to_stream.block.yml index 3fa6cfda03..3c0f07bb58 100644 --- a/gr-blocks/grc/blocks_streams_to_stream.block.yml +++ b/gr-blocks/grc/blocks_streams_to_stream.block.yml @@ -45,7 +45,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/streams_to_stream.h>'] declarations: 'blocks::streams_to_stream::sptr ${id};' make: 'this->${id} = blocks::streams_to_stream::make(${type.size}*${vlen}, ${num_streams});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_streams_to_vector.block.yml b/gr-blocks/grc/blocks_streams_to_vector.block.yml index baf0c1b5eb..67cfb09221 100644 --- a/gr-blocks/grc/blocks_streams_to_vector.block.yml +++ b/gr-blocks/grc/blocks_streams_to_vector.block.yml @@ -45,7 +45,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/streams_to_vector.h>'] declarations: 'blocks::streams_to_vector::sptr ${id};' make: 'this->${id} = blocks::streams_to_vector::make(${type.size}*${vlen}, ${num_streams});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_tag_debug.block.yml b/gr-blocks/grc/blocks_tag_debug.block.yml index 17ec9275e7..d325025636 100644 --- a/gr-blocks/grc/blocks_tag_debug.block.yml +++ b/gr-blocks/grc/blocks_tag_debug.block.yml @@ -62,7 +62,6 @@ cpp_templates: callbacks: - set_display(${display}) translations: - gr.sizeof_: 'sizeof(' 'True': 'true' 'False': 'false' diff --git a/gr-blocks/grc/blocks_tag_gate.block.yml b/gr-blocks/grc/blocks_tag_gate.block.yml index 9b8198282e..d593ba967a 100644 --- a/gr-blocks/grc/blocks_tag_gate.block.yml +++ b/gr-blocks/grc/blocks_tag_gate.block.yml @@ -56,7 +56,6 @@ cpp_templates: callbacks: - self.${id}.set_single_key(${single_key}) translations: - gr.sizeof_: 'sizeof(' 'True': 'true' 'False': 'false' diff --git a/gr-blocks/grc/blocks_tag_share.block.yml b/gr-blocks/grc/blocks_tag_share.block.yml index 03bd3f981e..0bc0c86d73 100644 --- a/gr-blocks/grc/blocks_tag_share.block.yml +++ b/gr-blocks/grc/blocks_tag_share.block.yml @@ -50,7 +50,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/tag_share.h>'] declarations: 'blocks::tag_share::sptr ${id};' make: 'this->${id} = blocks::tag_share::make(${io_type.size}, ${share_type.size}, ${vlen});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_tagged_file_sink.block.yml b/gr-blocks/grc/blocks_tagged_file_sink.block.yml index fd1b884b69..25e6d9e676 100644 --- a/gr-blocks/grc/blocks_tagged_file_sink.block.yml +++ b/gr-blocks/grc/blocks_tagged_file_sink.block.yml @@ -37,7 +37,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/tagged_file_sink.h>'] declarations: 'blocks::tagged_file_sink::sptr ${id};' make: 'this->${id} = blocks::tagged_file_sink::make(${type.size}*${vlen}, ${samp_rate});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_tagged_stream_align.block.yml b/gr-blocks/grc/blocks_tagged_stream_align.block.yml index cfe7680603..1f050ab366 100644 --- a/gr-blocks/grc/blocks_tagged_stream_align.block.yml +++ b/gr-blocks/grc/blocks_tagged_stream_align.block.yml @@ -39,7 +39,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/tagged_stream_align.h>'] declarations: 'blocks::tagged_stream_align::sptr ${id};' make: 'this->${id} = blocks::tagged_stream_align::make(${type.size}*${vlen}, ${lengthtagname});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_tagged_stream_multiply_length.block.yml b/gr-blocks/grc/blocks_tagged_stream_multiply_length.block.yml index 58543117df..3926b5c787 100644 --- a/gr-blocks/grc/blocks_tagged_stream_multiply_length.block.yml +++ b/gr-blocks/grc/blocks_tagged_stream_multiply_length.block.yml @@ -51,7 +51,5 @@ cpp_templates: ${c});' callbacks: - set_scalar(${c}) - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_tagged_stream_mux.block.yml b/gr-blocks/grc/blocks_tagged_stream_mux.block.yml index 5e79892957..5d228513e6 100644 --- a/gr-blocks/grc/blocks_tagged_stream_mux.block.yml +++ b/gr-blocks/grc/blocks_tagged_stream_mux.block.yml @@ -48,7 +48,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/tagged_stream_mux.h>'] declarations: 'blocks::tagged_stream_mux::sptr ${id};' make: 'this->${id} = blocks::tagged_stream_mux::make(${type.size}*${vlen}, ${lengthtagname}, ${tag_preserve_head_pos});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 diff --git a/gr-blocks/grc/blocks_tcp_server_sink.block.yml b/gr-blocks/grc/blocks_tcp_server_sink.block.yml index 110b49fb9c..4069be8588 100644 --- a/gr-blocks/grc/blocks_tcp_server_sink.block.yml +++ b/gr-blocks/grc/blocks_tcp_server_sink.block.yml @@ -45,7 +45,6 @@ cpp_templates: declarations: 'blocks::tcp_server_sink::sptr ${id};' make: 'this->${id} = blocks::tcp_server_sink::make(${type.size}*${vlen}, ${ipaddr}, ${port}, ${noblock});' translations: - gr.sizeof_: 'sizeof(' 'True': 'true' 'False': 'false' diff --git a/gr-blocks/grc/blocks_throttle.block.yml b/gr-blocks/grc/blocks_throttle.block.yml index 3ea220ea6d..8d29f1107f 100644 --- a/gr-blocks/grc/blocks_throttle.block.yml +++ b/gr-blocks/grc/blocks_throttle.block.yml @@ -48,11 +48,10 @@ templates: cpp_templates: includes: ['#include <gnuradio/blocks/throttle.h>'] declarations: 'blocks::throttle::sptr ${id};' - make: 'this->${id} = blocks::throttle::make(${type.size})*${vlen}, ${samples_per_second}, ${ignoretag});' + make: 'this->${id} = blocks::throttle::make(${type.size}*${vlen}, ${samples_per_second}, ${ignoretag});' callbacks: - set_sample_rate(${samples_per_second}) translations: - gr.sizeof_: 'sizeof(' 'True': 'true' 'False': 'false' diff --git a/gr-blocks/grc/blocks_udp_sink.block.yml b/gr-blocks/grc/blocks_udp_sink.block.yml index b93478b90b..3afcc44845 100644 --- a/gr-blocks/grc/blocks_udp_sink.block.yml +++ b/gr-blocks/grc/blocks_udp_sink.block.yml @@ -48,7 +48,6 @@ cpp_templates: declarations: 'blocks::udp_sink::sptr ${id};' make: 'this->${id} = blocks::udp_sink::make(${type.size}*${vlen}, ${ipaddr}, ${port}, ${psize}, ${eof});' translations: - gr.sizeof_: 'sizeof(' 'True': 'true' 'False': 'false' diff --git a/gr-blocks/grc/blocks_udp_source.block.yml b/gr-blocks/grc/blocks_udp_source.block.yml index 84babb3c07..45e7bf7db7 100644 --- a/gr-blocks/grc/blocks_udp_source.block.yml +++ b/gr-blocks/grc/blocks_udp_source.block.yml @@ -50,7 +50,6 @@ cpp_templates: declarations: 'blocks::udp_source::sptr ${id};' make: 'this->${id} = blocks::udp_source::make(${type.size}*${vlen}, ${ipaddr}, ${port}, ${psize}, ${eof});' translations: - gr.sizeof_: 'sizeof(' 'True': 'true' 'False': 'false' diff --git a/gr-blocks/grc/blocks_vector_to_streams.block.yml b/gr-blocks/grc/blocks_vector_to_streams.block.yml index 5ffafd6abf..7934c33bc2 100644 --- a/gr-blocks/grc/blocks_vector_to_streams.block.yml +++ b/gr-blocks/grc/blocks_vector_to_streams.block.yml @@ -45,7 +45,5 @@ cpp_templates: includes: ['#include <gnuradio/blocks/vector_to_streams.h>'] declarations: 'blocks::vector_to_streams::sptr ${id};' make: 'this->${id} = blocks::vector_to_streams::make(${type.size}*${vlen}, ${num_streams});' - translations: - gr.sizeof_: 'sizeof(' file_format: 1 |