Commit Graph

983 Commits

Author SHA1 Message Date
Vitor Santos Costa
925b8fec01 Merge branch 'master' of ssh://yap.git.sf.net/gitroot/yap/yap-6.3 2011-05-08 23:12:44 +01:00
Vitor Santos Costa
14bae4cb7e avoid choice-point in ord-union. 2011-05-08 23:11:40 +01:00
Joao
dc3c54c164 change LOCALS macros. 2011-05-04 10:11:41 +01:00
Vitor Santos Costa
9c3d6a187d debugging cleanups
actually use readline flag.
2011-03-26 15:45:42 +00:00
Vítor Santos Costa
e03acef3f9 use SWI flags. 2011-03-26 15:17:17 +00:00
Vitor Santos Costa
ca952a4eac include R package. 2011-03-19 15:29:06 +00:00
Vítor Santos Costa
dcccf3aa85 catch null access. 2011-03-16 00:15:15 +00:00
Vítor Santos Costa
36a0023fbf iimprove SWI compat 2011-03-15 23:49:28 +00:00
Vítor Santos Costa
6b5046bb8c use external modules. 2011-03-15 16:22:56 +00:00
Vítor Santos Costa
839d612367 improve SWI predicate calling: fix bug in non-deterministic calls. 2011-03-14 20:54:19 +00:00
Vítor Santos Costa
0d6be2d858 improve string support
fix non-thread compilation.
2011-03-11 23:21:23 +00:00
Vítor Santos Costa
e05b84ce4e fix to thread support. 2011-03-11 19:49:32 +00:00
Vítor Santos Costa
93d2ac7e59 handle errors. 2011-03-11 19:49:01 +00:00
Vítor Santos Costa
8eeae7942c avoid loading memfile 2011-03-11 19:48:43 +00:00
Vitor Santos Costa
5418f55d74 fix pl-tai 2011-03-09 13:05:03 +00:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
cfc806500d fix popen definition. 2011-03-08 00:07:08 +00:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
a3f79cede9 WINDOWS compatibility 2011-03-08 00:03:50 +00:00
Vítor Santos Costa
90d93fdbdd cache abstra machine register in threaded mode. 2011-03-07 16:02:55 +00:00
Vítor Santos Costa
da1df3d851 more cleanups. 2011-03-02 23:19:39 +00:00
Vítor Santos Costa
73541f506f get rid of old SWI emulation stuff. 2011-03-01 10:41:06 +00:00
ubu32
3f6b92de4b enable compilation with multi-threading. 2011-02-27 15:06:10 -08:00
ubu32
f2e8f2ac2e more fixes for bignum support in PLStream. 2011-02-27 03:40:27 -08:00
ubu32
53e8811077 fixes to use SWI version of readline. 2011-02-26 18:34:44 -08:00
Vitor Santos Costa
0614a8c26e readline fixes 2011-02-16 21:11:45 +00:00
Vitor Santos Costa
dce619f804 compile readline. 2011-02-16 00:23:58 +00:00
Theofrastos Mantadelis
2d54ccf355 fixed an open choice point 2011-02-15 21:19:21 +00:00
Vítor Santos Costa
a40987b70d ifixes to support 64 bits:
- protect registers before calling prune()
- use Int, not int.
2011-02-15 18:14:18 +00:00
ubu32
185bb1b3f0 cleanups. 2011-02-15 06:43:28 -08:00
ubu32
57f5ef8cfc more bug fixes:
- make readline use packages, not old YAP code
- fix ! over backtrack cps
- fix write list
2011-02-15 05:54:19 -08:00
ubu32
140318ff16 read works now. 2011-02-14 23:39:27 -08:00
ubu32
99cbe94bed fix unify functor 2011-02-14 11:28:07 -08:00
ubu32
c277229aa9 fix frame stuff
small interface fix.
2011-02-14 06:58:03 -08:00
Vitor Santos Costa
80f190bc8a use SWI user_*. 2011-02-13 01:03:08 +00:00
Vitor Santos Costa
98684ba4bb remove YAP sockets interface. 2011-02-12 23:38:24 +00:00
Vitor Santos Costa
2d07a7730e remove YAP memory (string) streams. 2011-02-12 18:42:44 +00:00
Vitor Santos Costa
be79c3326e first pass at open/ and friends. 2011-02-12 14:14:12 +00:00
Vitor Santos Costa
b219e288eb is_absolute_file_name/2 2011-02-12 01:24:03 +00:00
Vitor Santos Costa
42ff655ae5 working directory is now a part of YAP kernel. 2011-02-12 00:44:39 +00:00
Vitor Santos Costa
712300027e include support for working_directory/2 as a system predicate. 2011-02-12 00:26:28 +00:00
Vitor Santos Costa
2451a052cb use text routines from current SWI fli. 2011-02-12 00:17:59 +00:00
Vítor Santos Costa
45032cc61e export current predicate for SWI built-ins. 2011-02-11 19:01:18 +00:00
Vitor Santos Costa
6617a63b7e attempt to improve error handliong in SWI emulation. 2011-02-11 14:17:27 +00:00
Vítor Santos Costa
b475be5692 more SWI compatibility changes. 2011-02-11 01:22:07 +00:00
Vítor Santos Costa
02c791fc3d iminor PLStream fixes. 2011-02-10 21:45:43 +00:00
Vitor Santos Costa
3fe9b923cb more fixes to SWI emulation
integrate in main binary
2011-02-10 21:14:38 +00:00
Vitor Santos Costa
232a740d43 upgrade to latest SWI 2011-02-10 00:01:19 +00:00
Vítor Santos Costa
0ad02c3ee1 Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3 2011-02-08 21:06:02 +00:00
Theofrastos Mantadelis
b57859f28b fixed some typos 2011-02-04 16:08:18 +01:00
Theofrastos Mantadelis
7fd6faea64 flags: fixed an interval bug 2011-02-03 17:20:42 +01:00
Vitor Santos Costa
c1721df472 Merge branch 'master' of /yap-6.3
Conflicts:
	C/c_interface.c
