Minor code cleanup of the SWI-Prolog adapter file