trealla-prolog / trealla

A compact, efficient Prolog interpreter written in plain-old C.
MIT License
268 stars 13 forks source link

Use libc qsort_r for WASI build (re: #575) #576

Closed guregu closed 2 months ago

guregu commented 2 months ago

This fixes the clpz issues for the wasm build outlined in #575. The qsort_r built into wasi-libc seems to do the trick.

I added nodecmp_ because some wasm runtimes will get mad if you pass a function pointer with too few arguments, wasn't sure what to call it.

infradig commented 2 months ago

Good work.