Closed kamahen closed 1 year ago
Possibly we should make some of the low-level functions of pl-wic.c public (as PL_*). I.e., we do have the stuff for saving atoms and integers there that takes care of all issues related to that, such as encoding, big/little endian, different sizes, etc. Maybe just for atoms and integers? That should probably already gets us far.
This requires the changes to SWI-Prolog.h in https://github.com/SWI-Prolog/swipl-devel/pull/1119