[issue44049] Use C99 Variable-length array if possible

2021-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue44049] Use C99 Variable-length array if possible

2021-05-05 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue44049] Use C99 Variable-length array if possible

2021-05-05 Thread Dong-hee Na
Dong-hee Na added the comment: > Also, on a minor note, we use a restricted set of c99 supported by all > compilers so we would need to check if this is supported in all of them Ah, I notice that msvc does not support VLA (Sorry, I am not using Windows machine for 5 years +) Using a C99/C11

[issue44049] Use C99 Variable-length array if possible

2021-05-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the suggestion! Unfortunately I am not very convinced since we already have the self imposed limitation for the maximum size of the string (this is to limit the execution time and memory) so there is no point of allowing bigger buffers. Als

[issue44049] Use C99 Variable-length array if possible

2021-05-05 Thread Dong-hee Na
New submission from Dong-hee Na : I had a chance to read Python/suggestion.c and I can notice that we use the static declared size of the array. Since we live in the C99 era and the CPython codebase already uses C99(struct initialization is a good example), how about using the C99 feature if