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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user