[Vorbis-dev] tremor lowmem branch, need advice for C99 variable-length arrays
Ozkan Sezer
sezeroz at gmail.com
Tue Mar 30 14:41:51 UTC 2021
Hello:
I attempted porting Tremor lowmem branch to use C99 variable-length
arrays, and it works for me. See the attached two patches:
- 0001-scope.patch: tweaks alloca() scope a little:
Can anyone see any gotchas, any adverse effects I may have missed?
- 0002-vla.patch: ports to C99 VLAs as an option with alloca() still
being the default: Comments?
I am not happy with the solution I used in mapping_inverse(), but
it was the only solution I could find. Can anyone propose something
better?
Thanks.
--
O.S.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-scope.patch
Type: text/x-patch
Size: 7402 bytes
Desc: not available
URL: <http://lists.xiph.org/pipermail/vorbis-dev/attachments/20210330/f5e3b86e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-vla.patch
Type: text/x-patch
Size: 8758 bytes
Desc: not available
URL: <http://lists.xiph.org/pipermail/vorbis-dev/attachments/20210330/f5e3b86e/attachment-0001.bin>
More information about the Vorbis-dev
mailing list