From sezeroz at gmail.com Tue Mar 30 14:41:51 2021 From: sezeroz at gmail.com (Ozkan Sezer) Date: Tue, 30 Mar 2021 17:41:51 +0300 Subject: [Vorbis-dev] tremor lowmem branch, need advice for C99 variable-length arrays Message-ID: 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0002-vla.patch Type: text/x-patch Size: 8758 bytes Desc: not available URL: