Commit Graph

3913 Commits

Author SHA1 Message Date
vsc
5cacbd8f2a garbage collector might release space still in use.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1543 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-02-14 17:20:49 +00:00
vsc
46f90fc6aa fix register recovery after ^c on Macs
fix 64 bit complaints.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1542 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-02-13 16:58:55 +00:00
tiagosoares
fbcfdb49a9 MYDDAS: Myddas Top Level for MySQL and Datalog
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1537 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-02-08 17:29:55 +00:00
tiagosoares
8b5e4a267c MYDDAS: Top Level Functionality
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1535 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-02-05 02:26:35 +00:00
tiagosoares
8012773ae1 MYDDAS: Top Level Functionality
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1534 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-02-05 02:19:15 +00:00
vsc
b6b8366698 Huge atoms in scanner may generate heap overflow.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1532 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-02-01 13:58:30 +00:00
vsc
9e697d5bee bignum support fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1531 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-02-01 13:28:57 +00:00
vsc
7fa3e86284 avoid compilation issues with lack of gmp (Remko Troncon)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1528 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-26 19:13:24 +00:00
vsc
745fed2679 avoid sideffects from MkBigInt
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1524 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-18 15:34:54 +00:00
vsc
1c77e3cf32 same problem: double free on bignums
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1523 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-18 06:09:18 +00:00
vsc
3f20b8d418 fix GMP
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1522 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-18 06:02:02 +00:00
tiagosoares
54595ec094 MyDDAS: Changed MyDDAS internal structure
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1521 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-17 22:54:02 +00:00
vsc
2cc076bb10 don't pass pointers to mpz_t
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1518 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-17 14:53:20 +00:00
vsc
9618c90255 YENV may be an HW register (breaks some tabling code)
All YAAM instructions are now brackedted, so Op introduced an { and EndOp introduces an }. This is because Ricardo assumes that.
Fix attvars when COROUTING is undefined.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1516 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-17 14:10:42 +00:00
vsc
3715f1b1d7 fix bug with very large integers
fix bug where indexing code was looking at code after a cut.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1513 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-16 02:57:52 +00:00
vsc
331d0d8511 *** empty log message ***
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1504 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-08 23:01:47 +00:00
vsc
8e15cd2bcf FIX GMPless compilation.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1500 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-08 03:23:07 +00:00
vsc
b881f59a71 fix small bug in attvar handling.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1498 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-08 03:12:02 +00:00
vsc
a4b85e2abd more fixes to get_attributes.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1497 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-07 02:12:32 +00:00
vsc
17d45689c9 fix non-GMP bugs
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1496 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-04 11:18:45 +00:00
vsc
bde8a59cec module with all attrs voided is module with no atts.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1495 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-04 03:47:49 +00:00
vsc
772a6ae805 fixes to reclaim space on error, allow compilation whitout GMP, and
improve docs.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1493 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-02 23:19:10 +00:00
vsc
72214cb08c fix interface and docs
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1492 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-02 03:35:45 +00:00
vsc
2d4d1f1ea8 cannot release space from external GMPs.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1491 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-02 02:25:45 +00:00
vsc
e10213929a support new interface between YAP and GMP, so that we don't rely on our own
allocation routines.
Several big fixes.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1490 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-02 02:16:19 +00:00
vsc
f5002fa37f updates to gprof
support for __POWER__
Try to saveregs before longjmp.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1485 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-23 00:20:14 +00:00
tiagosoares
208237d667 MyDDAS: Support for cleaning some of the Relational DataBase junk when Yap exits
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1484 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-19 13:52:35 +00:00
vsc
b52c6d333e fix bad handling of undef warning
fix exporting module in use_module([_|_],_).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1480 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-18 17:12:33 +00:00
vsc
8996daa7c8 move event profiler outside from stdpreds.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1478 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-17 03:26:38 +00:00
vsc
60d79804fe major changes to support online event-based profiling
improve error discovery and restart on scanner.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1477 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-17 03:25:39 +00:00
vsc
fb399932e4 make heap gc concurrent between threads.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1476 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-07 17:53:30 +00:00
vsc
147c2cee15 improve error handling during garbage collection.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1475 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-07 12:55:31 +00:00
vsc
5c2e06ad50 write_depth/3
overflow handlings and garbage collection
Several ipdates to CLPBN
dif/2 could be broken in the presence of attributed variables.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1474 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-05 17:16:12 +00:00
vsc
868f236185 fix bug where integers might be made up atoms (within gc).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1473 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-03 03:03:18 +00:00
vsc
4157f2ce61 improvements to debugger
overflow fixes
reading attvars from DB was broken.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1472 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-26 02:57:25 +00:00
tiagosoares
da4e302b28 removed some compilation warnings related to the cut-c code
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1471 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-24 15:35:29 +00:00
vsc
681717eecb cleanups in OS interface predicates.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1469 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-23 13:24:00 +00:00
vsc
a1c99a72a1 more fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1468 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-23 12:09:50 +00:00
vsc
10ae3840c9 fix several bugs in save/restore.b
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1467 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-23 03:01:33 +00:00
vsc
03c1edcc90 fix parser overflow bug: vars should be reset even when addresses would not
change.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1466 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-22 12:42:39 +00:00
tiagosoares
253f5e7f9a support for the MyDDAS interface library
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1465 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-22 11:25:59 +00:00
vsc
0e6cb326da fix NULL when using ~d to write negative numbers
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1464 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-21 12:34:07 +00:00
tiagosoares
83b5a160f8 support for executing c code when a cut occurs
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1463 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-18 18:52:41 +00:00
vsc
d62ec41632 thread support fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1462 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-17 13:40:18 +00:00
vsc
7cd5cafe1c fix op search code.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1461 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-16 02:45:48 +00:00
vsc
4d34b03726 remove debugging case
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1460 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-16 02:13:26 +00:00
vsc
db16d32668 minor fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1459 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-16 02:01:09 +00:00
vsc
4c0865ca37 more tabling fixes
use malloc when AllocCodeSpace fails
use snprintf when available.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1458 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-16 01:55:03 +00:00
vsc
e021bef90d fix converting long long to BigInt/Int
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1457 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-15 02:05:49 +00:00
vsc
5680364300 fixes for stack expansion and garbage collection under tabling.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1456 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-15 00:50:49 +00:00
vsc
f300bb7cb4 fix .0002 in new ~D
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1455 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-13 09:49:18 +00:00
vsc
fe36f4f441 simplify ~d and ~D.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1454 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-13 02:43:52 +00:00
vsc
e7baf404d2 allow printing bigints as ~D
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1453 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-13 01:58:11 +00:00
vsc
3cf7a1f59a fix format('~2D',[0]).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1452 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-10 12:59:21 +00:00
vsc
01de9c0b38 fixed ~D of 0
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1451 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-10 12:10:58 +00:00
vsc
edbebec3c8 more format fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1450 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-10 01:55:12 +00:00
vsc
90e2f0360f ^C was very broken: break was not accepted, and debug,
trace and statistics did not work at all.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1448 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-09 18:02:53 +00:00
vsc
592517f09d fix format bug
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1447 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-09 00:46:53 +00:00
vsc
24f967c9f5 fix fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1446 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-08 13:57:41 +00:00
vsc
c13d5d2655 fix memory leak in scanner
instrument memory allocation with default_malloc


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1445 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-08 13:51:15 +00:00
vsc
5b4773d923 fix bugs in garbage collection of tabling.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1444 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-07 15:35:47 +00:00
vsc
7aef2d7426 get rid of unnecessary ^ in setof
Found bug in comparisons


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1442 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-05 03:02:33 +00:00
vsc
934b4edb9e absmi should PREG, never P!!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1440 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-04 15:39:14 +00:00
vsc
3e0d7d8749 fix bad initialization with tabling.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1439 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-04 01:17:17 +00:00
vsc
bd9ed1e1e6 fix bignum conversion
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1438 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-03 18:49:26 +00:00
vsc
61d9980cf3 updates do documentation
put_attrs


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1433 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-31 18:12:51 +00:00
vsc
b8d0396939 more small fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1431 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-31 12:27:54 +00:00
vsc
640bbe7431 fix default opyions for Makefile so that both coroutining and rational trees are
enabled.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1429 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-30 00:32:55 +00:00
vsc
1c02fa4fdc people should be able to disable indexing.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1427 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-29 02:21:47 +00:00
vsc
8b801e571c make undefined more ISO compatible.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1425 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-29 01:28:37 +00:00
vsc
1fa46c6051 sveral updates
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1415 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-28 17:38:50 +00:00
vsc
f5fc38a79e SWI compatible module only operators
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1412 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-21 16:09:03 +00:00
vsc
7ed595242a fix tabling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1411 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-21 16:07:07 +00:00
vsc
40c2f19c7a fix nb_terms
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1408 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-19 23:17:22 +00:00
vsc
4479ee4626 extend arrays with nb_terms so that we can implement nb_ builtins
correctly.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1406 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-19 19:00:48 +00:00
vsc
8b06ce9fe4 make consult even load_files/2
define bootstrap/1 for initial consult


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1403 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-19 01:47:43 +00:00
vsc
e6a15addf5 5.1:
- improvements to GC
   2 generations
   generic speedups
- new scheme for attvars
   - hProlog like interface also supported
- SWI compatibility layer
   - extra predicates
   - global variables
   - moved to Prolog module
- CLP(R) by Leslie De Koninck, Tom Schrijvers, Cristian Holzbaur, Bart
Demoen and Jan Wielemacker
- load_files/2

from 5.0.1

