Replace array by pointer allocation for MSVC
Fixed by 6af1bda4 (Ethan Merritt) - thanks!
Since you asked for C99 compliance: MSVC is complinat to C11 and C17, but there is no plan to support variable length arrays, used in this newly added code, due to security concerns (see https://devblogs.microsoft.com/cppblog/c11-and-c17-standard-support-arriving-in-msvc/#variable-length-arrays).
As you asked for C99 compliance: MSVC is complinat to C11 and C17, but there is no plan to support variable length arrays, used in this newly added code, due to security concerns (see https://devblogs.microsoft.com/cppblog/c11-and-c17-standard-support-arriving-in-msvc/#variable-length-arrays).
Corrected the allocation size and added the missing free(). This is the most current MSVC compiler (2022 v 17.6.5) which errors out at this newly added code. I found no other problems elsewhwere in the code (monthly runs at https://github.com/AlexanderTaeschner/gnuplot).
Replace array by pointer allocation for MSVC
Fix typo and missing cast in winmain.c
First of all, thank you for this very good software! I have one enhancement request:...