Commit Graph

165 Commits

Author SHA1 Message Date
Vítor Santos Costa 514758e65b imake call_foreign_function module aware. 2010-12-01 19:30:58 +00:00
Vítor Santos Costa 735f318b77 fix silly cut in autoload 2010-06-18 00:30:11 +01:00
Vítor Santos Costa 4a5a74929c give correct opts to absolute_file_name 2010-06-17 11:05:17 +01:00
Vitor Santos Costa 3cb5e57833 declare meta-predicate call arguments (Paulo Moura). 2010-04-22 20:45:57 +01:00
Vítor Santos Costa II 52ef6ae819 improve dialect support (make it less hackhish).
first  attempt at emulation of autoloader.
2010-04-22 12:16:37 +01:00
Vítor Santos Costa II 1a4c414831 meta-expansion should be done before calling goal_expansion :( 2010-04-20 23:14:15 +01:00
Vitor Santos Costa 5b1a2067f9 add support for with_output_to/2. 2010-04-14 10:57:00 +01:00
Vítor Santos Costa II a3667150d3 remove debugging message 2010-04-13 13:34:05 +01:00
Vitor Santos Costa 0546df7ac3 fix goal_expansion 2010-03-01 22:30:31 +00:00
Vitor Santos Costa dcd1c37fa8 make expand_goal built-in. 2010-02-28 22:25:54 +00:00
Vitor Santos Costa 2cb3ef5fa4 fix set_base_module to retract previous modules,
add delete_import_module.
2009-12-04 21:32:36 +00:00
Vitor Santos Costa b3088710d3 emulate SWI module inheritance mechanism (at least, I hope). 2009-12-04 11:00:13 +00:00
Vitor Santos Costa bc4b718afb follow import recursively so that we don't lose properties like being a
meta predicate.
2009-12-03 16:33:44 +00:00
Vitor Santos Costa fe6148ef15 be more cautions about removing prolog: from calls. 2009-11-23 10:15:11 +00:00
Vitor Santos Costa ffe1dfdfff support for module based operators. 2009-11-20 00:33:14 +00:00
Vitor Santos Costa f7214090cb make operators defined within a module local to the module, operators in header are still global to every module, though (UN #131). 2009-11-17 00:59:06 +00:00
Vítor Manuel de Morais Santos Costa 3b7e5544f6 m:subgoal should compile subgoal with m as default module (obs from Nuno Fonseca). 2009-11-04 12:29:31 +00:00
Vítor Manuel de Morais Santos Costa 0f4b64d199 make should only look at reconsulted files, it makes no sense to use make for
consulted files.
2009-10-16 08:31:23 +01:00
Vitor Santos Costa 557ed169e8 fix processing of meta-arguments. 2009-06-14 22:58:12 -05:00
Vitor Santos Costa a22f66a4fa don't import everything in a module by default when reexporting it #134 2009-06-14 12:16:54 -05:00
Ulrich Neumerkel 7ae4c887fc Instantiation error for looping :- meta_predicate P. 2009-06-08 20:26:57 -05:00
Vitor Santos Costa 99ac4f4d4a handle SWI style goal expansion natively, instead of trying to be smart. 2009-05-24 19:18:52 -05:00
Vitor Santos Costa c7066b43ec first try of setup_call_cleanup/3 and setup_call_catcher_cleanup/4 2009-05-19 23:53:14 -07:00
Vitor Santos Costa 04fa96e8a0 add call_residue_vars (SWI and SICStus 4 compatibility). 2009-05-13 16:43:24 -05:00
Vitor Santos Costa f668676e72 make a better effort to avoid walking through system code. 2009-04-17 15:46:13 -05:00
Vitor Santos Costa fc2e01f320 improve code for disjunctions by trying to avoid permanent variables. 2009-03-10 16:24:26 +00:00
Vitor Santos Costa ad2d073184 allow better writing of inlined operations
disallow eval.yap
2009-02-16 21:04:30 +00:00
Vitor Santos Costa 8a3978e3e1 rename BinaryTestPredFlag to BinaryPredFlag
get rid of small annoying arithmetic bugs
2009-02-09 21:56:40 +00:00
Vitor Santos Costa 67d9e0ef26 fix compilation of (V;_) where V is unbound (obs from Ingo Molnar). 2008-10-29 18:16:11 +00:00
Vitor Santos Costa 46744810ae support exporting DCG rules as // (swi compatibility). 2008-08-24 14:24:02 +01:00
vsc 2c829f8e5c fixes to module expansion
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2295 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-08-06 00:56:11 +00:00
vsc 75c72d7b7d SWI and module fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2290 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-07-22 23:34:50 +00:00
vsc 8e6403794f fix abolish bug
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2252 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-06-02 17:20:28 +00:00
vsc 316811d2cd user:goal_expand should be called before import
add extra apply_macros and apply stuff; fix unexisting definitions.
add forall/2 and ignore/1 to system stuff.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2237 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-05-15 13:41:48 +00:00
vsc 1090771c90 fix breakage in module system
disable stack writing in error for now


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2155 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-17 18:31:16 +00:00
vsc d02bc3de81 update chr
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2143 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-13 14:38:02 +00:00
vsc fda34985b9 fix lists predicates
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2141 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-12 17:05:04 +00:00
vsc c07c5286c0 replace $append by lists:append
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2140 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-12 16:26:51 +00:00
vsc d0cd8182d9 fix path issues when opening files
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2137 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-12 15:37:34 +00:00
vsc 17d16e0b14 Big update to support more SICStus/SWI like message handling
fix YAPSHAREDIR
fix yap.tex (Bernd)


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2107 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-02-22 15:08:37 +00:00
vsc 6cc240fe7f get rid of silly debugging message.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2101 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-02-14 16:34:14 +00:00
vsc 88bb8c81aa fix stupid module bug I introduced yesterday :(
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2100 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-02-14 16:22:42 +00:00
vsc a4a26478e0 fix some bugs from yesterday plus improve support for modules in
operators.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2095 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-02-13 10:15:36 +00:00
vsc af0fb4f4d9 SWI-portability changes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2088 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-02-12 17:03:59 +00:00
vsc 64d62f1e3e improve JT
fix graph compatibility with SICStus
re-export declaration.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2037 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-12-05 12:17:25 +00:00
vsc 3beda27d14 fixes to support threads and assert correctly, even if inefficiently.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2030 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-11-26 23:43:10 +00:00
vsc 42048570f3 speedup meta-calls
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1976 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-11-07 09:25:27 +00:00
pmoura ce1694aa15 Corrected typo in declaration of meta-predicate with_mutex/2.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1758 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-12-31 19:30:11 +00:00
pmoura 7c0175abbc with_mutex/2 is a meta-predicate.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1755 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-12-31 10:59:16 +00:00
vsc 88f51c97d7 fix some bugs in call_cleanup: the result of action should not matter,
and !,fail would not wakeup the delayed goal.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1754 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-12-31 01:50:35 +00:00
vsc 4ff41f7a62 improve indexing on floats
fix sending large lists to DB


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1692 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-09-20 20:03:51 +00:00
vsc 30318bb60d Lots of fixes (check logfile for details
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1585 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-04-05 00:16:55 +00:00
vsc 8ed6f693bb code review
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1576 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-03-24 16:26:31 +00:00
vsc b8e524424c fix MacOSX interrupt handling
fix using Yap files as Yap scripts.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1555 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-03-03 23:11:30 +00:00
vsc 90c9397a47 should have meta-predicate definitions for calls,
multifile and discontiguous.
have discontiguous as a builtin, not just as a
  declaration.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1443 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-05 23:56:10 +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 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
vsc a396b732f7 missing ! in module option processing code.:
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1339 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-07-06 15:51:01 +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 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 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 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 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 4402a10f44 fix module redefinition handling
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@985 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-13 13:31:44 +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 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 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 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 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 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
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 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 9cde858f11 make sure that even if we optimise builtins in a predicate, source
code will still see the original.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@772 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-13 12:41:35 +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 f59cc22c5d module processing should also send the sources back.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@762 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-10 18:23:42 +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 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 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 763b59bb05 $meta_predicate should be in user.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@715 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-03 06:06:24 +00:00
vsc 4238da327d \+,not and | should be module processed in the same way as -> ; and ,
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@711 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-12-02 18:08:25 +00:00
vsc f53fdc54cb Patrick Caldon:
make goal_expansion/3 work recursively
fixes a couple of spelling errors in the manual


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@689 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-18 17:17:22 +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 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 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 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 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 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 a5638757d3 unify might bound a multi-assignment variable?\027?\024
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@480 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-21 04:18:15 +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 a4c275daf2 fix meta-predicate declarations.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@421 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-03-17 15:25:30 +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
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 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 0fa942e238 fix repeated import declarations
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@337 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-30 00:27:20 +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 a203cec0f5 make consult meta-predicates
configuration changes


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@301 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-16 20:18:28 +00:00