pidl: calculate subcontext_size only once per pull
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 28 Dec 2023 10:07:56 +0000 (23:07 +1300)
committerJule Anger <janger@samba.org>
Mon, 12 Feb 2024 10:53:13 +0000 (10:53 +0000)
commitf8014cae2ebebd1364806e92d6a0c19ace4c7789
treea693a52579c37505fe0277aa4f149f1f4aa6a860
parentb5289d66e9ed6f95419b908f005c14c3afe42528
pidl: calculate subcontext_size only once per pull

For security_ace_coda in security.idl, the sub-context size is
involves a slightly non-trivial function call which returns a constant
value.

In all other cases, a constant expression is used, and this makes
no difference.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15574
(cherry picked from commit 9811762775b28e16035afb2c319b55c4bf3699d3)
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm