barectf.c.j2: do not pass useless parameters to _ev_size_*() functions
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 3 Sep 2020 15:48:48 +0000 (11:48 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 3 Sep 2020 15:48:48 +0000 (11:48 -0400)
commitb622b24f5f229369a2645ec12006b829b50c062d
tree82f6798169d9e0c4ed96cd32089aeba29a2537a4
parent1960170e6a7abdf29f4097bfac9355bfc88a4e29
barectf.c.j2: do not pass useless parameters to _ev_size_*() functions

This patch changes _CodeGen._proto_params_str() in `gen.py` to accept a
`only_dyn` parameter. When `only_dyn` is `True`, then the function only
generates function prototype parameter strings for field types which
have a dynamic size (string field types, as of this version).

This patch also changes the ft_call_params() macro to add an `only_dyn`
parameter which serves the same purpose.

The purpose of this is not calling the _ev_size_*() functions with
parameters which correspond to statically-sized field types.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/cgen.py
barectf/templates/c/barectf.c-macros.j2
barectf/templates/c/barectf.c.j2
This page took 0.023545 seconds and 4 git commands to generate.