Indeed, making fmemopen and open_memstream optional would be better. open_memstream creates a write-only stream, so I reopen the buffer with fmemopen to read from it. fmemopen can also be used for writing, but it requires a fixed-size buffer compared to open_memstream. From what I can see in Qt's docs, Qt for WebAssembly is essentially Qt for Emscripten and is designed to run in browsers. WASI's graphics APIs are still in an early stage, and no mainstream runtime supports them, unlike Emscripten,...
wasi-sdk would be a good start, rather than installing another distro. It is a prebuilt bundle providing latest clang, wasi-libc and wasi-compiler-rt. I don't have much experience in Emscripten, but from what I know, Emscripten and WASI are two platforms (wasm32-emscripten and wasm32-wasi for compilers), providing different libc for Wasm. Wasm is more like a common architecture. WASI is also a set of system APIs designed to make more apps run anywhere including browsers/machines/servers. It provides...
Add WASI platform support
850d0b breaks the build with --disable-plugins
Thank you for the fix. By the way, there are some HAVE_WINEDITLINE in the codebase, but it doesn't seem to be in any config files. Does gnuplot actually support it? src/history.c 301:#if defined(READLINE) || defined(HAVE_WINEDITLINE) src/gp_hist.h 52:#elif defined(HAVE_LIBEDITLINE) || defined(HAVE_WINEDITLINE) 53-/* NetBSD editline / WinEditLine src/syscfg.h 373:#if defined(READLINE) || defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDITLINE) || defined(HAVE_WINEDITLINE)
improve `show plot` behavior when there is no previous plot
correct istart in `write_history_list`
improve history file support