Commit Graph

390 Commits

Author SHA1 Message Date
vsc
6f8b90b131 fix \nl in strings.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@740 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-13 13:13:54 +00:00
vsc
136af18cb0 new scanner.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@736 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-08 16:45:35 +00:00
vsc
e2edae71c7 cleanup: typecast to yamop * instead of CODEADDR wherever possible.
Fix integer(233333833838383) fails bug (Roberto Bagnara).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@733 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-27 16:53:09 +00:00
vsc
8b867ea4de new builtins: nth_clause, nth_instance.
allow clause/3 on static predicates.
predicate_property(P,number_of_clauses(N)).
improve profiling code.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@728 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-13 20:00:41 +00:00
vsc
910e50d980 some_recordedp never gets a third argument bound
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@726 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-11 16:08:35 +00:00
vsc
696fdc338b start working on configure support for vc
WIN should always disable buffering on stderr
fix some warnings in ypsocks
do some cleanups in save.c


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@722 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-10 19:08:25 +00:00
vsc
52f4eb1895 protect <readline/readline.h>
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@721 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-10 14:44:47 +00:00
vsc
00886e5205 key_statistics/3
disable stack dump by default: yap_flags(stack_dump,_).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@720 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-10 14:36:22 +00:00
vsc
8bccb86a43 do some more checking and document.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@719 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-10 00:32:22 +00:00
vsc
01d2448b34 allow recorded(X,Y,Key_Bound).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@718 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-10 00:22:01 +00:00
vsc
1db1bb484e make lcc happy.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@717 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-06 20:03:26 +00:00
vsc
13e409c659 More Yap_ fixes.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@716 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-03 06:06:44 +00:00
vsc
5b2faebb9d Yapor and normal system use same or_last
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@710 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-01 04:14:41 +00:00
vsc
7e5b706936 extra array functionality
fix YAPOr compilation.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@708 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-26 22:28:32 +00:00
vsc
2c9190dee8 Try to make plwrite reentrant by getting rid of (some) global
variables.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@700 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-20 20:00:56 +00:00
vsc
e133c87b3b fix cycle when outputting a choicepoint for retry_c.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@699 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-20 19:25:45 +00:00
vsc
4e727b2f34 get rid of annoying debugging message.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@697 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-20 15:04:37 +00:00
vsc
1530bf21ed compiler should check for variables first!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@694 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-20 05:17:26 +00:00
vsc
bf37b29b4b better handling for scanning errors;
make Yap_error_output a global variable.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@693 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-19 17:10:45 +00:00
vsc
d7f80ea1ad Stasinos noticed that _YAP_ breaks C standard: use Yap_ instead.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@691 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-18 18:18:05 +00:00
stasinos
735c5bed1c FileNameBuf is now _YAP_FileNameBuf
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@688 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-14 17:33:37 +00:00
stasinos
a4808d86da _YAP_RecoverSlots() and YAP_RecoverSlots() return void
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@687 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-14 17:32:08 +00:00
vsc
81716ef31f WIN32 support updates and some fixes.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@685 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-12 19:53:52 +00:00
stasinos
9cfd0deeab all global symbols should now start with _YAP
add the T formatting control sequence for debugging the
internal representation of terms


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@684 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-12 10:29:31 +00:00
vsc
6c626484f0 fix module stuff (at last)
debugger should call goal_expansion in spycalls.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@679 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-12 00:33:48 +00:00
vsc
8c8a7c02ee move inline callables to their own space.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@676 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-11 17:40:31 +00:00
vsc
7b2c4dc6ff all global symbols should now start with _YAP
global functions should not be called from within file (bug in
binutils/WIN32).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@675 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-11 17:38:10 +00:00
vsc
a282a4e7c1 get rid of annoying debugging message.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@667 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-31 00:32:08 +00:00
vsc
e7a8249e02 search for trail fault was broken.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@666 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-30 20:30:16 +00:00
vsc
bbeb11f0d0 oops, -l was broken.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@665 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-30 20:23:27 +00:00
vsc
8ac94c1d88 cleanup restore: use same code for check_saved_state and for actual
restore, tell exact path of file, try several files even if first one is
corrupt.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@664 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-30 17:27:19 +00:00
vsc
6d8c592775 fix garbage collection for delays (report from Bart Demoen).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@663 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-29 17:23:32 +00:00
vsc
6a4f06cde6 don't forget that gc may not give you all the space you want the first
time: stdpreds.c


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@660 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-29 04:19:09 +00:00
vsc
36a9f180c3 fix overflow bugs in parser and scanner: check if we have space
before we start writing!


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@658 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-29 03:10:00 +00:00
vsc
8d9d9cb4d5 optimise tail recursion when compiling lists.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@657 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-28 20:01:53 +00:00
vsc
e7fc4d0059 If parser overflows in local stack, expand global with
scanned terms.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@656 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-28 20:00:59 +00:00
vsc
ad552d04b4 avoid recursive calls while parsing lists.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@655 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-28 17:46:55 +00:00
vsc
7f4fdb1652 don't debug (a,b), debug a and then b.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@652 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-23 21:43:55 +00:00
vsc
ead95fb0d4 fix warnings;
improve SIGINT handling if !isastty


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@651 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-23 20:55:37 +00:00
vsc
95e6dea185 respect prefix option in WIN32
check for rint in configure and use
a simple hack to replace it if needed.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@650 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-23 17:10:33 +00:00
vsc
593162243d check for overflows while building large constants (atom_chars and
friends).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@648 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-22 04:00:11 +00:00
vsc
5fd92de03b further support for threads.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@647 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-22 03:45:24 +00:00
vsc
5a5c674300 disable stack shifting and garbage collection in the presence of
multiple threads.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@646 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-21 22:52:36 +00:00
vsc
0351b9f0ab make --enable-threads work on CVS release.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@645 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-21 22:14:29 +00:00
vsc
a721ad3e27 more of the same module fixes.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@643 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-18 14:52:58 +00:00
vsc
d21021da0d get rid of UnCutable
a:(a(X),b(X)) should be the same as a:a(X), a:b(X). Use PushModPred to
force that.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@642 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-18 13:54:53 +00:00
vsc
b1b021d168 make it linux compatible again.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@640 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-17 03:42:14 +00:00
vsc
a1edbf5b9c WIN32 fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@639 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-17 01:37:46 +00:00
vsc
4a71cbda80 fix retry_head to work correctly if the argument is dereferenced.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@638 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-17 00:48:52 +00:00
vsc
153b2cb2a3 YAP would break when gc was called from portray:
always save arguments before calling plwrite with possible portray
 only do it for portray because plwrite may be called from unsafe environments
 make Slot machinery mainstream.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@637 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-17 00:05:29 +00:00