improve CLP(BN)/BNT interface

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1918 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2007-08-06 14:55:43 +00:00
parent ba761e7a47
commit 66d14116dd
12 changed files with 351 additions and 41 deletions

View File

@@ -333,6 +333,7 @@ write_var(CELL *t, struct write_globs *wglb)
/* make sure we don't get no creepy spaces where they shouldn't be */
lastw = separator;
if (CellPtr(t) < H0) {
Int vcount = (H0-t)/(sizeof(attvar_record)/sizeof(CELL));
#if COROUTINING
#if DEBUG
if (Yap_Portray_delays) {
@@ -365,7 +366,7 @@ write_var(CELL *t, struct write_globs *wglb)
}
#endif
wrputc('D', wglb->writewch);
wrputn((Int) ((attvar_record *)H0-(attvar_record *)t),wglb->writewch);
wrputn(vcount,wglb->writewch);
#endif
} else {
wrputn(((Int) (t- H0)),wglb->writewch);