summaryrefslogtreecommitdiff
path: root/gr-utils/python
diff options
context:
space:
mode:
authorTerry May <terrydmay@gmail.com>2019-11-28 21:03:02 -0500
committerMartin Braun <martin.braun@ettus.com>2020-01-02 14:15:18 -0800
commit85239e9f9d44748e1da48c1838be0c7c4beff9e7 (patch)
tree05ee5de97a389bea54bee654d64dd8c8c24f5ead /gr-utils/python
parent1690b1e9465d32d6c87befe70af16a61fdb79d58 (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-utils/python')
0 files changed, 0 insertions, 0 deletions