|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|