compose: drop the 65535 node limit (#343)
authoralois31 <36605164+alois31@users.noreply.github.com>
Mon, 15 May 2023 12:23:16 +0000 (14:23 +0200)
committerGitHub <noreply@github.com>
Mon, 15 May 2023 12:23:16 +0000 (15:23 +0300)
commitf3210cbf27c79ed4294f85271476c6433446102f
tree7b9ee914d49059cd94187940b16b86821cf15b53
parent64aaa7cda29196a9142dc8785c29201468429fe8
compose: drop the 65535 node limit (#343)

In commit 1638409b22aef33d487863876ab214b949db4984, the number of
compose nodes was limited to 65535 to enable "future optimizations",
which apparently means slightly reduced memory usage due to fitting in
a uint16_t. At this time, it was mentioned that the author was not
aware of "any compose files which come close".

However, I'm one of the users that actually do require a larger number
of nodes for their compose file. Thus, use a uint32_t again and raise
the limit significantly.
src/compose/parser.c
src/compose/state.c
src/compose/table.h