2011-02-03 11:33:50 +00:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
a4a1feeacc improve SWI emulation in WIN32. 2011-02-03 11:23:12 +00:00
Vítor Santos Costa
8ab12ec680 fix mix swi/sicstus 2011-02-02 20:45:29 +00:00
Theofrastos Mantadelis
857c8c042e Final version for today 2011-02-01 18:37:32 +01:00
Theofrastos Mantadelis
95427488d6 ... 2011-02-01 18:11:36 +01:00
Theofrastos Mantadelis
ab24175145 hopefully the bug is now fixed... 2011-02-01 17:51:54 +01:00
Theofrastos Mantadelis
f0c7c76966 fixed some minor issues in c_alarms 2011-02-01 17:36:34 +01:00
Theofrastos Mantadelis
73918e78aa Added flags library 2011-02-01 12:13:42 +01:00
Theofrastos Mantadelis
b73a93f26a fixed the makefile... 2011-02-01 12:05:35 +01:00
Theofrastos Mantadelis
a82b1fed6f A new library, namely concurrent alarms 2011-02-01 12:02:57 +01:00
Vitor Santos Costa
404c6d3a4f protect registers. 2011-01-20 12:04:50 -06:00
Vitor Santos Costa
d52d05a626 fix atom_term builtin not to require previous loading of charsio. 2011-01-20 11:51:46 -06:00
Vitor Santos Costa
5c54ff89a1 add subtract/3 to lists. 2011-01-03 21:55:42 -06:00
Vitor Santos Costa
a9587b5e3d restore and agc of recorded terms
overflows in recorded.
2011-01-02 21:16:29 -06:00
Vitor Santos Costa
7c86b244b9 patches from Keri Harris 2010-12-30 22:14:45 -06:00
Theofrastos Mantadelis
8499f36f0b Fixed the tmp_file/2, added tmpdir/1. 2010-12-20 17:33:23 +01:00
Vitor Santos Costa
1533d0bbd7 more fixes to PL_get_codes. 2010-12-19 22:06:41 +00:00
Vitor Santos Costa
f4d82b0f58 looks like sound. 2010-12-19 22:01:37 +00:00
Roberto Bagnara
02fbaf958a Fixed a few issues in the glue code for SWI-Prolog compatibility. 2010-12-19 21:59:38 +00:00
Vitor Santos Costa
168a6366f8 enable obtaining current stream_position from SWI.y 2010-12-19 21:32:13 +00:00
Roberto Bagnara
cb7c2e0ca8 Fixed PL_is_integer() and PL_is_number() so as to take bignums into account. 2010-12-19 19:39:12 +00:00
Vítor Santos Costa
4b2156446a ifix writeln in SWI mode 2010-12-17 20:26:45 +00:00
Theofrastos Mantadelis
b5d486279a fix a trie backward traverse bug 2010-12-17 12:29:56 +01:00
Vitor Santos Costa
0c7f207627 make format/n swi aware. 2010-12-17 00:11:05 +00:00
Vítor Santos Costa
4546a22101 SWI seems to use t=0 for user_input/output. Not very clear why... 2010-12-15 20:03:22 +00:00
Vítor Santos Costa
1ca5c92469 fix goal expansion for with_output_to in SWI mode (obs from Roberto Bagnara). 2010-12-15 12:08:26 +00:00
Vitor Santos Costa
68539ab1e0 make sure with_output_to argument is not rewritten. 2010-12-14 23:46:17 +00:00
Vítor Santos Costa
57aafe5d23 don't use with_output_to/2 from PLStream: it gets confused by whose stdout it should write to. 2010-12-14 12:04:44 +00:00
Vítor Santos Costa
628ae12d15 ifix warning message. 2010-12-14 12:04:33 +00:00
Vítor Santos Costa
eb82f5fa2a more fixes to recursive call execution and backtracking from within C-mode.
semweb java example now working.
2010-12-14 09:30:40 +00:00
Vítor Santos Costa
f89f7e8e98 PL_set_engine should always return a sensible answer, even if multi-threading is not on. 2010-12-13 21:07:35 +00:00
Vitor Santos Costa
3c4da56af2 allow write to find out about SWI streams in SWI mode. 2010-12-13 12:38:37 +00:00
Vítor Santos Costa
51e9cb14a7 nl should be in the SWI IO (obs from Roberto Bagnara). 2010-12-12 19:07:24 +00:00
Vítor Santos Costa
c08e99a77c fix mapnodes/2 (obs from Ingo Molnar). 2010-12-07 17:50:51 +00:00
Vítor Santos Costa
af6bf40985 fix SWI functor handling to work with 32 bits. (for now) 2010-12-02 19:41:48 +00:00
Vítor Santos Costa
2713ac27b6 Merge branch 'master' of yap.dcc.fc.up.pt:yap-6
Conflicts:
	library/dialect/swi/fli/swi.h
