Menu

Commit [r7970]  Maximize  Restore  History

Changed slightly handling of exported predicates when loading a module.

The new psc record for an exported predicate has, for a long time, been
added to usermod, so that after consulting a module, the user can directly
call it from the top-level. But if there previously was a psc record
for the same-named predicate already in usermod, it would be lost, and so
calls to "that" psc record will not be found. So I changed it so that
old usermod psc record now branches to the ep of the newly added psc record
so it works as expected. I used the import_as mechanism to get this done.

dwarren 2014-05-06

changed /trunk/XSB/emu/loader_xsb.c
changed /trunk/XSB/emu/psc_xsb.c
changed /trunk/XSB/emu/psc_xsb.h
/trunk/XSB/emu/loader_xsb.c Diff Switch to side-by-side view
Loading...
/trunk/XSB/emu/psc_xsb.c Diff Switch to side-by-side view
Loading...
/trunk/XSB/emu/psc_xsb.h Diff Switch to side-by-side view
Loading...