6aff7bda59fix initialization in threaded version.
Vitor Santos Costa
2009-12-17 16:03:00 -02:00
b88eb78e96fix bad configuration option.
Vitor Santos Costa
2009-12-16 18:35:19 -02:00
13be09aaefget rid of debugging message.
Vitor Santos Costa
2009-12-16 18:33:28 -02:00
48861db34efix bad testing of choice-point in throw (tabling bug?)
Vítor Manuel de Morais Santos Costa
2009-12-12 23:22:10 +00:00
0b17d3572badd PL_chars_to_terms to SWI emulation.
Vítor Manuel de Morais Santos Costa
2009-12-12 23:21:54 +00:00
b69c0ba2a9add to API
Vítor Manuel de Morais Santos Costa
2009-12-12 23:21:25 +00:00
946b6aa812small space fixes
Vítor Manuel de Morais Santos Costa
2009-12-12 23:20:44 +00:00
1486b97e75YAP added / to WIN32 file names (obs from Jose Santos).
Vitor Santos Costa
2009-12-11 09:49:47 +00:00
933f96a80dmore CXX stuff: will it ever end?
Vitor Santos Costa
2009-12-10 23:47:34 +00:00
ac2cf2434aprolog_flag executable (obs from Aubrey Barnard).
Vitor Santos Costa
2009-12-10 01:16:29 +00:00
1be390d31afix create_prolog_flag to guess domain (idea from Jan Wielemaker).
Vitor Santos Costa
2009-12-06 00:49:51 +00:00
df2b11a6ecdefine Optype for xxc, for instructions whose constant argument is a term, like functor(a,X,T).
Vitor Santos Costa
2009-12-06 00:37:48 +00:00
7663a748a9Merge branch 'master' of gitosis@yap.dcc.fc.up.pt:yap-6
Vitor Santos Costa
2009-12-04 23:13:16 +00:00
783c5ed6bcfix excessive untrailing in C-code interface (obs from Nuno Fonseca).
Vítor Manuel de Morais Santos Costa
2009-12-04 22:58:46 +00:00
2cb3ef5fa4fix set_base_module to retract previous modules, add delete_import_module.
Vitor Santos Costa
2009-12-04 21:32:36 +00:00
bed3e52a84fix version option
Vítor Manuel de Morais Santos Costa
2009-12-04 18:24:45 +00:00
72e2a9658emake volatile part of the system (SWI compatibility).
Vítor Manuel de Morais Santos Costa
2009-12-04 18:24:22 +00:00
b3088710d3emulate SWI module inheritance mechanism (at least, I hope).
Vitor Santos Costa
2009-12-04 11:00:13 +00:00
f7e60ddbc2simple should run tests when loading plunit.
Vitor Santos Costa
2009-12-04 10:59:38 +00:00
d554871ffbget rid of create_prolog_flag/2.
Vitor Santos Costa
2009-12-04 09:17:27 +00:00
9814a3e95bbetter support for plunit, and don't trust SWI flags (use SICStus flags).
Vitor Santos Costa
2009-12-04 00:35:37 +00:00
81ad3a6d2fdocument new flag command.
Vitor Santos Costa
2009-12-04 00:30:07 +00:00
ee575387afrstore user_defined_directive
Vitor Santos Costa
2009-12-04 00:29:50 +00:00
367f1d954fbetter way to define prolog flag.
Vitor Santos Costa
2009-12-04 00:06:11 +00:00
4c47f4188efix exceptions in setup.
Vitor Santos Costa
2009-12-03 22:54:31 +00:00
97a27bd4b6[ ] and {} should be handled by the scanner, not the parser (obs from Paulo Moura).
Vitor Santos Costa
2009-12-03 22:51:29 +00:00
1176f71f3asupport for making sure exceptions are reset when they should be reset (obs from Nuno Fonseca, #159)
Vítor Manuel de Morais Santos Costa
2009-12-03 17:48:25 +00:00
71e4d73a75make sure to reenable interrupts if you have to exit setup in a hurry (#158).
Vítor Manuel de Morais Santos Costa
2009-12-03 17:46:21 +00:00
bc4b718afbfollow import recursively so that we don't lose properties like being a meta predicate.
Vitor Santos Costa
2009-12-03 16:33:44 +00:00
742979eb9cmaplist and friends should be exported from apply, not builtins (obs from Jan Wielemaker).
Vitor Santos Costa
2009-12-03 16:33:10 +00:00
dcf0c87e8aapply should export all versions of maplist (#157)
Vitor Santos Costa
2009-12-03 16:31:23 +00:00
e973a3ea40fix SWI emulation of maplist to use meta_predicate instead of module_transparent.
Vitor Santos Costa
2009-12-03 10:36:36 +00:00
344a0a6e87make sure expand_macros only expands predicates visible to the module.
Vitor Santos Costa
2009-12-03 10:16:15 +00:00
1bbf7ff16c| should use operator priority, not some built-in (#156)
Vitor Santos Costa
2009-12-03 09:41:28 +00:00
2d6934178bcheck for unbound calls (#154)
Vitor Santos Costa
2009-12-03 09:08:06 +00:00
f08d8b4b04Merge branch 'master' of gitosis@yap.dcc.fc.up.pt:yap-6
Vitor Santos Costa
2009-12-03 02:14:07 +00:00
d2da5bfe26fix setup_call_cleanup and friends.
Vitor Santos Costa
2009-12-03 02:13:22 +00:00
06d30b9fc9Jump and Throw need to store the term away, if they try to use arena the term will hang in the stack (#152).
Vitor Santos Costa
2009-12-02 21:59:41 +00:00
f01283bd28new primitives trie_get_first_entry/2 and trie_get_last_entry/2 in tries module
Ricardo Rocha
2009-11-27 19:10:36 +00:00
8213d52af4fix bad call to realloc (nf patches).
Vitor Santos Costa
2009-11-27 18:46:11 +00:00
506da0b1bfmake write always protect operators when they are not used as operators so as to follow standard (#150).
Vítor Manuel de Morais Santos Costa
2009-11-27 16:09:48 +00:00
69988d0718harmonize | priority (#149)
Vítor Manuel de Morais Santos Costa
2009-11-27 15:55:46 +00:00
53e91797b3make modules kind of work here :(
Vítor Manuel de Morais Santos Costa
2009-11-27 13:45:57 +00:00
91a7fc3c66fix bugs in backtrackable versions of atom_concat/3 and atomic_concat/3 (obs from Paulo Moura).
Vítor Manuel de Morais Santos Costa
2009-11-27 13:45:18 +00:00
b16623d026fix realloc and friends (obs from Nuno Fonseca).
Vítor Manuel de Morais Santos Costa
2009-11-27 13:31:03 +00:00
d746afaa32UserCode may changed YENV, so be careful, be very careful! (obs from Nuno Fonseca).
Vítor Manuel de Morais Santos Costa
2009-11-27 13:14:30 +00:00
98f79484aechange throw mechanism to fit better with cleanup mechanism: - balls are now stored off line and recovered by Prolog code when everything is safe. - if a ball exists, throw uses the *existing* one (be careful not to have one laying around). - Jump routine cleans up every cp except ones for setup_call handling, backtracking simply calls setup handlers.
Vítor Manuel de Morais Santos Costa
2009-11-27 11:21:24 +00:00
7f5da32c08fix trail when you do a jumpenv (Ulrich Neumerkel #152)
Vítor Manuel de Morais Santos Costa
2009-11-25 09:47:38 +00:00
50d720a9c6fix current_op/3 by walking over the chain of ops or properties and moving complex code to Prolog (obs from Paulo Moura).
Vitor Santos Costa
2009-11-25 00:38:47 +00:00
ccaab728afhandle user operators as "prolog" operators.
Vitor Santos Costa
2009-11-25 00:38:29 +00:00
2ab3308a56fix restore of opentries.
Vitor Santos Costa
2009-11-25 00:38:05 +00:00
1136597f6ffix debugging info (obs from Jose Santos).
Vitor Santos Costa
2009-11-23 23:43:12 +00:00
9f27ab5ab3fix typo in minisat compilation
Vitor Santos Costa
2009-11-23 21:03:04 +00:00
7640d65609Merge branch 'master' of gitosis@yap.dcc.fc.up.pt:yap-6
Ricardo Rocha
2009-11-23 18:49:23 +00:00
8a557012ddadd primitive YAP_IsLongIntTerm to the C Language interface.
Ricardo Rocha
2009-11-23 18:46:57 +00:00
5e70ff47b3TrueFileName was rewriting input atom in WIN32 :( (obs from Jos Deroo)
U-Xato7\Vsc
2009-11-23 18:42:28 +00:00
dd60f64f42WIN32 can get confused with C and c type files, so, just in case.
U-Xato7\Vsc
2009-11-23 16:02:47 +00:00
25b5464fe8handle correctly next element after operator property.
U-Xato7\Vsc
2009-11-23 16:02:05 +00:00
691abd8243check_opcodes is unused in WIN32_, don't declare it.
U-Xato7\Vsc
2009-11-23 16:01:41 +00:00
b300db2e96LOW_PROF uses FILE structure, and therefore requires stdio.h
Vítor Manuel de Morais Santos Costa
2009-11-23 13:52:13 +00:00
86715801bffix missing stripostfix, and add stricmp (although one should use strcasecmp).
Vítor Manuel de Morais Santos Costa
2009-11-23 13:41:07 +00:00
56d9666197port of SWI-Prolog's plunit.
Vitor Santos Costa
2009-11-23 10:55:10 +00:00
fe6148ef15be more cautions about removing prolog: from calls.
Vitor Santos Costa
2009-11-23 10:15:11 +00:00
a1496769adupgrade to more recent version.
Vitor Santos Costa
2009-11-23 10:14:56 +00:00
67999ec4dfatomic_list_concat/2.
Vitor Santos Costa
2009-11-23 10:14:23 +00:00
2d2fb30167atomic_list_concat/2 and fix some reverse mode ops in atom_concat/3.
Vitor Santos Costa
2009-11-23 10:13:55 +00:00
025ee58f58some SWI predicates became system predicate. Add stubs for $ predicates.
Vitor Santos Costa
2009-11-23 10:12:10 +00:00
c6406b822bprolog: multifiles are not really system predicates (they can be redefined).
Vitor Santos Costa
2009-11-23 10:10:47 +00:00
6852a0c861make =@= an well known alias to variant.
Vitor Santos Costa
2009-11-23 10:10:14 +00:00
31e5c54125support message_string/2 for SWI emulation.
Vitor Santos Costa
2009-11-23 10:09:32 +00:00
e4c9d69044in SWI mode allow new flags to be silently defined.
Vitor Santos Costa
2009-11-23 10:06:51 +00:00
657e0a13bdinline implemetation of a(2,1,X) should not return error, just silently fail.
Vitor Santos Costa
2009-11-23 10:06:13 +00:00
84f5dfec7ddocument souce_location/2.
Vitor Santos Costa
2009-11-23 10:05:52 +00:00
b15d9c0363add source_location for SWI compatibility
Vitor Santos Costa
2009-11-23 10:02:40 +00:00
d91bab4247make sure goal_expansion is never seen as an undefined goal. It should at least always succeed.
Vitor Santos Costa
2009-11-23 10:01:55 +00:00
a132707746undo PL_error updates
Vitor Santos Costa
2009-11-21 22:21:17 +00:00
d637451bd6make sure to put TR correctly (fixes copying DB terms with att vars #148)
Vitor Santos Costa
2009-11-21 00:23:03 +00:00
58cac4c8ebfixes for SYSTEM_MALLOC case (where we cannot trust Yap_HeapTop and Yap_HeapBase).
Vitor Santos Costa
2009-11-20 08:52:00 +00:00
1bfbe535daExtended support for SWI-Prolog C interface.
nf@khaixa.(none)
2009-11-19 21:09:22 +00:00
ffe1dfdfffsupport for module based operators.
Vitor Santos Costa
2009-11-20 00:33:14 +00:00
a2927c4a72=@= needs not be in lib.
Vitor Santos Costa
2009-11-20 00:32:45 +00:00
628d181923protect against var usage.
Vitor Santos Costa
2009-11-20 00:32:14 +00:00
73bba98946add extra protection against useless shifts.
Vitor Santos Costa
2009-11-20 00:31:09 +00:00
26e4ce7e27fix bug in restore operators.
Vitor Santos Costa
2009-11-20 00:30:36 +00:00
8c1ba9562afix bad test in tabling mode.
Vitor Santos Costa
2009-11-19 08:33:10 +00:00
d476e36a90initialise LOCAL in system_malloc (obs from Jose Santos).
Vitor Santos Costa
2009-11-19 08:25:08 +00:00
d9016fa650init_local should be called Yap_init_local to avoid clashesh.
Vitor Santos Costa
2009-11-19 08:24:38 +00:00
432cce1c49VISUALC++ understands prototypes, hurray! (obs from Cristiano Pitangui).
Vitor Santos Costa
2009-11-18 23:39:18 +00:00
9cbdf8f57etiny cleanups.
Vitor Santos Costa
2009-11-18 23:36:07 +00:00
7ddaaa1362Term is Unsigned so you cannot add a negative to it and get away :(
Vitor Santos Costa
2009-11-18 23:33:09 +00:00
dcf7e282c8bugs in restoring Heap: stuff repeated twice or at bad locations.
Vitor Santos Costa
2009-11-18 23:32:31 +00:00
6c887452e6allow randomization of initial address, this enables testing restore routine.
Vitor Santos Costa
2009-11-18 23:32:00 +00:00
7155fbec22fix bad ordering in HEAPFIELDS: OPERANDS must be well placed before we can recover atom table and dependent preds.
Vítor Manuel de Morais Santos Costa
2009-11-18 15:48:29 +00:00
71de4ed52aMerge branch 'master' of gitosis@yap.dcc.fc.up.pt:yap-6
Vítor Manuel de Morais Santos Costa
2009-11-18 13:13:51 +00:00
c108ac508dcheck for callable before looking at predicate terms...
Vítor Manuel de Morais Santos Costa
2009-11-18 13:13:16 +00:00
a316090f8cfix nth_instance: fix bugs and actually add two versions (obs from Theofrastos Mantadelis)
Vítor Manuel de Morais Santos Costa
2009-11-18 13:06:37 +00:00
f31aeff952fix bad order of comparison in NthClause.
Vítor Manuel de Morais Santos Costa
2009-11-18 12:48:22 +00:00
4b40e80fe5CXX not CPP, you idiot!
Vitor Santos Costa
2009-11-18 09:53:38 +00:00
167e129222make configuration changes to better support C++ and deeper included packages.
Vitor Santos Costa
2009-11-18 09:29:26 +00:00
939eda0050just be consistent in calls.
Vitor Santos Costa
2009-11-17 10:04:07 +00:00