2010-12-02 19:38:15 +00:00
Vítor Santos Costa
f03f353722 make swi functors more robust to confusion with atoms. 2010-12-02 19:25:10 +00:00
Vitor Santos Costa
7e59179622 fix bad SWI functor :( 2010-12-02 12:10:03 +00:00
Vitor Santos Costa
b02507ed22 fix 32 bit atoms to ensure alignment at 8 bytes (broken with blobs). 2010-12-02 11:49:58 +00:00
Vitor Santos Costa
aead067476 mv swi compatibility stuff to library/dialect 2010-11-30 22:33:33 +00:00
Vitor Santos Costa
56c767f2b7 fix bad free 2010-11-30 22:12:30 +00:00
Vitor Santos Costa
2d00dd15ab fix missing files 2010-11-30 21:59:45 +00:00
Vitor Santos Costa
7b6f330bd3 improve blob support (but just skeleton). 2010-11-29 23:17:06 +00:00
Vitor Santos Costa
fe1fbaf6f7 Merge branch 'master' of yap.dcc.fc.up.pt:yap-6
Conflicts:
	library/dialect/swi.yap
2010-11-28 13:48:09 +00:00
Vitor Santos Costa
f4bda9b043 fix build compund term. 2010-11-28 11:50:41 +00:00
Theofrastos Mantadelis
359855132a Corrected a db trie related bug 2010-11-27 16:34:18 +01:00
Vitor Santos Costa
92f647556d prolog_to_os_filename is now built-in. 2010-11-27 10:20:52 +00:00
Paulo Moura
f604df8fec Commented out the definition of the predicate prolog_to_os_filename/2, now a built-in predicate, in order to fix CHR compilation. 2010-11-27 00:13:00 +00:00
Vitor Santos Costa
f470a44efe Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-11-26 23:14:09 +00:00
Theofrastos Mantadelis
44105c6c49 forgot to add :-D 2010-11-24 21:53:16 +01:00
Theofrastos Mantadelis
5033588754 corrected an extension error 2010-11-24 18:39:07 +01:00
Vitor Santos Costa
e03f030907 Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-11-24 10:01:47 +00:00
Vitor Santos Costa
69cde79ba6 PL_malloc and friends should call malloc, not Yap_Alloc 2010-11-24 08:44:03 +00:00
Theofrastos Mantadelis
ccc1fee7ae Adding a new tool for yap: block_diagram, also fixed the term_to_atom/2 warning 2010-11-23 13:02:12 +01:00
Theofrastos Mantadelis
3432b7bb67 Correction of a huge dbtrie bug 2010-11-09 01:58:42 +01:00
Paulo Moura
3d0e88dc10 Added missing meta_predicate/1 directives to the charsio library. Thanks to Cristiano Pitangui for reporting the problem. 2010-10-28 17:18:57 +01:00
Vítor Santos Costa
0deddd5603 include Nicos Angelopoulos r_session package. 2010-10-16 14:54:48 +01:00
Vitor Santos Costa
7f70a797f4 fix error messages to obey standard. 2010-10-12 22:02:24 +01:00
Vitor Santos Costa
b272ac33f0 cpp does not always have -o 2010-09-27 22:31:57 +01:00
Paulo Moura
794b66987c Fixed a minor bug in the "wundgraphs" library: the predicate wdgraph_symmetric_closure/2 is already reexported, should not be listed in the use_module/2 directive for the same module. 2010-09-26 17:27:20 +01:00
Vitor Santos Costa
99c5a17b12 Implement Halt Hook (request from Bernd). 2010-09-24 14:00:53 +01:00
Vitor Santos Costa
d19ee6094e fix use of Yap instead of YAP. 2010-09-21 22:20:01 +01:00
Theofrastos Mantadelis
3399fd9e8f db tries library small null bug fix 2010-09-07 19:28:56 +02:00
Vitor Santos Costa
eed3eded82 remove some old SWI code (unused). 2010-08-06 22:48:54 +01:00
Vitor Santos Costa
fcbd2b34fe fix missing ! 2010-08-06 01:18:58 +01:00
Vitor Santos Costa
e4a76d7f1e add coinduction.yap code. 2010-08-06 00:58:11 +01:00
Vitor Santos Costa
18c3292dad and the file itself. 2010-08-04 23:27:17 +01:00
Vitor Santos Costa
410c4c96d5 Ulrich Neumerkel's lambda expressions. 2010-08-04 23:26:50 +01:00
Vitor Santos Costa
0449bf1e7f acyclic_term/1 should be builtin(ISO WG17, UD #174). 2010-08-04 21:50:19 +01:00
Vítor Santos Costa
032d9f7591 bug fixes 2010-08-04 13:04:09 +01:00
Vítor Santos Costa
bebb236e32 improve SWI compatibility, especilaly for threaded stuff. 2010-08-04 11:37:12 +01:00
Vítor Santos Costa
e913087190 improvements in SWI emulation, especially for text. 2010-08-04 02:46:26 +01:00
Vítor Santos Costa
a89336a555 PL_get_chars does not play nice. 2010-08-03 21:09:14 +01:00
Vítor Santos Costa
16341a3a0c export normalize_ 2010-08-03 21:07:58 +01:00
Vítor Santos Costa
69b21df917 improve PL_get_chars, still needs to handle wide chars. 2010-08-03 17:22:33 +01:00
Vitor Santos Costa
d59fa6c28b make zlib load zlib.so
add delete_file/1 as default.
2010-07-29 01:01:16 +01:00
Vitor Santos Costa
617e43b9c1 support requires/1. 2010-07-28 23:25:12 +01:00
Vítor Santos Costa
d45020e940 fix PL_pred and 2
export method for finding out arity of swi functor
2010-07-28 17:13:10 +01:00
Vítor Santos Costa
e80cc50fc7 assoc_to_keys/2 (used in SWI). 2010-07-28 17:12:51 +01:00
Vitor Santos Costa
c27fdc9b35 file_name_ is now a YAP builtin. 2010-07-28 10:46:35 +01:00
Vitor Santos Costa
36a56ccd13 update len for wchar.
SWI can release frame twice.
2010-07-28 10:45:37 +01:00
Vítor Santos Costa
7dd2714263 emulate SWI MT interface correctly 2010-07-25 11:19:07 +01:00
Vitor Santos Costa
f3b9811ef7 more packages to implement better thread interface. 2010-07-23 15:54:13 +01:00
Vitor Santos Costa
eebff5df6a fixes to YAP C-thread interface. 2010-07-23 12:07:33 +01:00
Vítor Santos Costa
3dd68aa8bd fix EX: it cannot be a term and it should be a placeholder for BallTerm,
so the twp can never be alive at the same time.
2010-07-21 12:49:06 +01:00
Vítor Santos Costa
b61d69ffe8 allow SWI Interface to send/receive wide characters. 2010-07-21 10:58:24 +01:00
Vítor Santos Costa
90f7504a76 make swi-yap io interface a structure. 2010-07-21 09:39:49 +01:00
Vitor Santos Costa
bc7f49c3b2 Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-07-19 22:43:03 +01:00
Vitor Santos Costa
6731383b07 fix small bugs in SWI interface 2010-07-19 14:54:21 +01:00
Vitor Santos Costa
baab2cdbfe add tai package (and SWI interface). 2010-07-19 14:52:26 +01:00
Theo
5e84c38efe fixed trie warnings 2010-07-19 12:06:39 +01:00
Theo
0a6ba6a678 Hmm learning the git (half of the files were commited sorry guys) 2010-07-19 11:29:13 +01:00
Theo
2e95faf4f7 I added the dbtrie support :-) 2010-07-18 18:25:30 +01:00
Vitor Santos Costa
6183ff0282 semweb and http compile now (but they don't work properly yet). 2010-07-15 23:35:37 +01:00
Vítor Santos Costa
b21603ac89 Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-07-05 16:01:10 +01:00
Vítor Santos Costa
9413872467 fix get_atom_nchars (obs from Roberto Bagnara) 2010-07-05 16:00:12 +01:00
Vitor Santos Costa
8f8ba6221e add SWI's PL_get_string 2010-06-30 17:54:02 +02:00
Vitor Santos Costa
6619bd44b0 fix interfacey 2010-06-30 13:18:15 +02:00
Vítor Santos Costa
1b16a3d909 fix american version of neighbors. 2010-06-23 15:38:58 +01:00
Vítor Santos Costa
d22cb9b6ab new interface pedicates
fixes to bad implementation.
2010-06-23 11:44:21 +01:00
Vítor Santos Costa
e72ce435d9 fix confusion 2010-06-21 17:12:45 +01:00
Vítor Santos Costa
d05d4c920d fix conflict between clib and old random libraries (they are much the same): 2010-06-21 17:11:48 +01:00
Vítor Santos Costa
a37adad3e8 the sage of configuring everything goes on! 2010-06-21 11:54:21 +01:00
Vitor Santos Costa
c9e150bab7 fix PL_cleanup_fork (avoid two definitions). 2010-06-20 00:11:07 +01:00
Vítor Santos Costa
d210d85f09 PL_get_atom_nchars 2010-06-19 14:40:47 +01:00
Vítor Santos Costa
bd50f087e9 imore SWI compat, including string fixes 2010-06-19 00:38:49 +01:00
Vítor Santos Costa
d1d149b9fd support for PL_ mpz and mpq ops
add missing atom_nchars
2010-06-18 23:24:36 +01:00
Vitor Santos Costa
37fd542071 fix loading after comment :( 2010-06-18 10:34:04 +01:00
Vitor Santos Costa
53773207f4 fix environ on MAC 2010-06-18 10:32:57 +01:00
Vitor Santos Costa
b74e38378f new: PL_atom_nchars 2010-06-18 09:14:45 +01:00
Vítor Santos Costa
71f59ac570 PL_unify_list_codes 2010-06-18 00:29:07 +01:00
Vítor Santos Costa
e81960a96d shlib is now in YAP. 2010-06-18 00:28:42 +01:00
Vítor Santos Costa
32cbd34ff1 add shlib to autoloader (SWI emulation). 2010-06-18 00:27:51 +01:00
Vítor Santos Costa
b0b4d53ee6 several fixes to SWI C-interface emulation. 2010-06-17 00:34:29 +01:00
Vítor Santos Costa
d8e3483120 fix bad @SO@ 2010-06-14 16:49:46 +01:00
Vítor Santos Costa
6ddfecc861 use SO to make YAP makefiles closer to SWI's 2010-06-14 10:36:13 +01:00
Vítor Santos Costa
b0096fc2f5 DLL cleanup (yet again) 2010-06-14 09:28:20 +01:00
Vítor Santos Costa
bf26536626 make frame structure thread local. 2010-06-14 09:26:32 +01:00
Vítor Santos Costa
4ffdafb529 fix YAP_Init return test. 2010-06-06 23:05:54 +01:00
Vítor Santos Costa
247d59f0ef - slots should be considered as always live for gc.
- make sure slots do not die when they should be live, and vice-versa.
- improve a little on foreign_frame
2010-06-01 00:40:58 +01:00
Vítor Santos Costa
7e1692bdb0 fix mess with LIBDIR and YAPLIBDIR
use -Wl,-WR in a more consistent way in Linux
use --with-java instead of --with-jpl
2010-06-01 00:38:42 +01:00
Vítor Santos Costa
215581ffc8 fix use of in/2 (could conflict with autoloader's clpfd). 2010-05-27 12:02:52 +01:00
Vítor Santos Costa
eb980421a9 make term_to_atom/2 a YAP builtin. 2010-05-23 18:39:46 +01:00
Vítor Santos Costa
71ff7762e5 is_list/1 is now a built-in. 2010-05-23 18:24:24 +01:00
Vítor Santos Costa
6722ec6fec fix bad handle passing 2010-05-23 18:23:51 +01:00
Vítor Santos Costa
845866f940 fix db_sql/3 (from Anton Dries) 2010-05-21 08:38:20 +01:00
Vítor Santos Costa
6a433c33a1 fix messup with functors that are atoms. 2010-05-19 17:17:05 +01:00
Vítor Santos Costa
2639e6c868 bad inline expansion of exclude (obs from Paolo Frasconi) 2010-05-19 17:15:11 +01:00
Vitor Santos Costa
86333a9c6e have to fix SWI frames. 2010-05-10 03:06:06 +01:00
Vítor Santos Costa
db18bf74fc documentation fix from Jan Wielemaker 2010-05-08 08:26:59 +01:00
Vítor Santos Costa
958720d92e more win64 2010-05-06 16:45:38 +01:00
Vítor Santos Costa
dd8d122f04 fix fixes (export to win64 vm) 2010-05-06 16:43:51 +01:00
Vítor Santos Costa
32ff9b54ff more win64 warnings 2010-05-06 16:41:40 +01:00
Vítor Santos Costa
11641c5f94 64 bit cleanups. 2010-05-06 15:00:44 +01:00
Vítor Santos Costa
51f33514b3 fix typing problems and a bug in quote.c? 2010-05-06 12:19:51 +01:00
Vitor Santos Costa
9301b67724 allow better control over using SWI I/O 2010-05-06 11:36:47 +01:00
Vitor Santos Costa
849c96cb38 handle lookups with max len and hack for _PL_get_arg 2010-05-06 10:57:59 +01:00
Vitor Santos Costa
c3f1231923 fix stupid bug in using memset (obs from Jos De Roo). 2010-05-06 09:08:59 +01:00
Vítor Santos Costa
4d0967b050 arg(2,a,X) fails in SWI and gives an error in YAP/SICStus. Keep on using genarg. 2010-05-05 19:37:56 +01:00
Vítor Santos Costa
0740495d77 PL_handle_signals is now provided by PLStream 2010-05-04 15:16:10 +01:00
Vítor Santos Costa
1ad9b168ca use PLStream functionality whenever possible. 2010-05-04 15:15:46 +01:00
Vítor Santos Costa
0e88668df8 check for overflows.
check PL_unify_list
2010-05-04 15:03:12 +01:00
Vítor Santos Costa
f4e2a0b4c8 fix PL_unify_list and atom/functor conversion.
small speedups.
2010-05-03 17:02:49 +01:00
Vítor Santos Costa
b9cf8ecf4b optimise case where genarg is know to reduce to arg. 2010-05-03 16:35:51 +01:00
Vitor Santos Costa
31554991c8 better emulation of SWI atom_t and functor_t. 2010-05-03 14:26:56 +01:00
Costa Vitor
fa63422c51 fix warnings in matlab interface. 2010-05-01 06:57:51 -05:00
Vítor Santos Costa II
23d01fc7a6 version 6.0.5 2010-05-01 12:20:28 +01:00
Vítor Santos Costa II
c351637eeb add\0 after CVT_WRITE 2010-04-29 23:45:08 +01:00
Vítor Santos Costa II
030539f33b PL_get_chars: Implement CVT_WRITE and CVT_WRITE_CANONICAL 2010-04-29 23:04:04 +01:00
Vítor Santos Costa II
8d04b08b95 fix PL_cut_query to remove top CP, and fix PL_call_predicate to use PL_cut_query to close,
and not PL_close_query.
2010-04-23 16:43:29 +01:00
Vitor Santos Costa
0e0973de42 another that got away (meta-predicate declarations). 2010-04-22 21:05:34 +01:00
Vitor Santos Costa
cd537cfe96 one that go away: meta-pred decls. 2010-04-22 21:04:54 +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
bc2ddcc372 fix SWI's index. 2010-04-22 18:05:23 +01:00
Vítor Santos Costa II
a22aca2f81 fix warning 2010-04-22 16:29:08 +01:00
Vítor Santos Costa II
9ba631824b load_foreign* wasn't exported. 2010-04-22 16:27:32 +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
f417933da0 make expansion more robut 2010-04-22 12:15:16 +01:00
Vítor Santos Costa II
e8be4296f3 make ctime accept integers, who knows? 2010-04-22 12:13:57 +01:00
Vítor Santos Costa II
034c585489 listing library is a SWI thing. 2010-04-22 09:07:38 +01:00
Vítor Santos Costa II
39ce07fefb PL_call_predicate should close query, not cut query :(
ctime should accept a float for SWI compatibility
2010-04-22 09:00:41 +01:00
Vítor Santos Costa II
1e82155fc9 avoid module clash with SWI's system module. 2010-04-21 14:22:36 +01:00
Vítor Santos Costa II
b0b42d0e31 intersection/3 2010-04-21 00:15:11 +01:00
Vítor Santos Costa II
2566ebcee5 make predsort a system predicate. 2010-04-20 23:49:14 +01:00
Vítor Santos Costa II
d957569e83 fix macro expansion stuff. Everything bounces from maplist now. 2010-04-20 23:11:13 +01:00
Vítor Santos Costa II
ff135d53d2 simplify compatibility 2010-04-20 23:10:40 +01:00
Vítor Santos Costa II
5ab2a97852 use meta-predicates for aggregate (like SWI does now). 2010-04-20 23:09:46 +01:00
Vitor Santos Costa
7e389a5b87 allow a file filter with initialization. 2010-04-18 21:48:00 +01:00
Vítor Santos Costa II
719089b96b make PL_is_initialised honest :) 2010-04-13 00:31:48 +01:00
Vítor Santos Costa II
37bf70fde1 improve dbusage 2010-04-10 21:19:03 +01:00
Ricardo Rocha
fd1f63a73b tries module: bug fix when printing float terms 2010-03-31 19:36:26 +01:00
Ricardo Rocha
6cb0886587 tries module: undo last change on macro MAX_NODES_PER_TRIE_LEVEL 2010-03-31 18:39:38 +01:00
Ricardo Rocha
7b49c14edd tries module: add support for term-ending pairs (pairs of the form [a|b]) 2010-03-31 18:36:13 +01:00
Vitor Santos Costa
03b96b3a60 upgrade to Markus' latest. 2010-03-30 12:46:01 +01:00
Vitor Santos Costa
cfc0a23953 make sublist from hprolog and sublist from yap be the same beast. 2010-03-15 14:19:05 +00:00
Vitor Santos Costa
c4b39d3ab9 update Prolog code: do a cleanup and make delays use SWI interface. 2010-03-12 14:26:35 +00:00
Vitor Santos Costa
c41f6e1906 atts stuff is now a part of prolog. 2010-03-12 08:26:56 +00:00
Vitor Santos Costa
5e26f604c6 fix makefiles to define $exec_prefix 2010-03-05 10:22:48 +00:00
Vitor Santos Costa
2685a8449d installation patches from Keri Harris 2010-03-05 08:15:02 +00:00
Vitor Santos Costa
75d1b897e0 fix fragile export. 2010-03-05 00:00:00 +00:00
Vitor Santos Costa
cef4a27d1c export new_variables_in_term and variables_within_term (obs from Jiefei Ma). 2010-03-04 23:45:33 +00:00
Vitor Santos Costa
c58e9f4562 export attributes. 2010-03-04 23:41:45 +00:00
Vítor Santos Costa II
8f41517e24 del_attrs/1 (for SWI compatibility). 2010-03-03 19:08:17 +00:00
Vitor Santos Costa
ca12a4b959 fix all_distinct/1 (patch from Markus Triska). 2010-03-02 21:35:12 +00:00
Vitor Santos Costa
192aa92b9c fix clpfd back to use exceptions. 2010-03-01 22:32:59 +00:00
Vitor Santos Costa
ba7861b218 fix set_source_module
add time_file/2 and flag/3 (and current_flag/1).
2010-02-28 22:19:52 +00:00
Vitor Santos Costa
7a23f016c2 upgrade to more recent clp. 2010-02-28 12:18:26 +00:00
Vitor Santos Costa
db2bee6b9b subsumes_chk is a builtin in SWI-Prolog. 2010-02-28 10:07:36 +00:00
Vitor Santos Costa
ec30e08f69 add user_flags/s prolog_flag 2010-02-28 00:42:47 +00:00
Vitor Santos Costa
ba8d27a265 Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-02-26 00:17:12 +00:00
Vitor Santos Costa
9f098a0297 use truncate for integer (ISO standard, obs from Paulo Moura). 2010-02-26 00:16:32 +00:00
Ricardo Rocha
5d0e404191 tries module: fix bug in trie_traverse/2 2010-02-24 18:03:43 +00:00
Ricardo Rocha
42b07768d6 Merge branch 'master' of gitosis@yap.dcc.fc.up.pt:yap-6 2010-02-22 14:04:09 +00:00
Ricardo Rocha
71a9be9742 tries module: fix bug in trie_get_first_entry/2 2010-02-22 14:01:56 +00:00
Vitor Santos Costa
4fda6b7488 track recent SWI changes. 2010-02-22 09:35:21 +00:00
Vitor Santos Costa
11e679edfe fix mktime to use local time (fix from Takeyuki Shiramoto). 2010-02-21 00:59:38 +00:00
U-Khasa\Vitor
33190e290d mingw complaint with recent versions of gcc 2010-02-10 03:03:03 -06:00
Vitor Santos Costa
74f3142499 faster calls 2010-01-26 22:26:08 +00:00
Vitor Santos Costa
110f1c7977 improve SWI interface compatibility 2010-01-26 12:21:06 +00:00
Vitor Santos Costa
0d38d67dfa add missing interface functions. 2010-01-25 12:29:51 +00:00
Vítor Manuel de Morais Santos Costa
d3f0410c7d include PL_get_intptr 2010-01-15 16:21:43 +00:00