- WIN32 missing include files (untested)
- -L trouble (my thanks to Takeyuchi Shiramoto-san)!
- debugging of backtrable user-C preds would core dump.
- redeclaring a C-predicate as Prolog core dumps.
- badly protected  YapInterface.h.
- break/0 was failing at exit.
- YAP_cut_fail and YAP_cut_succeed were different from manual.
- tracing through data-bases could core dump.
- cut could break on very large computations.
- first pass at BigNum issues (reported by Roberto).
- debugger could get go awol after fail port.
- weird message on wrong debugger option.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1402 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-18 17:04:43 +00:00
rslopes
cf655a6a9b enable profiling on amd64
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1401 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-15 17:05:23 +00:00
vsc
3f3edfe2f7 fix interface
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1399 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-15 02:42:57 +00:00
vsc
68e8e54f84 fix for trying to add clauses to a C pred.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1398 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-10-15 02:05:57 +00:00
vsc
38b3140eab change array semantics to allow creating same array several times.
implement SWI style global variables.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1395 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-09-22 03:26:13 +00:00
vsc
129efd83d8 more fixes for garbage collector
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1394 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-09-21 03:49:33 +00:00
vsc
03ba05f24a a new and hopefully much better implementation of atts.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1392 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-09-09 17:24:39 +00:00
vsc
2444b775b7 several minor speedups
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1391 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-09-09 17:23:43 +00:00
rslopes
030d16c40f BEAM for YAP update...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1385 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-09-08 22:06:45 +00:00
vsc
590352c2c6 DelayTop would assume coroutining
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1383 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-30 11:27:39 +00:00
vsc
47a784f97c fix restore of EX
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1382 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-23 21:28:22 +00:00
vsc
4164e56aa7 fix overflow in AllAttVars
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1381 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-23 21:27:39 +00:00
rslopes
bafca9c692 fix to support older compilers
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1377 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-23 15:39:38 +00:00
vsc
858891b735 fix save/1.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1369 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-22 04:07:20 +00:00
vsc
5870526dd8 fix condor version
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1367 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-18 19:25:40 +00:00
vsc
b18224a460 more robust support for attributed vars: all_attvars and stack
expansion.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1366 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-17 20:13:50 +00:00
vsc
101abc67d0 fix bug in processing overflows of expand_clauses.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1365 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-17 18:48:35 +00:00
vsc
996272db22 YPP would leave exceptions on the system, disabling Yap-4.5.7
message.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1364 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-17 13:35:52 +00:00
vsc
46f6a08087 Allow put_byte and get_byte on text streams by default.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1362 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-17 02:27:39 +00:00
vsc
9be7e30889 fix overflow in unify_with_occurs_check
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1361 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-15 14:16:38 +00:00
ricroc
4eccad5e06 TABLING FIX: support for incomplete tables
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1360 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-12 17:00:00 +00:00
vsc
ab97812ec7 first steps to allow mavars with tabling
fix trailing for tabling with multiple get_cons


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1356 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-05 14:55:03 +00:00
ricroc
34b2a0df4f TABLING NEW: support to limit the table space size
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1355 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-04 15:45:56 +00:00
vsc
b8f1beec74 fix debugger to do well nonsource predicates.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1354 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-02 03:09:52 +00:00
ricroc
b36b836820 TABLING NEW: better support for incomplete tabling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1351 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-08-01 15:40:39 +00:00
rslopes
934f7d6791 solved warning: cast from pointer to integer of different size
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1348 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-07-20 13:54:42 +00:00
rslopes
3ec000378a fix for older compilers that do not support declaration of vars
in the middle of the function code.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1347 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-07-19 17:12:18 +00:00
rslopes
3cb65ee103 fix for older compilers...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1346 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-07-19 16:54:20 +00:00
vsc
fc853dddfa Yap should respect single argument indexing.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1345 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-07-18 17:41:16 +00:00
ricroc
3a93e0e079 TABLING: answers for completed calls can now be obtained by loading (new option) or executing (default) them from the trie data structure.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1342 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-07-06 19:34:12 +00:00
vsc
6d34ce46f3 ifix Yap_op_names
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1341 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-07-06 18:13:21 +00:00
vsc
b5d57af1ee avoid debug dependency
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1340 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-07-06 17:54:40 +00:00
vsc
6979a873cc improvements to compiler: merged instructions and fixes for ->
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1338 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-07-06 15:10:18 +00:00
vsc
f6da8078ae ifix some wierd cases in indexing code:
would not look at next argument
problem with pvar as last clause (R Camacho).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1337 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-07-05 18:32:32 +00:00
vsc
bbfed93774 fix silly calls such as 0.15 ( bug reported by Jude Shavlik)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1335 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-06-08 00:35:27 +00:00
ricroc
3d8c03f3c9 long int support for tabling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1327 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-06-04 07:28:24 +00:00
ricroc
7f87e89910 float support for tabling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1324 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-06-03 08:26:32 +00:00
vsc
f79365e0f6 inline compare
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1322 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-06-01 21:23:44 +00:00
vsc
7af3eafd12 == and \= should not need a choice-point in ->
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1321 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-06-01 20:25:23 +00:00
vsc
b2ecd33c89 put switch_list_nl back
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1320 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-06-01 16:42:30 +00:00
vsc
aff5df7760 get_rid of try_me?, retry_me? and trust_me? instructions: they are not
significantly used nowadays.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1319 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-06-01 14:02:52 +00:00
vsc
f3fe74cb9f improve bb routines to use the DB efficiently
change interface between DB and BB.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1318 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-06-01 13:53:46 +00:00
vsc
d19cf8bef8 fix cleanup of expand_clauses: make sure we have everything with NULL afterwards.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1317 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-31 20:04:17 +00:00
vsc
2ed1345611 insert some more slack for indices in LU
Use doubly linked list for LU indices so that updating is less cumbersome.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1316 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-31 19:42:28 +00:00
vsc
626708cdef fix expand_index on tabled code.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1311 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-31 04:46:06 +00:00
vsc
7ef2b657df fix SYSTEM_ERROR messages
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1310 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-31 02:15:53 +00:00
ricroc
5d6d25fba8 remove abort_yapor function
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1307 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-31 00:32:02 +00:00
ricroc
1e37891c2d remove abort_yapor function
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1306 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-31 00:23:47 +00:00
ricroc
97a76c60fa remove abort_yapor function
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1305 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-31 00:12:30 +00:00
vsc
60f6290873 get rid of annoying debugging message.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1301 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-30 05:33:43 +00:00
vsc
bb9077d5cc fix tabling
allow atom gc again for now.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1300 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-30 05:26:50 +00:00
vsc
b45acf1195 add some atom gc fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1299 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-30 03:26:37 +00:00
vsc
6dbf25e54c Don't try to mess with sequences that don't end with a trust.
A fix for the atom garbage collector actually ignore floats ;-).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1297 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-27 21:44:00 +00:00
rslopes
c1480cfd91 *** empty log message ***
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1296 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-26 18:26:27 +00:00
vsc
e6de26a000 fix warning
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1295 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-26 18:07:32 +00:00
rslopes
35357f7f17 *** empty log message ***
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1294 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-26 18:03:08 +00:00
vsc
e1b2820d21 garbage collection of ma vars was fixed in 64 bit machines, due to int/Int problems.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1293 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-26 17:50:06 +00:00
vsc
b2dfcf33a1 fix compiler bug in 1 << X, found by Nuno Fonseca.
compiler internal errors get their own message.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1291 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-25 21:43:33 +00:00
vsc
f78cc61bc8 fix another bug in nth_instance, thanks to Pat Caldon
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1290 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-25 18:58:38 +00:00
pmoura
72b037275f Logtalk 2.25.0 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1288 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-23 23:33:41 +00:00
vsc
0b420f5493 debugger was making predicates meta instead of testing
fix handling of dbrefs in facts and in subarguments.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1287 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-05-12 03:36:33 +00:00
vsc
d4d3a14c7a removeindexation needs clauses to work.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1286 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-28 19:47:56 +00:00
vsc
767eb026fb clause should always deref before testing type
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1285 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-28 14:50:45 +00:00
vsc
4c15c9371e indexing code could get confused with suspension points
some further improvements on oveflow handling
fix paths in Java makefile
changs to support gibbs sampling in CLP(BN)


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1283 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-27 20:09:26 +00:00
vsc
08efcbeb64 fix bug with (var(X) -> being interpreted as var(X) by indexing code
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1281 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-21 13:53:05 +00:00
vsc
668a3dce2b try to improve error handling and warnings from within consults.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1280 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-20 20:06:26 +00:00
vsc
9ebc807dfb fix a few variable warnings
fix erase clause to pass a pointer to clause, not code
get rid of Yap4.4 code in Yap_EraseStaticClause


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1278 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-20 04:02:30 +00:00
vsc
697604bbae fix fix to ground
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1276 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-15 20:26:45 +00:00
vsc
f331b192c3 fix overflows in user utilities
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1273 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-13 19:37:32 +00:00
vsc
b3d74b109a AllocMemoryFromYap should now handle large requests the right way.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1272 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-10 04:35:19 +00:00
vsc
5ae92827f4 fix case where people used nth_instance on predicate entries
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1271 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-10 04:31:12 +00:00
vsc
056ccbc819 bug fixes, I hope!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1270 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-10 04:01:15 +00:00
ricroc
de17f5cca4 Adding tabling support for mixed strategy evaluation (batched and local scheduling)
UPDATE: compilation flags -DTABLING_BATCHED_SCHEDULING and -DTABLING_LOCAL_SCHEDULING removed. To support tabling use -DTABLING in the Makefile or --enable-tabling in configure.
  NEW: yap_flag(tabling_mode,MODE) changes the tabling execution mode of all tabled predicates to MODE (batched, local or default).
  NEW: tabling_mode(PRED,MODE) changes the default tabling execution mode of predicate PRED to MODE (batched or local).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1268 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-04-07 17:56:58 +00:00
vsc
b089ae2575 fix GPL
fix idb: stuff in coroutines.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1267 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-03-15 18:29:25 +00:00
vsc
59561e2688 fix excessive pruning in meta-calls
fix Term->int breakage in compiler
improve JPL (at least it does something now for amd64).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1264 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-03-13 06:26:13 +00:00
vsc
5493bd29f9 fix nth_instance
fix Makefile.in for multi-threading


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1262 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-03-09 06:35:52 +00:00
vsc
b6af3095da small fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1261 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-03-07 17:49:16 +00:00
ricroc
4c972ca825 bug fixes for YapTab support
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1259 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-03-04 20:30:14 +00:00
vsc
81b4413a33 Fix some possible errors in name/2 and friends, and cleanup code a bit
YAP_Error changed.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1256 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-03-02 19:48:03 +00:00
vsc
8a03474632 oops, forgot one more fix!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1255 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-03-02 18:38:20 +00:00
vsc
f11ab09a60 try to make initialisation process more robust
try to make name more robust (in case Lookup new atom fails)


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1254 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-03-02 18:35:49 +00:00
vsc
14f9382666 fix pruning bug
make DL_MALLOC less enthusiastic about walking through buckets.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1253 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-03-01 22:25:09 +00:00
vsc
fce2c52d17 fix fixes to undefp
fix bug where clause mistook cp for ap


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1252 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-02-25 03:39:45 +00:00
vsc
abb945a228 fix fix, otherwise I'd remove two choice-points :-(.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1251 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-02-25 00:09:06 +00:00
vsc
5e2989c385 keep track that we are exiting unbdefp handler, even if we exit with a throw.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1250 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-02-24 22:24:44 +00:00
vsc
9807a22069 Improve error handling routine, trying to make it more robust.
Improve hole handling in stack expansion
Clause interrpeter was supposed to prune _trust_me
Wrong messages for acos and atanh


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1249 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-02-24 21:46:40 +00:00
vsc
0139bfc33a amd64 fixes
library fixes


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1247 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-02-21 16:50:21 +00:00
vsc
18f0de5486 fix log(0.0) and log10(0.0) to be SICStus compatible.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1245 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-02-18 21:34:02 +00:00
vsc
5d09011015 small fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1243 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-02-08 18:47:42 +00:00
vsc
ab686d4ebe make fileerrors on default
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1241 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-02-08 18:14:30 +00:00
vsc
49c8efc0df library_directory may not be deterministic (usually it isn't).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1240 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-02-08 18:05:21 +00:00
vsc
52a46e5c5d fix mess with add clause
improves on sigsegv handling


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1239 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-02-08 04:05:39 +00:00
vsc
2ce853ec5f move to Yap-4.5.7
Fix clause size


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1236 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-28 23:14:41 +00:00
vsc
baf823eb5c fix bug in clause emulator
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1234 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-15 05:21:36 +00:00
vsc
dcc4f3c46d improve register liveness calculations.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1233 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-14 20:55:16 +00:00
vsc
cd4fd05d45 lgamma broke arithmetic optimisation
integer_y has type y
pass original source to checker (and maybe even use option in parser)
use warning mechanism for checker messages.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1231 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-13 05:47:27 +00:00
vsc
9d8f0e470d signal handling bug fixed
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1229 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-07 06:29:20 +00:00
vsc
5792a4f18e First cut at lgamma support
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1228 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-05 17:32:03 +00:00
vsc
1bdf9a7876 don't be too restrictive on gc limit
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1227 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-05 17:08:28 +00:00
vsc
6a590f77c8 get rid of debugging stub.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1226 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-05 05:35:01 +00:00
vsc
2817258a18 Ricardo's latest version of profiler.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1225 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-05 05:32:37 +00:00
vsc
4a3f7a2b2f don't keep on growing gc threshold.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1224 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-05 05:22:40 +00:00
vsc
b7a44d3808 hole handling in dlmalloc should not make HeapTop always skip over the hole.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1223 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-05 04:32:18 +00:00
vsc
af931c6e6d - allow MegaClauses with blobs
- change Diffs to be thread specific
- include Christian's updates


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1222 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-04 02:50:23 +00:00
vsc
9303ee3b86 fix discontiguous stack overflows in parser
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1221 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-03 17:06:05 +00:00
vsc
ef6bbb1273 some extra bug fixes for trail overflows: some cannot be recovered that easily,
some can.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1219 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-28 22:20:37 +00:00
vsc
c0c9dcef65 miscounting of variable-only clauses in groups might lead to bug in indexing
code.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1217 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-21 17:17:15 +00:00
vsc
a4f158fd33 more fixes to CLPBN
fix some Yap overflows.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1216 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-20 21:44:58 +00:00
vsc
ae2a53d2e3 fix overflows
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1211 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-16 05:57:32 +00:00
vsc
2f2ba300c1 fix alignment problem with DLMALLOC and sparc
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1208 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-08 16:54:33 +00:00
vsc
84a0996e13 polish changes to undefp
get rid of a few warnings


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1207 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-08 04:45:04 +00:00
vsc
730b9badad missing ;
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1206 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-08 00:56:35 +00:00
vsc
ac7efbaabf more grow fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1205 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-08 00:10:48 +00:00
vsc
db9a865263 fix memory overflow
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1203 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-07 16:54:58 +00:00
vsc
f70af77e0c fixes for coroutining only
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1202 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-07 13:46:53 +00:00
vsc
f0f6dd9de5 fix USE_LD to eventually be restorable.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1201 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-07 06:01:55 +00:00
vsc
55c4f87043 garbage collector got confused about attributed variables if it also
had to do heap expansion!


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1200 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-07 04:56:27 +00:00
vsc
0fe29b48b4 fix bug in removing first clause of a try sequence (lu preds)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1197 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-06 04:50:22 +00:00
vsc
b0e6364cab name/2 should accept [] as a valid list (string)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1194 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-05 05:07:26 +00:00
vsc
5143aebb01 try to reduce overheads when running with goal expansion enabled.
CLPBN fixes
Handle overflows when allocating big clauses properly.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1193 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-05 05:01:45 +00:00
vsc
94af3000fe fix threads so that they at least start
allow error handling to work with threads
replace heap_base by Yap_heap_base, according to Yap's convention for globals.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1192 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-02 06:06:47 +00:00
vsc
2feba3d528 move to 4.5.4
small changes to make threads work again.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1190 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-29 04:43:15 +00:00
vsc
43f422c5d2 was always forcing restore
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1187 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-23 21:17:47 +00:00
vsc
bd965693e4 A few extra fixes for saved states.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1186 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-23 21:16:21 +00:00
vsc
c083c838bb First step to actually handling scanner overflows the right way
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1185 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-22 22:28:06 +00:00
vsc
fda0b76f18 fix meta-call on system predicates bug
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1181 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-22 05:48:43 +00:00
vsc
9dfcbc1de9 replace SYSTEM_ERROR by out OUT_OF_WHATEVER_ERROR whenever appropriate.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1180 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-19 22:08:43 +00:00
vsc
7d245377a3 change abort so that it won't be caught by handlers.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1179 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-19 21:32:53 +00:00
vsc
0070c26061 a few fixes for 64 bit compiling.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1178 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-19 17:14:15 +00:00
vsc
8d2cb067ec fix situation where we might assume nonextsing double initialisation of C predicates (use
Hidden Pred Flag).
$host_type was double initialised.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1177 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-18 22:32:40 +00:00
vsc
481d9d38fb don't get confused when expanding over a hole
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1176 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-17 05:24:20 +00:00
vsc
6853d8eecd don't ever use memory that has been freed (that was done by LU).
generic fixes for WIN32 libraries


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1172 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-04 18:22:36 +00:00
vsc
33207cac91 fix bug in handling Yap heap overflow while adding new clause.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1169 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-31 02:18:04 +00:00
vsc
2dfdca263d Use Doug Lea's malloc as an alternative to YAP's standard malloc
don't use TR directly in scanner/parser, this avoids trouble with ^C while
consulting large files.
pass gcc -mno-cygwin to library compilation in cygwin environment (cygwin should
compile out of the box now).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1168 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-28 20:12:23 +00:00
vsc
f267e74737 bug fixes on memory overflows and on clauses :- fail being ignored by clause.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1167 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-27 15:56:34 +00:00
vsc
3de4d0c6a5 More bug fixes for overflow handling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1165 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-26 20:16:18 +00:00
vsc
8e92ce869f bug fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1163 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-22 16:53:20 +00:00
vsc
ac9770bdf3 don't use a cached version of ARG1 in choice-points
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1161 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-14 22:14:53 +00:00
vsc
90db51f867 fixes for better signal handling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1159 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-08 17:20:03 +00:00
vsc
f72b3ad98e fix error messages from format
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1158 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-07 01:42:46 +00:00
vsc
2ad440faf5 fix ref to clauses from MegaClauses
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1157 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-06 21:15:49 +00:00
vsc
7efbf340a5 fix compilation problems in garbage collector
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1156 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-06 19:40:22 +00:00
vsc
ac2a3b01af change configure to support big mem configs
get rid of extra globals
fix trouble with multifile preds


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1155 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-06 16:55:48 +00:00
vsc
62354231b0 fixes for thread support
fix indexing bug (serious)


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1154 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-04 18:56:20 +00:00
vsc
2c91ebc7bc fixes for thread support
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1153 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-30 21:37:41 +00:00
vsc
8eb1d2f7b9 fix overflow from within clause/2
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1149 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-30 19:51:54 +00:00
vsc
6e0defe923 bug in dbref arrays with log updates
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1148 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-28 18:37:05 +00:00
vsc
40a39a79b1 Mega clauses
Fixes to sizeof(expand_clauses) which was being overestimated
Fixes to profiling+indexing
Fixes to reallocation of memory after restoring
Make sure all clauses, even for C, end in _Ystop
Don't reuse space for Streams
Fix Stream_F on StreaNo+1


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1147 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-27 20:45:04 +00:00
vsc
b3c813bfee get rid of stupid debugging message
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1146 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-20 04:17:12 +00:00
vsc
09293baa7c fix saved state bug with comparison predicates
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1145 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-20 04:16:33 +00:00
vsc
2e2df1a64f IsUnboundVar should check addresses
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1144 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-18 14:03:42 +00:00
vsc
e295016899 make sure garbage collector doesn't confused with overwrites in attvars
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1142 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-17 21:22:32 +00:00
vsc
bb2cb9e9f8 fix some overflows recorded.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1141 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-17 20:47:35 +00:00
vsc
0de365678a simplify frozen/2
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1140 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-17 19:34:53 +00:00
vsc
3d308525e0 garbage collection fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1139 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-16 17:29:08 +00:00
vsc
70f9c1176d make sure that condor version always grows trail!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1137 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-14 03:30:06 +00:00
vsc
8402df6bb2 more constraint simplifications
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1135 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-13 21:19:14 +00:00
vsc
6b43be23cf growatomtable should not test for HeapTop if using standard malloc.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1134 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-13 21:18:35 +00:00
vsc
27a98ecdde add attvar/1 to system.
sort before printing attributed variables to get rid of duplicates.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1132 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-10 20:18:01 +00:00
vsc
c042f13930 more fixes for overflows in copy_term with attributed variables (not necessarily).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1131 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-09 20:00:59 +00:00
vsc
3c44b02093 alwas make sure you are looking at a variable before checking IsUnboundVar
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1130 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-08 19:06:57 +00:00
vsc
6a4d9ef41a fix correctly the bug in coroutining: Yap should join the two goals.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1129 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-08 18:09:26 +00:00
vsc
ab7489b93d source: a(X) :- true is a fact!
fix use of value after possible overflow in IPred


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1128 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-08 17:56:48 +00:00
vsc
040280ea73 fix overflow of attributed variables in copy_term
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1126 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-07 20:20:12 +00:00
vsc
6bf9d6cef1 fix bug in unwinding trail at amiops.h
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1124 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-07 16:48:04 +00:00
vsc
93e5443dee memory management bug fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1122 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-07 16:25:22 +00:00
vsc
6711d93b9c memory management fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1121 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-09-03 03:11:09 +00:00
vsc
803a4b04eb more small fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1119 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-08-27 20:18:52 +00:00
vsc
64b01a75c1 growheap was not checking some compiler instructions
source was getting confused in reconsult


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1118 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-08-20 16:16:23 +00:00
vsc
15b122b2c9 more fixes for !
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1116 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-08-16 21:02:04 +00:00
vsc
1781ff9420 whole lot of fixes:
- memory leak in indexing
  - memory management in WIN32 now supports holes
  - extend Yap interface, more support for SWI-Interface
  - new predicate mktime in system
  - buffer console I/O in WIN32


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1113 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-08-11 16:14:55 +00:00
vsc
2a93a01f1c fix severe bug in indexing of floating point numbers
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1110 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-29 18:15:19 +00:00
vsc
70e112a311 allow format to continue work if you hacve overflows in memory allocation (should do the same for write).
fix recordifnot if it is not the first time we see the term (already in stack).
more windows fixes and updates.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1107 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-28 22:09:02 +00:00
vsc
e4b56ab05f fix PROTO problem
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1105 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-26 16:02:25 +00:00
vsc
3801508cdf windows fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1103 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-23 21:08:45 +00:00
vsc
7c8001d035 misc fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1100 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-23 19:02:09 +00:00
vsc
16c1c87c50 fix bad ref count in expand_clauses when copying indexing block
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1099 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-23 19:01:14 +00:00
vsc
3e0a3fa9f3 fix heap overflow in YAP_LookupAtom
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1098 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-23 03:37:17 +00:00
vsc
21a3377248 debugger fixes
initial support for JPL
bad calls to garbage collector and gc
debugger fixes


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1096 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-22 21:32:23 +00:00
vsc
fec65e106a fix error message
change makefile and configure for clpbn


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1095 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-15 17:20:23 +00:00
vsc
08b9f55f9c start support for java interface
bug fixes


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1093 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-15 15:47:08 +00:00
vsc
33bd3a9385 fix variant and friends
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1092 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-12 16:01:21 +00:00
vsc
bb96fe5aea fix format/2 to rely on stream's putc if no ~t is found on string.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1089 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-06 18:24:40 +00:00
vsc
1f5f88537e make it compile again on non-linux machines
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1088 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-07-03 03:29:24 +00:00
vsc
f6503f0100 fix multithreaded version
include new version of Ricardo's profiler
new predicat atomic_concat
allow multithreaded-debugging
small fixes


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1085 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-06-29 19:04:46 +00:00
vsc
a7f550d667 New comment-based message style
Fix thread support (at least don't deadlock with oneself)
small fixes for coroutining predicates
force Yap to recover space in arrays of dbrefs
use private predicates in debugger.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1084 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-06-23 17:24:20 +00:00
vsc
34ea2e6905 fix array handling of DBRefs
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1083 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-06-18 16:35:18 +00:00
vsc
c715e145ef bad bug in indexing code.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1081 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-06-17 22:07:23 +00:00
vsc
c68ef42a40 miscellaneous fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1080 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-06-16 14:12:53 +00:00
vsc
ceaa77c6f5 fix copy_term for attributed variables.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1079 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-06-16 14:10:20 +00:00
vsc
a0c13b2415 fix miscompilation without COROUTINING
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1074 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-06-13 03:12:38 +00:00
vsc
4b11ed9401 fix bugs
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1073 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-06-09 03:32:03 +00:00
vsc
0101c09236 coroutining is now a part of attvars.
some more fixes.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1070 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-06-05 03:37:01 +00:00
vsc
cfd90835a0 fix format bug
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1069 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-05-18 15:13:05 +00:00
vsc
a6f1b27c09 misc fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1068 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-05-17 21:42:12 +00:00
vsc
e7fbb54532 Yap_WriteBuffer
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1067 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-05-14 17:56:47 +00:00
vsc
874758e936 support BigNums in interface
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1066 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-05-14 17:11:32 +00:00
vsc
0aa358a2b7 add Yap_ReadBuffer
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1064 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-05-14 16:33:47 +00:00
vsc
19bfe301db get rid of pesky debugging prints
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1063 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-05-13 21:36:45 +00:00
vsc
9d12384db1 debugger fixes
make sure we always go back to current module, even during initizlization.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1062 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-05-13 20:54:58 +00:00
vsc
94714907ec fix previous fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1061 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-05-01 04:38:29 +00:00
vsc
420bf9e92c initialise slot stack properly.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1060 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-05-01 03:58:46 +00:00
vsc
3b376f87e7 fix new special choice-points
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1059 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-30 19:50:01 +00:00
vsc
fc1dc1280d fix bad handling of inconsistent options
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1058 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-30 19:48:01 +00:00
vsc
9d5c82db6a fix garbage collection in execute_tail
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1057 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-29 03:45:50 +00:00
vsc
781c89f4b5 fix bad suspended clause counter
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1056 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-29 03:44:04 +00:00
vsc
f27f330d38 stupid bug
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1053 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-27 16:21:25 +00:00
vsc
40d678bf38 use print_message for version
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1052 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-27 15:43:29 +00:00
vsc
40e84ca034 fix halt/0 and halt/1
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1051 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-27 15:14:38 +00:00
vsc
e6cab52dc2 more fixes for expand_clauses
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1050 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-27 15:03:43 +00:00
vsc
91f87b3109 more fixes for USE_SYSTEM_MEMORY
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1047 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-22 20:07:07 +00:00
vsc
a68263845d trust_logical should protect the last clause, otherwise it cannot
jump there.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1045 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-22 03:24:17 +00:00
vsc
75a7d66e40 fix bad ordering when inserting second clause
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1043 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-21 04:01:53 +00:00
vsc
27f85f3355 fixes for corourining
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1042 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-20 22:08:57 +00:00
vsc
ea52ce8b26 fixes for copy_term
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1041 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-19 17:06:51 +00:00
vsc
572690acd8 fix current_op(X,Y,Z): it would not check for end of table.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1039 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-16 21:01:45 +00:00
vsc
d2a4490676 fix garbage collection for delayed variables
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1038 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-16 20:38:54 +00:00
vsc
f7a68f97cd more bug fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1037 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-16 19:27:31 +00:00
vsc
5b6e8182d1 expand_clauses: keep a list of clauses to expand
fix new trail scheme for multi-assignment variables


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1035 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-14 19:10:40 +00:00
vsc
dc245aed32 fix memory leaks
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1034 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-04-07 22:04:04 +00:00
vsc
c853e894c0 support expand group of clauses
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1031 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-31 01:03:10 +00:00
vsc
545b12a808 if number of left-over < 1/5 keep list of clauses to expand around
fix call to stack expander


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1030 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-31 01:02:18 +00:00
pmoura
30c2f0e570 Removed debugging line to allow compilation.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1029 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-25 02:19:10 +00:00
vsc
4242efb73f trim_trail for default machine
be more aggressive about try-retry-trust chains.
   - handle cases where block starts with a wait
   - don't use _killed instructions, just let the thing rot by itself.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1027 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-19 11:35:42 +00:00
vsc
5d79688b6b skip compilation steps for ground facts.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1026 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-10 16:27:39 +00:00
vsc
2e3221a68d optimise -> for type tests
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1024 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-10 14:59:55 +00:00
vsc
39044cd21c move to 4.5.3
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1023 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-08 19:31:01 +00:00
vsc
cd3142c211 fix ClSize for IDB
fix error handling for binary cmps


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1020 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-06 00:31:48 +00:00
vsc
ad685b6e5b fix missing ClSize in index.c
start introducing docs for threads (copied from SWI).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1019 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-05 17:27:53 +00:00
vsc
caa0b26665 solaris fixes for threads
get rid of SizeOfBlock


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1018 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-05 15:26:33 +00:00
rslopes
69f6496e7e Profiler update
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1017 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-04 21:17:40 +00:00
vsc
0092e6fd45 support yap_flag(system_options,...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1016 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-04 18:33:34 +00:00
vsc
ddc7b3a0bc a few more fixes to support timing and to improve message queues.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1012 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-03-02 16:44:58 +00:00
vsc
4eeceb6549 debugging leftovers
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1011 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-29 01:40:51 +00:00
vsc
01dec70e0a thread support
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1010 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-28 14:59:03 +00:00
vsc
495ed28c35 remove debuging info
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1009 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-28 01:10:15 +00:00
vsc
02ec294d84 more fixes for multi-threading.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1008 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-28 01:08:59 +00:00
vsc
1f6fafc6a0 fix locking
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1007 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-27 01:23:27 +00:00
vsc
c90c3b7b34 thread support updates
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1006 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-26 13:37:24 +00:00
rslopes
58e306b815 Profiler Update
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1005 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-25 19:33:08 +00:00
rslopes
6198cdb4bc Low Profiler Update
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1004 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-25 19:06:31 +00:00
vsc
f609e8b93b check read locking on PRWLock
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1002 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-22 00:35:07 +00:00
vsc
6027963867 more thread updates.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1001 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-21 20:25:45 +00:00
vsc
d81bcb58e3 more fixes for threads
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1000 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-20 18:56:07 +00:00
vsc
0c1ed177f6 fix a few nasties just introduced.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@999 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-20 15:00:51 +00:00
vsc
53c1eb54a2 more fixes for thread support.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@998 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-20 02:28:19 +00:00
vsc
026bfb3c18 more thread fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@997 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-19 19:24:46 +00:00
vsc
d3f49b75df clause should not do write locking
expand_index should not care whether read_locks are held.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@996 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-18 01:43:32 +00:00
vsc
6031b7f049 protect dead threads.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@995 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-17 19:29:24 +00:00
vsc
3ecc66b7fd get rid of global variables in dbase
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@994 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-17 19:00:12 +00:00
vsc
41908d49cf Modules now are terms, not integers, even for meta-calls
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@993 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-17 18:24:44 +00:00
vsc
860ea6d115 Take care to process heap overflows correctly.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@992 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-17 16:27:22 +00:00
vsc
7d7b79630f - setconcurrency was spelled wrongly
- avoid several workers spewing out the same message in low_level_tracer.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@991 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-16 19:22:40 +00:00
vsc
f857af0c50 I assumed PP would always be locked at try, but that is not
true if the predicate is thread local.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@990 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-16 15:37:16 +00:00
vsc
b65681fe82 fix back tracer.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@989 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-14 00:41:12 +00:00
vsc
8e18b8cdf7 fixes to modules.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@988 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-13 23:53:20 +00:00
vsc
97c809d955 fix tables in format
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@987 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-13 22:10:10 +00:00
vsc
039655b767 simplify format, so that it will be easier to do bug fixes
fix bug in format output for floats
write and read dbrefs as $dbref(Address,0)


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@986 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-13 18:39:29 +00:00
vsc
e0c42788c7 fix bad calls to consult/reconsult
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@983 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-12 18:23:29 +00:00
vsc
f1063a27b2 fixes for stack overflow
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@982 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-12 17:09:17 +00:00
vsc
6662ca157e simplify module access
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@981 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-12 12:37:12 +00:00
vsc
08fe01ad98 a few more fixes, and we're done with threads (for now) ;-).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@980 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-11 16:18:16 +00:00
vsc
e612cb2f84 support thread local IDB
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@979 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-11 16:09:15 +00:00
vsc
eec29d7c27 fix thread_signal
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@978 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-11 13:59:53 +00:00
vsc
c9247ce308 make thread_local compatible with dynamic
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@977 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-11 13:33:19 +00:00
vsc
acbf57f59d improve threads support
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@976 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-11 01:20:56 +00:00
vsc
31b6bedf67 modules stuff fixes (yes, again).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@975 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-10 01:07:46 +00:00
vsc
3e468eea4e fix \x88
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@973 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-09 16:46:03 +00:00
vsc
cfd3683891 fix integer as DBRef
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@971 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-09 14:19:05 +00:00
vsc
ca4e754af7 protect writes to SignalMask and to CreepFlag. Reads are still not
locked.
fix XREGS for threads.
fix thread_signal not even being defined.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@969 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-06 17:22:24 +00:00
vsc
a5b6a22f27 AuxSp and friends are not bound to GlobalBase when using SYSTEM_MALLOC
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@968 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-06 16:40:50 +00:00
vsc
1079391767 fixes for restore
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@967 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-06 10:19:49 +00:00
vsc
fd7582b618 improve save/restore
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@966 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-06 02:26:23 +00:00
vsc
9b84cdfe5d improved support for threads and code area allocation using malloc
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@965 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-05 16:57:02 +00:00
vsc
cacc407677 Bug fixes!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@964 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-01-29 13:37:10 +00:00
vsc
0a7ec31659 bug fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@962 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-01-26 12:41:06 +00:00
vsc
ba9876268f threads, clean signals, and much more...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@957 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-01-23 02:23:51 +00:00
vsc
80fd1bcc91 many fixes: restart on threads, fixes for tabling, other generic fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@954 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-27 00:38:53 +00:00
vsc
b16de6ad3d more fixes over tabling changes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@953 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-18 17:36:54 +00:00
vsc
e7ab7b4c8a fix non-tabling version
fix compilation with THREADS


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@952 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-18 17:23:22 +00:00
vsc
221665bab8 support for tabling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@951 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-18 16:38:40 +00:00
vsc
0c2a3b4aff fixes for bad indexing on floats.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@950 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-05 15:18:08 +00:00
vsc
4c264a968a new scheme for flags.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@949 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-04 18:13:04 +00:00
vsc
1aa1610e83 fix duplicated goal in meta-call execute0
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@944 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-02 18:57:48 +00:00
vsc
2fbad3d467 fix fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@943 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-02 01:15:50 +00:00
vsc
8dc293eba4 more fixes for nth_clause
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@942 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-02 00:36:27 +00:00
vsc
fd1bc58cde slowly restore nth_clause
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@941 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-01 19:22:01 +00:00
vsc
678ff0df82 many fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@940 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-12-01 17:27:42 +00:00
vsc
d6207a55f9 fix ensure_loaded to reload if called from a different module.
fix error handling in dbase.c


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@939 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-29 23:41:28 +00:00
vsc
2867b43f06 absmi.c: no need to reload CACHED_A1() during expand, and doing so will
destroy S and break RISC
alloc.c: guarantee alignment by 8 for SPARC32
iopreds.c: get rid of unnecessary decl\


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@938 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-28 01:26:53 +00:00
vsc
01703de3a0 fix lost indices in reconsult
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@937 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-27 21:47:44 +00:00
vsc
90829edc9e new infrastructure for static clauses:
they are now valid references
  they don't have the try_me block
jump_on_var now uses expand


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@936 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-26 18:36:35 +00:00
vsc
2fc4750456 a few more simple fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@935 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-24 00:00:43 +00:00
vsc
f5edbc8aa7 compact source mode.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@934 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-21 16:56:20 +00:00
vsc
ff20288236 don't keep source for log update facts, just execute them to find out the
arguments.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@932 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-18 19:24:46 +00:00
vsc
fae22bbf6b only delete log update facts with blobs when they cannot be in stacks.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@930 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-18 19:22:26 +00:00
vsc
7be28e4098 C-metapredicates must always be protected by an environment.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@929 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-18 19:16:08 +00:00
vsc
c1a6dab4fb fixes on reporting bug location.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@926 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-16 22:12:29 +00:00
vsc
a21b209436 don't allow removeindex to remove own clause.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@923 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-12 13:31:28 +00:00
vsc
1ada44ab8e stabilisation patches for Yap-4.5.2
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@922 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-12 12:33:31 +00:00
ricroc
ab1a1a0219 My first attempt to synchronize OPTYap with CVS
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@921 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-07 17:50:01 +00:00
ricroc
36e9ff7588 My first attempt to synchronize OPTYap with CVS
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@920 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-11-07 16:31:08 +00:00
vsc
6c126a4392 get rid of MBIT in dbase
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@914 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-31 12:09:49 +00:00
vsc
a23c409540 don't leave dangling pointers to switch tables, as they can be removed
easily.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@913 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-31 00:20:52 +00:00
vsc
009452e075 fix reference counters when copying try-trust chains
fixes on memory allocation


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@912 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-30 22:52:46 +00:00
vsc
4f97e338ab fix count flag for indices
fix memory expansion with holes.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@911 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-30 11:31:05 +00:00
vsc
4d3a8b6a53 PREG never crosses setregs()
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@909 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-28 21:11:31 +00:00
uid49918
614bdd981f make sure $pred_exists does not create new pred prop.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@908 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-28 21:04:52 +00:00
vsc
77bb5fed93 variant and subsumes with coroutining should always reset to slot, not to
value.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@906 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-28 16:20:44 +00:00
vsc
5e4816eb5a new heap allocation code
new atom table growth code and hash algorithm
more fixes for new indexing algorithm


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@905 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-28 01:16:03 +00:00
vsc
e8a8177196 speed up search for DB terms
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@903 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-19 00:33:10 +00:00
vsc
526ec2e50f call the garbage collector the right way
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@902 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-17 02:11:21 +00:00
vsc
76160f72a8 fix syntax error allowed by newer GCCs
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@900 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-14 21:17:32 +00:00
vsc
a32d37c753 support access through instance/2
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@899 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-14 20:48:57 +00:00
vsc
514ef300e3 clause should allow access through a reference.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@897 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-14 20:32:08 +00:00
vsc
9f6ef90e85 fix another bug in when removing indexing code.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@896 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-14 18:37:56 +00:00
vsc
9d64f1d2d1 get rid of ClUse in logupdindices
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@895 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-14 13:10:26 +00:00
vsc
ef5b98628f do not always remove the full index if removing a root node.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@894 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-14 01:32:55 +00:00
vsc
521e70e9ab more fixes for new indexing code.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@893 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-14 00:53:10 +00:00
vsc
5f9aedfc3f indexing did not understand unify_list
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@891 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-08 00:47:04 +00:00
vsc
920d33a1d8 oops, check stack at deallocate even without COROUTINING
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@888 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-06 14:33:48 +00:00
vsc
2db3829b82 bug in EOF processing when doing read.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@885 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-06 14:16:23 +00:00
vsc
32301f0060 more fixes on indexing code
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@883 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-06 13:49:38 +00:00
vsc
cf148cd0cb Fix asserta_static
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@882 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-02 18:20:11 +00:00
vsc
57c6e21bcd cleanup remove_from_index
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@881 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-02 16:04:20 +00:00
vsc
507d4a9951 More improvements on indexing code
fix on growheap continuing to cut_e


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@880 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-02 12:59:05 +00:00
vsc
0170202a86 fix a leftover $record
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@879 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-26 14:58:29 +00:00
vsc
f5931c5c0e wake up before cut_e. Still to do: wakeup before cut_t and cut.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@878 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-26 14:30:59 +00:00
vsc
4e1899be78 typos ans small glitches from Christian
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@877 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-25 00:48:04 +00:00
vsc
99cfccfaf0 call garbage collection at every proceed.
don't try to expand indices on static predicates.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@876 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-24 23:53:48 +00:00
vsc
1f2fb8284a Two fixes:
GMP should not do error handling itself, as its execution env is
not reliable.
	allocate should check for space.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@875 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-24 14:51:42 +00:00
vsc
8df97ef09d more fixes for new indexing code.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@874 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-23 15:14:56 +00:00
vsc
0af6d3f1c4 more fixes for expand_index
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@873 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-23 12:41:31 +00:00
vsc
3e17f53c28 more fixes to new indexing code
a few fixes to functor


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@872 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-23 02:19:37 +00:00
vsc
f6170508cd more indexing fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@871 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-20 03:06:15 +00:00
vsc
0d441d069d fixes from Stasinos
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@870 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-15 19:06:55 +00:00
vsc
ac19e411a2 more fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@869 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-15 17:56:27 +00:00
vsc
c14a52c419 fix memory expansion
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@868 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-15 10:53:10 +00:00
vsc
98578b16dc more fixes for indexing code
stable stuff


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@867 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-09-15 01:25:29 +00:00
vsc
17ecf0dc14 continue big commit
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@863 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-08-27 13:37:10 +00:00
vsc
402d26796f fix indexing on multiple arguments
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@862 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-08-27 13:30:50 +00:00
vsc
2fe887d11a GetPredByAtomWithModule was not actually checking the module!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@859 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-08-25 18:42:35 +00:00
vsc
3831eeb927 fix \= on mavars.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@858 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-08-23 19:26:08 +00:00
vsc
a154a3f6e8 fix setarg(0,T,_).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@853 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-08-14 11:59:26 +00:00
stasinos
aadacd9fe6 do_var_clauses() and do_var_group() do not return anything.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@851 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-07-25 09:21:03 +00:00
vsc
d81fffeec9 try to make comparison faster in indexing code.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@837 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-06-06 13:16:40 +00:00
vsc
b936201465 improvements to indexing: allow user control and fix bugs in sorting
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@836 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-06-06 11:54:02 +00:00
vsc
eee154bb00 improve error handling for -c option
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@835 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-06-04 11:55:06 +00:00
vsc
f3914ac22e Fix error handling in -c option
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@834 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-06-03 20:37:31 +00:00
vsc
2bd2bcb68b fix bad understanding of put_y_val in add_info/index.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@832 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-05-23 12:31:50 +00:00
vsc
a77ceeac69 get rid of stdio.h
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@831 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-05-21 13:00:23 +00:00
vsc
7a6f4037bd more fixes for low level profiler.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@830 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-05-21 12:15:09 +00:00
vsc
0afb07931f patches to Ricardo Lopes' low level profiler: enable if SIGPROF is
there, do sorting, init PROFPREDS when you start counters, keep time
stamps for eventual assert/retract, and use qsort (3) to do less work.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@829 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-05-20 19:11:59 +00:00
vsc
d22fe2107c fix trouble with B=NULL for compiler
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@828 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-05-19 16:47:58 +00:00
vsc
bd383b7e3f more fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@827 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-05-19 13:04:09 +00:00
vsc
52b61e45ed fix meta-call handliong of : declarations
get rid of execute_within, we've got enough confusion around already.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@825 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-05-02 14:37:11 +00:00
vsc
6e17ac0070 fix count clauses
fix bigint in index.c


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@824 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-05-01 21:07:11 +00:00
rslopes
9a498e00f3 profiler update (now presents results by predicates or/and clauses)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@823 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-04-30 18:07:01 +00:00
vsc
d290885f8f new indexing algorithm
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@822 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-04-30 17:46:05 +00:00
vsc
601f91f653 fix call to garbage_collection from within assembly meta-calls
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@819 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-04-30 17:14:10 +00:00
vsc
a3ad9dbb8f fix bug in overflow handling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@818 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-04-30 12:57:21 +00:00
rslopes
8509b82b18 *** empty log message ***
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@806 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-03-21 18:21:35 +00:00
rslopes
9ff0aa5abb *** empty log message ***
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@805 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-03-21 16:59:38 +00:00
rslopes
1febfedc9d added Low Profiler to yap
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@804 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-03-21 16:18:42 +00:00
vsc
bf3c147f53 support long long for profiling counters. Requires better support for LL
in Yap code (only for __GNUC__ right now).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@802 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-03-20 15:10:18 +00:00
vsc
af6ac94451 fixed the way syntax errors are sent out in number_atom
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@800 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-03-20 14:21:12 +00:00
vsc
ca2da577af string parsing should stop at finding an EOF
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@796 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-03-13 18:30:33 +00:00
vsc
e33b33019b windows support
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@789 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-24 14:11:54 +00:00
vsc
51ea20683f fix setof to use catch instead of trying to do its own thing;
fix unnecessary white lines when outputting solutions.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@788 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-24 11:01:01 +00:00
vsc
8334aa1f5e protect live against people who hide system predicates away.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@784 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-19 16:43:24 +00:00
vsc
1709fbded4 call the garbage collector properly.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@783 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-17 10:36:40 +00:00
vsc
bca74cd190 fixes for int =\= long
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@782 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-14 12:20:57 +00:00
vsc
a31c94e31a guess what: more int=\= long changes!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@781 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-14 12:12:06 +00:00
vsc
33002a9a2a more int =\= long fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@780 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-14 12:06:42 +00:00
vsc
424509a54a int=/=long changes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@778 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-14 12:01:49 +00:00
vsc
786267cf94 fix a few int =/= long warnings.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@777 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-14 11:47:01 +00:00
vsc
cf86499728 always make shadow copy of A1 before starting new procedure, even if you
are doing a meta-call next!


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@776 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-14 11:41:05 +00:00
vsc
1f914e7746 fix GetCurInpPos to use the stream we are scanning, not current input.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@775 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-14 10:56:56 +00:00
vsc
e7f92398da fix SetAttVar: things may have changed since we asked to bind a variable.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@774 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-14 10:52:00 +00:00
vsc
06d65a5be7 garbage collector should register that retry_mark and friends have a hold
on a clause.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@771 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-12 15:40:04 +00:00
vsc
4d4516f848 >Code should be initialised in recordp and record_stat_p
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@770 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-12 14:02:42 +00:00
vsc
b37ee94fe9 you may have code and dbrefs at the same time.
try to expand trail in single sweep


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@769 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-12 13:20:52 +00:00
vsc
8c2af87600 check for modules everywhere in meta-calls.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@768 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-12 13:19:05 +00:00
vsc
bf12533e9f expand stack in parser was not processing TR right.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@767 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-12 13:18:28 +00:00
vsc
ce47ad0085 a logical updatable predicate may never be undefined, because it is dynamic.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@765 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-12 13:17:36 +00:00
vsc
9a032b656a fix previous module processing fixes
check if predicate is not in use before abolish static


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@763 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-11 16:33:24 +00:00
vsc
6bb873d03e more meta-call fixes
fix module expansion for builtins
fix path predicates.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@758 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-07 12:05:39 +00:00
vsc
c8c4c76e01 always pass B to meta-calls.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@755 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-30 19:34:26 +00:00
vsc
d3b8ad429d In optimised code for (A,B), tail should set E[B]
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@754 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-30 19:00:08 +00:00
vsc
533365611c fix meta_calls with modules inside comma
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@753 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-30 18:00:26 +00:00
vsc
f5dad3ac1f don't try to do module expansion if module borders are not crossed.
expand on-line depth_call and once.
improve write_x_loc


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@752 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-30 16:27:45 +00:00
vsc
1369dfa410 new meta-call scheme.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@751 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-29 14:47:17 +00:00
stasinos
64fbfbf476 The '\e' character constant is a GCC extension. Use '\x1B' instead'.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@747 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-22 17:23:18 +00:00
vsc
8a72ec94b9 make sure to initialise u.Code in dbase.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@745 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-21 23:27:02 +00:00
vsc
3d5b22a732 recorda_at and recorded_at
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@744 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-21 16:14:52 +00:00
vsc
499b3c6827 more fixes for \\n
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@743 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-20 15:13:21 +00:00
vsc
ef3c860fdc fix comparison predicates.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@741 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-13 14:02:50 +00:00
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
vsc
78923655b5 dynamic predicates with no clauses are not undefined, so
they should not point at UNDEFCODE but at FAIL_CODE


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@636 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-14 16:25:38 +00:00
vsc
523fae9544 stack overflow patches:
process overflows as high-level as possible;
   introduce overflow related errors
   ExpandWorkSpace should never call Error: use ErrorMessage instead,
   format_putc should never release memory, causes memory corruption,
   Linux does not like MAP_FIXED, it can overwrite the actual program
code.
   condor: twick configure to disable readline with condor.
----------------------------------------------------------------------


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@632 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-10 05:58:49 +00:00
vsc
3e662aca31 adjust HeapTop in save.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@631 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-09 04:26:48 +00:00
vsc
935665ec92 fix ^c abort for PCs: registers were not being reset properly.
fix error message in abort.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@628 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-08 14:32:42 +00:00
vsc
98d9c42c42 fix error handling for second argument of number_codes and
number_chars/2


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@626 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-08 05:00:36 +00:00
vsc
1fe8842094 Reset ErrorMessage before entering IndexPred (otherwise system will be
confused with previous errors).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@625 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-08 01:09:28 +00:00
vsc
dba17092b2 fix error handling when copy_term was not called from a builtin.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@624 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-07 21:20:12 +00:00
vsc
342faf6d89 Insert Christian patches:
- uncutable predicates;
  - call_cleanup/2.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@615 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-03 13:54:35 +00:00
vsc
e606c427fe move to UserMode when entering absmi.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@614 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-10-03 13:42:23 +00:00
vsc
08342b2905 fix sym
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@610 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-27 20:04:49 +00:00
vsc
fc3beab705 include support for April ILP system.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@608 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-25 04:29:01 +00:00
vsc
ac601e20b6 support static linking for Nuno Fonseca's database module.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@606 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-24 19:01:29 +00:00
vsc
d1c4016480 support dyld interface on Next and OSX machines.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@605 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-24 15:38:17 +00:00
vsc
ad67affbbd more experiments on load_dyld.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@604 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-24 14:20:56 +00:00
vsc
97c2bd2105 cleanup YapExecutable
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@602 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-23 17:06:13 +00:00
vsc
d4b8acf1fd fix recordifnot bug with ground terms
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@600 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-18 21:28:19 +00:00
vsc
d6778dac3a current_predicate should bever export prolog:(_:_)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@597 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-17 16:37:48 +00:00
vsc
89565bf45a fix current_modules/1 and 2 to return all predefined modules.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@594 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-17 00:14:23 +00:00
vsc
8ba604d9b3 count profiling entries from meta-calls, even if that means a little more
work.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@593 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-17 00:02:39 +00:00
vsc
e09b7fa8ad YAP_Deref should be in C-interface.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@592 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-16 23:25:09 +00:00
vsc
cf6391d96b make open/3 complain when trying to read after end of file.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@590 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-16 16:57:27 +00:00
vsc
00c4895761 fix typo
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@588 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-14 04:36:08 +00:00
vsc
2fff206939 fix current_predicate
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@587 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-13 21:30:06 +00:00
vsc
e801069a19 don't try to unify results for matching clause if we
can't find it.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@586 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-10 18:41:12 +00:00
uid49918
a758145ae9 dump stack on error
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@585 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-09 19:52:38 +00:00
vsc
21aab28a59 new error handlong mechanism
new YAP_ foreign interface
fix unbound_first_arg in call_with_args


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@582 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-09 17:40:12 +00:00
vsc
708437b794 Further updates to support call_counters
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@581 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-03 20:14:13 +00:00
vsc
94e9529128 first cut at call counter.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@580 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-03 14:28:09 +00:00
vsc
cf638188ce support hidden predicates
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@578 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-09-02 17:33:00 +00:00
vsc
483170acc5 allow compilation on WIN32 platforms.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@577 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-08-28 14:02:35 +00:00
vsc
b575ec7202 fixes to support condor better
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@575 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-08-18 23:18:18 +00:00
vsc
9e38e88084 fix dereferecing in unify
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@574 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-08-18 23:16:44 +00:00
vsc
8d1582433a fix bad exit when failing to allocate memory at boot
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@573 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-08-16 19:56:43 +00:00
vsc
5cc8ea1d52 hide_predicate
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@571 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-08-14 16:00:54 +00:00
vsc
325cfeeadc fix debugging info
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@570 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-08-13 17:02:26 +00:00
vsc
742299360c fix unification bug.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@569 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-08-13 16:51:37 +00:00
vsc
e5d7edf852 fix truncate
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@565 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-08-07 21:55:27 +00:00
vsc
0b00f3912b use calloc when malloc allocates memory
add_to_path should store atoms, not strings.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@558 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-07-23 15:49:06 +00:00
vsc
c27b23f3a5 miscellaneous fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@556 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-07-17 20:25:30 +00:00
vsc
73cfb5f100 make cd/1 complain on finding a wrong directory.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@554 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-26 05:17:14 +00:00
vsc
778d99255f call_with_args should check if first arg is atom
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@553 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-26 05:10:17 +00:00
vsc
818bca5fd5 dispose of debugging info.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@552 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-25 16:16:42 +00:00
vsc
ca59b7ad1a fix stasino's patch
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@551 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-25 16:13:56 +00:00
vsc
3271b43294 don't break GMP for external applications.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@550 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-19 21:46:56 +00:00
vsc
cea3ec187f fix the fixes to shell/1 and shell/2
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@548 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-18 05:58:12 +00:00
vsc
8b531d3293 fix spy of external procedures.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@547 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-18 05:25:02 +00:00
vsc
fa33648499 allow abolish of static procedures, even if they are being used.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@546 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-18 05:22:35 +00:00
vsc
77d112fa10 fix -h without size core dumping
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@544 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-18 04:27:33 +00:00
vsc
944d2e8aed fixes for YapRunGoal
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@541 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-18 02:27:53 +00:00
vsc
b48f1264b9 fix report on initial and token line for parser.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@540 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-17 15:28:01 +00:00
vsc
9809cca4d5 fix \newline in ISO mode (ROberto Bagnara).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@534 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-14 22:04:40 +00:00
stasinos
79372c4167 HP-UX 10.20 to 11.0: strerr_r() obsolete, FPU exception handling interface changed. Also use X/Open networking lib when available.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@530 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-13 18:24:04 +00:00
vsc
60ae7a9ce5 make gc much more aggressive at recovering db space.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@529 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-12 16:48:35 +00:00
vsc
0f027df00c fix backtrackable C-interface (patch from Christophe Billard).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@526 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-11 05:43:01 +00:00
vsc
7176752a68 fixes for abolish.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@525 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-11 05:30:47 +00:00
vsc
f305b0d4ee fix debug only compilation
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@521 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-05 14:23:15 +00:00
vsc
e7748d6234 fluffy stuff for atom garbage collection.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@519 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-05 03:59:50 +00:00
vsc
136f2b4ed9 fix syntax_errors properly.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@518 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-05 01:34:06 +00:00
vsc
3a660ed7af fix error handling in read to do what it should do.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@517 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-05 01:22:57 +00:00
vsc
26c23422e9 default mode for syntax error should be error, not just fail.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@515 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-04 21:14:39 +00:00
vsc
358714433c first take for atom garbage collector.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@513 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-04 18:21:55 +00:00
vsc
d5a459bb08 logical update semantics:
instance of erased element should fail;
  garbage collection now tries to recover space for code.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@512 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-04 00:46:32 +00:00
vsc
1ec4c2acaf fix debugger messages
debug imported mnodules
fix yap2swi in win32
fixes for solaris


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@505 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-01 01:46:06 +00:00
vsc
02a3bcec93 fix unreachable code
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@503 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-28 17:27:27 +00:00
vsc
3542cd5990 don't use YP_ in error.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@501 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-28 17:12:58 +00:00
vsc
b58dbff727 fix restore
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@498 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-28 16:26:00 +00:00
vsc
85f1080071 check for SA_SIGINFO
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@497 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-28 16:23:53 +00:00
vsc
2b684e4636 fix sigaction on SVR4 systems.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@493 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-26 04:03:56 +00:00
vsc
b9aefa0f94 fix debugging message that got away
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@492 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-24 18:25:25 +00:00
vsc
0f471f8810 I/O fixes: get_quoted would go through EOF, check if answer replied EOF
when asking for more solutions, readline in stream == 0 not 2.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@491 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-24 05:14:46 +00:00
vsc
ba40e074ea don't core dump if Yap tries to reconsult redirect standard input.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@490 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-24 04:45:05 +00:00
vsc
1ae6ae839d oops, pesky debugging message got through.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@489 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-24 04:01:22 +00:00
vsc
38f07b67de take care of the case where two files have different names but
are the same (at least for Unix/Linux).
recover $loaded space after initialisation.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@488 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-24 03:57:20 +00:00
vsc
c9be907884 fix bug in wakeup when in the middle of unifying a list (found by Bart Demoen).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@486 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-24 00:13:15 +00:00
vsc
41011ddb56 forgot committing arrays.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@483 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-23 12:44:18 +00:00
vsc
61affa1652 keep all dynamic arrays linked and garbage collect them.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@481 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-23 03:52:34 +00:00
vsc
bfca528833 more fixes on modules
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@479 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-20 14:19:03 +00:00
vsc
330b262560 fix modules bug
fix newly introduced coroutining bug


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@478 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-20 05:24:13 +00:00
vsc
9674c91da6 allow using malloc for memory allocation
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@477 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-19 19:04:33 +00:00
vsc
008cd709a1 improve the interface a bit more.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@476 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-18 04:01:53 +00:00
vsc
17728f58f5 beautification
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@475 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-17 01:01:07 +00:00
vsc
3b3a19f5d9 more stuff for foreign interface.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@474 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-16 20:33:00 +00:00
vsc
734d6ae2d3 debugging changes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@473 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-15 03:58:03 +00:00
vsc
e6215e8073 handle delay overflow while in copy_attachments.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@472 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-15 03:57:09 +00:00
vsc
92fe2d5c9f check overflow while copying constraints.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@471 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-15 03:41:19 +00:00
vsc
86e4a99d73 changes to support extended foreign interface (include slots, new exception
handling for C-code, and several fixes to calling foreign code).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@470 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-14 18:24:34 +00:00
vsc
5bad222cfa fix case where code moved but base addresses didn't
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@469 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-14 18:22:42 +00:00
vsc
e0a80c43c5 debugger should not give any specific meaning to false.
init must only initialise preds after undef is made.
don't give annoying messages in s or t, just continue


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@467 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-10 15:04:03 +00:00
vsc
d2a6f16e4a handle stack overflow within =..
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@466 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-07 21:19:52 +00:00
vsc
97f7414cd2 fix debugger typos
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@465 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-07 03:51:59 +00:00
vsc
ec48cc9e24 fix overflow in copy_term_no_delays
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@464 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-07 02:52:08 +00:00
vsc
b8b8dd6a45 C-interface improvements
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@463 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-06 15:33:05 +00:00
vsc
722b798507 move tabling gc code to tabling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@461 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-03 18:15:37 +00:00
vsc
4fc1a2ff42 put tabling back to work
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@460 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-03 15:30:36 +00:00
vsc
83c4fab84c socket fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@459 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-01 16:19:43 +00:00
vsc
a23bff9b6b fix wrong ! in debugger
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@457 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-26 19:15:21 +00:00
vsc
238598e41f socket reading and writing was broken under MINGW32.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@456 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-24 14:17:56 +00:00
vsc
b63425bf5c fix copy term when the same constrained term appears several times.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@455 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-24 02:52:34 +00:00
vsc
376d26f93f more fixes to error checking in error access.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@454 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-23 23:23:45 +00:00
vsc
2d5fc60330 fix debug info in errors.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@453 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-23 22:45:21 +00:00
vsc
778dbbde3e fix anon vars in new syntax_error
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@452 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-23 22:43:10 +00:00
vsc
13d72287f1 fix WIN32 makefiles
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@449 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-22 23:33:00 +00:00
vsc
60c859d470 diverse fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@448 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-19 14:43:39 +00:00
vsc
4824e0f247 fix handling of end_of_file before end_of_term
fix overflow in constructing syntax error term.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@447 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-19 14:42:58 +00:00
vsc
d3942df58c it looks like mod for execute_in_mod may be instantiated.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@446 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-19 14:41:56 +00:00
vsc
0ddc85551f fix format overflow bug;
fix variables in syntax error handler


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@445 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-16 19:48:45 +00:00
vsc
6f8a9f3042 compiler expected module instantiated.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@444 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-13 04:59:00 +00:00
vsc
be3a996d1e WakeAttVar should only test if variables it is binding are in queue
ugraphs should not bind variable


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@441 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-13 04:39:03 +00:00
vsc
13cb0c1e13 syntax_error now throws error;
fix handling of error if no top-level handler is available


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@440 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-11 15:31:58 +00:00
vsc
03484b9960 fix bad marked var in copy_att_var
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@439 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-11 01:43:09 +00:00
vsc
3a78f26888 fix bug with gc being called from recorda
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@438 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-10 05:16:58 +00:00
vsc
d8384f4bf3 fix bad code for unify_float and friends
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@437 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-09 16:53:00 +00:00
vsc
061670eeb0 bad meta-call causing undetected module overflow.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@436 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-09 15:12:14 +00:00
vsc
83a9b6530e fix overflow in copy_term's internal stack
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@434 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-08 22:10:14 +00:00
vsc
3ef0b143b0 fix debugging in the presence of goal_expansion
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@432 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-06 05:33:44 +00:00
vsc
bd654f1e18 fix overflow when copying terms with attributes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@430 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-06 03:54:18 +00:00
vsc
ff0b60d7a7 fix error handling from within recursive invocations of emulator
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@427 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-03 19:33:38 +00:00
vsc
b62af46858 fix numbers in syntax errors
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@426 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-04-03 19:32:44 +00:00
vsc
6a28b0a02b portray within debugger may not be debugged.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@423 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-28 18:48:55 +00:00
vsc
6f051a5025 fix arrays of generic terms.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@422 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-27 20:53:58 +00:00
vsc
de1a4700b6 fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@412 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-12 15:10:09 +00:00
vsc
0b0b6b103b disable MPI checking by default.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@406 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-12 04:07:10 +00:00
vsc
5503ea22f3 try to decrease HeapTop if recovering space on top of Heap;
change overflow code to be less relying on non-decreasing Heap.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@405 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-08 06:33:16 +00:00
vsc
7460eccabd help Ines by adding a predicate that loops for ever (useful for // debug).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@404 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-08 06:32:11 +00:00
vsc
75669bf0d8 make sure that undefp is defined before we start adding predicates!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@403 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-08 06:31:32 +00:00
vsc
8b97aac875 don't trust Error_TYPE unless ErrorMessage is set
fix ^cstats fix


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@401 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-07 05:47:24 +00:00
vsc
7c6b48a20d in interrupt handler show the heap we use, not what we claim we use
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@400 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-07 05:38:20 +00:00
vsc
798bdbdf39 be more careful about error handling when storing DB terms
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@399 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-07 05:13:21 +00:00
vsc
43cad85ace fix debugging of [-f].
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@398 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-04 15:55:13 +00:00
vsc
44a00eb7fc compiler would break with g :- a:[u].
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@396 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-04 03:25:41 +00:00
stasinos
fc7943925d typos
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@394 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-28 18:58:30 +00:00
vsc
20444412f5 gc in dexecute should not use current Y, instead if should look at
parent's Y.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@393 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-28 18:25:55 +00:00
vsc
d5a0f6d9ec improve statistics from ^c handler
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@391 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-27 02:39:11 +00:00
vsc
ec2e474e5c don't give up if you don't have enough space to expand the consult stack.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@390 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-27 02:10:01 +00:00
vsc
499adf4cf4 copy value structs to stack
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@389 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-27 01:20:18 +00:00
vsc
4d76fbc47e fix set_value for long and big integers, and for floats
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@388 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-27 01:11:51 +00:00
vsc
07c18abb98 op_names should compile without debug
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@385 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-26 21:11:57 +00:00
vsc
c15ce56e12 if you try to reconsult over active clauses, kill the preexisting ones
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@383 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-26 21:01:32 +00:00
vsc
fb8624f5ac always allow assert_static
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@382 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-26 20:16:36 +00:00
vsc
49058f2b72 fix inconsistency
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@380 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-26 17:50:33 +00:00
vsc
3188f75455 list all active predicates
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@379 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-26 17:49:09 +00:00
vsc
78b05ee716 undo stasinos' changes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@378 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-26 17:48:14 +00:00
vsc
97ea77853e fix debugging messages again
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@377 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-26 17:41:53 +00:00
stasinos
8896953bec comparing int with ptr gives an error in HPUX
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@375 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-26 16:45:11 +00:00
vsc
c771c14b0f disable cache when checking whether static was in use.
heap overflow while storing db term.
trust_fail should be preceeded by an sla.
make sla point to current pred, get rid of current pred in bitmap.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@374 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-26 15:51:54 +00:00
stasinos
dcbba128ff a first take at an MPE interface
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@371 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-22 14:31:45 +00:00
vsc
f92947d61b configurarion changes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@369 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-22 06:12:18 +00:00
vsc
f3756717fb fix gcc dependent code
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@367 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-18 15:26:41 +00:00
vsc
e74b412591 fix bad compilation of arithmetic in disjunctions
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@361 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-14 04:32:09 +00:00
vsc
401ad9c9fc more c-c fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@359 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-12 21:40:36 +00:00
vsc
777817f8db fixes for signal handling
throw permission error on consulting bad files


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@358 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-12 18:24:21 +00:00
stasinos
5b10a066dc a first take at an interface to an MPI lib
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@355 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-11 20:46:41 +00:00
vsc
0dbc5373b4 atom_oncat was not allocating memory right
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@353 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-11 20:22:15 +00:00
vsc
1f5af38ba8 file_search_path
host_type


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@351 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-08 22:19:24 +00:00
vsc
293fdf9061 VC++ changes
use clock in WIN98
fix manual
get rid of ISO X/0


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@347 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-04 16:12:54 +00:00
vsc
5139d1a8dc moved to H directory
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@346 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-03 16:19:22 +00:00
vsc
df70f8981a don't need it any more
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@345 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-03 16:18:46 +00:00
vsc
20c6b50a0d fix error after error and error within error
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@344 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-02-01 15:48:17 +00:00
vsc
f3c031633b ISO work
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@342 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-30 04:56:43 +00:00
vsc
f9ff6498d8 more simplifications on the catch and throw mechanism after
having failed the ISO testset.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@341 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-30 03:49:50 +00:00
vsc
af7cb4cd93 more fixes for catch and throw
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@340 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-30 02:20:44 +00:00
vsc
be135b514f fix error messages
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@338 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-30 00:28:42 +00:00
vsc
e5022b9c2a fix recordifnot
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@336 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-30 00:26:43 +00:00
vsc
28128ed29c make Error Handler call throw in C, instead of doing messy
Prolog code.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@335 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-29 05:37:31 +00:00
vsc
f255ec7532 yap_flag(gc_trace,very_verbose).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@333 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-28 04:30:40 +00:00
vsc
61db1ea1d4 make user the name for user streams
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@331 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-27 22:00:32 +00:00
vsc
6e18479ee2 add -f option
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@329 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-27 20:40:10 +00:00
vsc
81d38acbc9 fix use_modules to deal with modules;
allocation fix for simplesim


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@328 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-26 05:37:32 +00:00
vsc
5e938b92c4 new version of throw using Bart's idea
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@327 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-24 23:55:34 +00:00
vsc
721746bd64 fix lcc fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@323 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-23 05:03:36 +00:00
vsc
bc9b7908cd lcc fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@322 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-23 05:01:06 +00:00
vsc
d108f4123c fix IO for simplesim
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@320 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-23 02:28:31 +00:00
vsc
fe63bae633 fix new consult code
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@319 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-22 19:29:28 +00:00
vsc
ac1c243bf3 make gc support new catch and throw mechanism
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@316 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-22 15:06:22 +00:00
vsc
04aae3895d fix alarm in WIN32/cygwin (I hope).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@314 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-21 20:07:15 +00:00
vsc
363a201ad2 fix allocation misspelling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@313 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-21 15:26:48 +00:00
vsc
71f276e5db debugger: fix bad uses of metacall.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@312 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-19 16:10:53 +00:00
vsc
d70b5be256 new debugger code would get lost in meta-calls
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@310 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-18 15:55:33 +00:00
vsc
2a156ddf33 debugger improvements
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@309 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-18 04:24:10 +00:00
vsc
35ba78008b fix bad memory information in Interrupt Handler
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@308 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-17 22:12:09 +00:00
vsc
b53ca0ed7b fix some crashes on abort
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@307 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-17 19:42:50 +00:00
vsc
cd843ac559 fix bad uses of do_div in sysbits.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@306 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-17 17:16:22 +00:00
vsc
289d0da079 fix point where we assume unbound array
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@303 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-16 22:08:03 +00:00
vsc
9966ff57c6 fix overflow fixes for p_execute in absmi.c
execute_last was not decreasing depth (thanks to Camacho for finding out).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@299 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-16 05:32:17 +00:00
vsc
4c63dbee3d in execute instructions, stack checking should be performed before
cleaning the arguments


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@298 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-16 05:10:30 +00:00
stasinos
502e15be8e change the sig_pending flag int a stack
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@294 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-15 15:44:57 +00:00
vsc
4414acbdf9 fix unix environ
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@293 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-14 22:26:53 +00:00
vsc
095e851b00 fix HAVE_SIGACTION
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@292 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-14 22:25:17 +00:00
stasinos
6951619ae2 signal handling made more generic
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@290 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-11 15:54:17 +00:00
vsc
77f57ba928 get rid of debugging message in iopreds.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@286 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-10 21:41:54 +00:00
vsc
bd28a74d45 fix error handling in debugger (first try).
add extra argument to handle.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@284 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-10 18:01:14 +00:00
stasinos
7849f7b54e SIG_USR handling seems to be working
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@282 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-09 17:19:36 +00:00
vsc
8496030d8a built-ins should not interfere with trace
new catch/throw design


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@281 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-08 05:22:40 +00:00
vsc
5997e5a109 new catch and throw mechanism (first try).
hide built-in predicates that should not be seen in trace mode


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@275 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-07 06:28:04 +00:00
vsc
076b8e12e5 get rid of debugging message
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@273 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-05 07:01:29 +00:00
vsc
23c4441434 open_socket would crash if it could not open a new stream
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@272 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-05 07:00:19 +00:00
stasinos
91476a8e78 HAVE_GCC is always defined, as 0 or 1
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@269 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-04 07:33:02 +00:00
vsc
8277a5bb8e temporary fix for compiling heapgc.c in HP-UX
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@267 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-03 22:48:46 +00:00
vsc
48b5a364e3 fix 'aaaa''aaaa' in no escape mode
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@266 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-03 18:35:46 +00:00
vsc
74f1a5310a fix select
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@265 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-03 17:15:50 +00:00
stasinos
ae9c3660b8 work around HP optimiser bug
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@264 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-03 16:31:39 +00:00
vsc
8155e3fbf1 don't do garbage collection while in ErrorMode
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@262 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-03 16:27:00 +00:00
vsc
d678864273 get rid of debugging printf
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@260 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-03 06:41:14 +00:00
vsc
50128d8f6f fix infinite terms in DB
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@259 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-03 06:26:15 +00:00
vsc
698f6d2c04 fix call_with_args(a, 1, 2, 3, 4, 5, 6, 7).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@258 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-03 02:49:33 +00:00
vsc
e722826047 segmentation violation in SVR4 is fatal error!!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@255 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-02 22:35:18 +00:00
vsc
3d496ae6be fix partitioning in garbage collector
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@254 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-02 22:26:37 +00:00
vsc
7064c42fc1 check for available space in GetName
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@253 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-02 20:56:22 +00:00
vsc
3962e559aa style check fixes
improve error message on redefining system predicate


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@252 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-02 16:55:24 +00:00
vsc
666bb88a7e make phrase/2 and phrase/3 meta-predicates
improve message in scanner.c


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@251 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-02 07:17:21 +00:00
vsc
441ad190ff fix absolute_file_name
put intermediate data structures for system in TR


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@249 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-02 05:35:20 +00:00
vsc
c1943be66e make rem and mod ISO compatible.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@247 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-02 00:34:44 +00:00
vsc
505ca22f04 get rid of debug message
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@246 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-01 05:37:38 +00:00
vsc
1217ecee1f fix the consult overflow right!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@245 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-01 05:26:25 +00:00
vsc
b9af9bc08c revert large constraint stack patch.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@242 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-27 22:39:42 +00:00
vsc
eade3e8e44 fix debugger when tracing over system builtins.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@241 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-27 22:38:41 +00:00
vsc
e34262878d fix ! in debugger in source mode.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@240 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-21 05:41:01 +00:00
vsc
bdbcb1e005 fix wrong cast for large links
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@239 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-21 04:04:19 +00:00
vsc
8bd62b9125 fix gc of named arrays.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@237 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-20 01:07:42 +00:00
vsc
2b78d7ce14 pesky ^C and abort fixes (I hope)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@236 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-18 22:01:26 +00:00
vsc
7e22cb486f use Error instead of Abort
Fix annoying 16MB limit


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@235 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-18 16:17:26 +00:00
vsc
6ca40989fa disallow indexing on floats and friends.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@234 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-17 23:31:38 +00:00
vsc
7b77c87b94 store constraints in DB
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@233 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-17 18:31:11 +00:00
vsc
c79f7e0f35 fix expand_consult
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@232 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-15 04:47:41 +00:00
vsc
47b1ef2b63 fix call to debugger with wrong module
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@231 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-14 19:03:29 +00:00
vsc
e5bd31a385 fix call_with_args
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@230 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-13 17:51:26 +00:00
vsc
4cda9b3ad1 fix error handling;
[] should complain if compiling over code in use


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@228 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-12 19:36:51 +00:00
vsc
3924f4662a fix predicate location in error messages
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@226 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-11 19:12:41 +00:00
vsc
2e2ddf394b fix ! from deterministic goals cutting across meta-call
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@225 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-11 16:40:51 +00:00
vsc
6a34f51a25 fix copy_term between constraints
change visiited stack in unify to AuxSp because H can be changed
by woken goals


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@221 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-11 03:34:03 +00:00
vsc
43550a67a8 debugger fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@218 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-07 20:27:03 +00:00
vsc
f46101a01a fix module change over meta-calls (partially)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@216 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-07 16:32:36 +00:00
stasinos
3ce0ace98b the MkIntegerTerm macro really, really requires Int arguments
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@214 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-06 11:20:21 +00:00
vsc
9c7149eab5 fix overflow while shunting in garbage collector;
start debugging tabling bug (ai_tests).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@210 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-02 16:54:39 +00:00
vsc
80e5fc7285 fix queues
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@208 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-12-02 16:29:00 +00:00
vsc
45a0bc7aef fix ; -> and ! in meta-call (again)
fix peek and read


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@207 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-29 20:29:52 +00:00
vsc
4f274d67a8 fix -> in disjunction in meta-call
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@202 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-26 19:22:52 +00:00
stasinos
e0ff7e9fb2 move arch-independent file to share
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@200 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-26 16:05:19 +00:00
vsc
42de8a6f82 fix indirect gc when first Heap cell is not collected
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@199 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-26 12:33:05 +00:00
vsc
88e90c7991 fix previous bug right! (var_array was not a slot so you also should
remember the last slot).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@198 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-25 21:58:31 +00:00
vsc
c39fc5e742 fix heap overflow while indexing (label_array was not being copied properly)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@197 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-25 21:44:42 +00:00
vsc
10394c4c99 fix number_ operations to handle number_*(2,[L]).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@189 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-19 23:19:23 +00:00
vsc
cc87125253 give decent info in gc
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@187 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-19 17:54:00 +00:00
vsc
5ab74e898a small fixes for error handling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@185 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-19 03:36:51 +00:00
vsc
5682ce7622 fix user c predicates
fix Makefiles to handle case where so is o.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@183 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-18 21:00:57 +00:00
vsc
b2934a5aeb fix abolish/1
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@182 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-16 20:27:06 +00:00
vsc
b289d9ac9c new module system. BEWARE! BEWARE! BEWARE!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@177 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-11-15 00:01:43 +00:00
vsc
a628251951 further optimisations to execute a,b.
cleanups.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@176 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-10-31 20:16:48 +00:00
vsc
4fad5b3f3e fixes for RISC machines
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@174 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-10-30 23:07:58 +00:00
vsc
418fb0680a fix locking for YapOr
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@173 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-10-30 22:13:18 +00:00
vsc
a543874856 p_execute_within
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@172 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-10-30 20:35:19 +00:00
vsc
c327cafdaa fix depth_limit in call/1
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@170 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-10-30 16:59:16 +00:00
vsc
458a0a857f New metacall mechanism
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@169 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-10-30 16:42:05 +00:00
vsc
4688551043 faster access to predicate code from functor
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@167 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-10-03 13:39:16 +00:00
vsc
2eb822797e compile under sun's cc.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@165 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-09-24 18:07:16 +00:00
vsc
34010ba45a should be TrailTop, nao LCL0
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@164 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-09-24 14:35:58 +00:00
vsc
af370a73e3 fixes to allow more memory: disable gc after crashing with MBIT, start
from 0x09 instead of 0x10.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@163 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-09-24 14:06:06 +00:00
vsc
0258eb0aab don't try doing gc if stacks have overflowed into RBIT
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@162 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-09-24 13:47:30 +00:00
vsc
f928b9452b another try at improving ^c with readline
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@160 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-09-21 14:22:32 +00:00
vsc
cbd499b8df bignum should always reset pre_alloc_base and recover Heap space
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@158 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-09-18 15:14:11 +00:00
vsc
8f72bc3c91 fix debugging
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@157 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-09-12 15:52:28 +00:00
vsc
8404e8eaff fix SICStus compatibility bugs in sockets
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@145 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-09-03 16:05:59 +00:00
vsc
41cc6c0f4e minor changes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@142 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-08-27 14:44:07 +00:00
vsc
5390e2e92f fix bad declaration of readline_jmpbuf
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@141 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-08-13 22:52:33 +00:00
vsc
5d5ddd864e avoid unnecessary flushing in readline
fixes to manual
make flush work for readline


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@140 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-08-13 09:19:00 +00:00
vsc
7d73127461 make Yap run under Emacs/WIN32
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@135 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-08-09 14:00:51 +00:00
vsc
8fd1bc92f3 support trace
fix for ^c in readline


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@133 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-08-08 21:17:27 +00:00
vsc
eade18026c fix fflush
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@125 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-07-16 15:26:14 +00:00
stasinos
3a752aca82 a CELL is not printable as %d in 64bit machines
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@119 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-07-06 13:15:16 +00:00
vsc
6e241c6c8b new statistics.
better precision when writing floats.
use_module should check file modificiation time.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@118 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-07-05 20:23:21 +00:00
vsc
27526bcb0d improve support for cross-compilation with simplesimscalar
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@117 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-07-05 16:14:15 +00:00
uid49918
1578e68ec3 fix bugs in tabling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@116 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-07-04 16:48:54 +00:00
vsc
3de3c1b7d2 improve system library.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@113 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-29 19:30:25 +00:00
vsc
78129e932f fix bug in instruction compression->glist_val <> get_list+unify_local
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@111 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-29 12:45:18 +00:00
vsc
a18e3790d0 make sure I restore H and TR before I do SetDBForThrow
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@110 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-27 17:24:27 +00:00
vsc
1d5e4c4956 save H for alpha.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@109 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-27 17:12:44 +00:00
vsc
22211cb453 fix abort in Alpha
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@108 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-27 15:46:26 +00:00
vsc
fa40e9e92f in Abort: don't check args for empty string
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@107 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-27 15:36:38 +00:00
vsc
efd998524f More interrupt handling cleanups!
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@104 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-27 13:22:30 +00:00
vsc
42204357ec Fix c-stack overflow for very deep nested terms.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@102 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-27 12:46:35 +00:00
vsc
4c75fbc022 don't need to throw catch.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@100 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-22 20:26:55 +00:00
vsc
bf661fcdd6 get rid of has_tabling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@99 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-22 19:50:26 +00:00
vsc
f22f7434c7 fixes to?\012handle interrupts ^C in Windows.
Improvements to configure scripts for WIN32 configurations.
--with-readline= option for configure


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@96 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-22 17:53:36 +00:00
vsc
c3e7f600d5 Yap would get order of variables in terms wrong.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@95 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-19 17:51:07 +00:00
vsc
5a39daa400 In ISO term order, floats are always less than integers.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@93 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-19 17:34:27 +00:00
vsc
7d50fd267d parser should parse +inf,-inf,+nan,-nan as floating point numbers
write should write inf as +inf and nan as +nan


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@92 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-19 16:31:59 +00:00
vsc
54e9dc271d fix == at top-level
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@91 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-18 18:33:20 +00:00
vsc
792d836ee6 cleanup error messages in functor/3
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@90 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-18 18:31:19 +00:00
vsc
d9edb0d992 fix HBREG mess
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@89 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-18 18:24:00 +00:00
vsc
e56a11ce3c fix debugging messages and bad comparison
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@88 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-18 18:23:14 +00:00
stasinos
c6e0d82d0b fixed inconsistency between between the two declarations of TracePutchar()
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@87 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-13 17:52:33 +00:00
stasinos
93f9f77df8 fix a declaration-definition inconsistency in YapCloseAllOpenStreams() and an unreachable code bug in YapOpenStream()
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@86 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-13 17:18:38 +00:00
vsc
c9c8aeb3cc Improve readline code:
don't flush if we change output stream;
   use readline from interrupt handler.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@85 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-12 17:25:28 +00:00
vsc
474be299f4 always send debugging messages to stderr.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@84 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-12 16:31:09 +00:00
vsc
96ae69e8d6 missing break in ~n option for format.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@79 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-11 18:42:11 +00:00
vsc
61c322b9fa fix && instead of &
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@78 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-11 17:47:02 +00:00
vsc
0164f32c36 support recent readlines.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@77 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-11 17:40:16 +00:00
vsc
a0debea045 get rid of pesky debugging message
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@76 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-11 15:15:17 +00:00
vsc
55aa368d05 support for configure 2.5
recover memory in catch/throw.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@75 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-11 15:12:07 +00:00
vsc
6e2ccc4cf4 fix big ints in gc
recount trail pointers that were reset in the previous step


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@74 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-11 15:09:36 +00:00
vsc
e8b19c99c1 Partial update of tabling/SBA code to new timestamp
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@73 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-08 20:23:38 +00:00
vsc
136a4d4a67 fix divide by zero error on debugging message if trail was empty
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@71 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-08 19:33:16 +00:00
vsc
835f315727 access_array_element is unsafe
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@70 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-08 19:22:35 +00:00
vsc
97d882c1a7 use arrays to implement catch and throw instead of record
cleanup queues at top-level and at catch-throw.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@69 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-08 19:10:43 +00:00
lfcastro
08ebcf94be * the previous typo correction seemed to be reversed, so...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@68 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-08 18:21:35 +00:00
lfcastro
6cc04e235b * fixed a typo in PutAtt (timestmp -> timestamp)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@67 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-08 18:16:07 +00:00
vsc
95a113aac9 trail_ref cleanup
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@64 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-08 14:52:54 +00:00
vsc
be02a4f6ab get rid of unnecessary casts
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@63 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-08 13:39:07 +00:00
vsc
bced653577 fix for ~NN
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@61 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-08 13:38:07 +00:00
vsc
f733ea5bdb ! in call((a(X),!)) would not cut a(X)
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@59 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-07 16:58:06 +00:00
vsc
38247e38fc cleanup of CLPQR and CHR;
simplification of module handling;
new timestamp implementation


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@52 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-06-06 19:10:51 +00:00
vsc
82438c1d6f fixes in modules
system support for WIN32 (first try).
small fixes.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@45 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-28 19:54:53 +00:00
vsc
27e367f0a5 fix X is ceiling(E).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@44 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-25 20:08:38 +00:00
vsc
a47ba033b2 $stream as a single argument.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@43 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-24 18:02:01 +00:00
vsc
593f7ee64f small bug fixes and documentation for extra C-functions.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@42 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-24 15:26:41 +00:00
vsc
c0ef937614 fix datime/1, system/2 and declaration for p_stream.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@40 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-22 20:41:52 +00:00
vsc
59fdfadfa9 new $stream(T) checks if a term is a stream,
so that I don't have an excuse to call current_stream(_,_,S) with S
something not a stream.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@39 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-22 16:14:30 +00:00
vsc
5c0d82b07d fix debugging flags
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@38 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-22 12:37:23 +00:00
vsc
8dcee4415b library(system) plus several new support builtins
much improved garbage collector
improvements to compiler
yaptab compiles again


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@34 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-21 20:00:05 +00:00
vsc
3cde0b23bb fixes to compilation of functor and ASP calculation for gc.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@31 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-08 20:39:01 +00:00
vsc
bac5432950 garbage collecting fixes
compile trues at the end of body
fix call_residue/2 so that constraints cannot escape (yet again).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@30 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-07 19:56:02 +00:00
vsc
e98f8d7106 make gc work outside debugging
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@28 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-07 14:01:09 +00:00
vsc
171b6043a5 port to OS/X
fix shunting trail entries.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@26 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-07 13:53:19 +00:00
vsc
3e0d96844f get alloc.c right for AUX.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@25 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-03 18:48:06 +00:00
vsc
6a8e087730 fix alloc.c
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@24 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-03 17:23:30 +00:00
vsc
f48f399540 memory allocation patches for Apple's OS/X.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@23 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-03 17:13:18 +00:00
vsc
18ff961273 get rid of random quicksort
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@22 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-02 17:57:42 +00:00
vsc
245aeff128 new gc algorithm for deterministic programs plus fixes on ASP calculation.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@21 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-05-02 14:19:10 +00:00
vsc
1a8009654f fixes for modules, buffering, YP_*, live vars for gc, and nth(0).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@20 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-27 16:02:43 +00:00
vsc
70dda6cc70 WIN32 fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@19 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-26 17:53:37 +00:00
vsc
47e595a624 small fixes
gc improvements
WIN32 library fixes


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@18 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-26 14:44:43 +00:00
vsc
6f3d55651c handle all opcodes in restore/1 and fix ord_union/2 bug.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@17 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-25 20:31:00 +00:00
vsc
3a3a0ff465 - Fix extension end marker database bug.
- Fix statistics/0.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@16 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-25 13:27:14 +00:00
vsc
5bd09d8408 if/3
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@15 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-24 16:40:11 +00:00
vsc
98283101bb support for inlined execution of functor/3 and arg/3/3/3
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@14 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-23 20:41:58 +00:00
vsc
3f5f0c6d4b Inline arg
IO fixes


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@12 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-20 15:48:04 +00:00
vsc
c5c775f933 - early_reset and simple_shunting on
- fix non early_reset


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@10 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-18 12:24:45 +00:00
vsc
71c18ef912 new predicates atom_concat and list_concat
prolog_flag(version,X).
0'\ escape sequences
first try at profiling early reset (garbage collector is broken now).


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@9 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-17 21:07:41 +00:00
vsc
da817ebbe5 First patches for 4.3.19:
new Makefiles for documentation;
   user_{input,output,error} streams are now aliases;
   restore YapLibDir
   support $(DESTDIR)
   fix call_residue/2


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@8 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-16 16:41:04 +00:00
vsc
e5f4633c39 This commit was generated by cvs2svn to compensate for changes in r4,
which included commits to RCS files with non-trunk default branches.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@5 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2001-04-09 19:54:03 +00:00