On Thu, Apr 19, 2018 at 02:11:45PM +0200, Dominique Pellé wrote: > I'm with Bram here. We'll end up having b_str[] on Linux & macOS > and b_str[1] on more exotic platforms (e.g. HPUX compiler). There might > subtle differences in behavior somewhere as a result, and since we > mostly test on platforms with modern compilers, we may leak bugs on > exotic/old platforms which don't have valgrind or asan, It's safer if code > is the same on all platforms, as much as possible, even if it means > that we cannot use nice C99 features sadly.
Also, most of the places that Vim uses this sort of functionality isn't actually valid for flexible arrays. Struct with flexible arrays can't be contained in arrays or in other structs, and Vim does at least the latter in a number of places. Cheers, -- James GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
