add Yap_ReadBuffer
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1064 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -105,13 +105,11 @@ static FILE *bootfile;
|
||||
static int eof_found = FALSE;
|
||||
static int yap_lineno = 0;
|
||||
|
||||
#ifdef DEBUG
|
||||
static void
|
||||
myputc (int ch)
|
||||
{
|
||||
putc(ch,stderr);
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
mygetc (void)
|
||||
@@ -532,6 +530,11 @@ exec_top_level(int BootMode, YAP_init_args *iap)
|
||||
*/
|
||||
livegoal = YAP_FullLookupAtom("$live");
|
||||
atomfalse = YAP_MkAtomTerm (YAP_FullLookupAtom("$false"));
|
||||
{
|
||||
YAP_Term t = YAP_ReadBuffer("a(1)",NULL);
|
||||
if (t)
|
||||
YAP_Write(t,myputc,0);
|
||||
}
|
||||
while (YAP_GetValue (livegoal) != atomfalse) {
|
||||
YAP_Reset();
|
||||
do_top_goal (YAP_MkAtomTerm (livegoal));
|
||||
|
Reference in New Issue
Block a user