Commit Graph

311 Commits

Author SHA1 Message Date
Joao
676dd26c90 change macros in misc/GLOBALS to GLOBAL_. 2011-05-10 10:06:51 +01:00
Ricardo Rocha
026616963c remove FOREIGN_ macros and use REMOTE_ instead 2011-05-09 20:19:49 +01:00
Ricardo Rocha
f22994edf9 remove macro MY_ThreadHandle and use LOCAL_ThreadHandle instead 2011-05-09 19:55:06 +01:00
Ricardo Rocha
a532b6cff3 struct local_optyap_data is now part of struct worker_local (generated from the file LOCALS) 2011-05-09 19:36:51 +01:00
Joao
bada4ddfcf Remove LOCAL_ variables declaration from heapgc.c. 2011-05-05 17:41:05 +01:00
Joao
65a514349f Remove LOCAL_WPP. 2011-05-05 09:32:04 +01:00
Ricardo Rocha
feb27c1e6e optimize misc/buildheap script 2011-05-04 19:34:22 +01:00
Joao
d9cee607e9 Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3
Conflicts:
	C/cdmgr.c
2011-05-04 11:10:20 +01:00
Joao
1358d7037a remove LOCAL_FormatInfo e LOCAL_DelayArenaOverflows from LOCALS. 2011-05-04 10:21:47 +01:00
Joao
dc3c54c164 change LOCALS macros. 2011-05-04 10:11:41 +01:00
Vítor Santos Costa
d041ca7a9a Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3 2011-04-30 01:17:09 +01:00
Vítor Santos Costa
de0f8a8236 dbload 2011-04-30 01:16:40 +01:00
Joao
affaeb4092 Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3
Conflicts:
	H/dlocals.h
	H/hlocals.h
	H/ilocals.h
	H/rlocals.h
2011-04-29 16:44:59 +01:00
Joao
d4825159ee fix configure file. change memory management in YapOr. 2011-04-28 09:48:42 +01:00
Vítor Santos Costa
d793651f89 iupdate to 6.3 2011-04-22 15:29:24 +01:00
Vítor Santos Costa
c940245182 make consult_level a local variable
assert() within consult should act as a normal assert.
2011-04-22 13:01:10 +01:00
Joao
4d537f1536 Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3
Conflicts:
	H/Yap.h
	packages/YapR
2011-04-14 20:00:35 +01:00
Vítor Santos Costa
8fb8aec9bf MULTIPLE_STACKS - or-parallelism/threads/tabling
YAPOR_THREADS - threads with or-parallelism
make tabling require reference counting for dynamic predicates.
2011-04-14 18:51:11 +01:00
Joao
de8518cf15 change optyap_global_data to global_optyap_data 2011-04-07 16:30:56 +01:00
Joao
9ab6f7ad36 Merge branch 'master' of git://yap.git.sourceforge.net/gitroot/yap/yap-6.3 2011-04-07 16:04:19 +01:00
Vitor Santos Costa
417fb5c52c includ e6.2 changes for globals. 2011-04-04 13:20:35 +01:00
Joao
3e148c3541 change define SBA to YAPOR_SBA 2011-03-30 15:32:59 +01:00
Joao
f890a11377 change macros GLOBAL to Yap 2011-03-29 18:19:18 +01:00
Joao
1cede1f4d6 change struct worker_share to global_data
change struct global_data to optyap_global_data
chnage field global in struct worker_share to optyap_global
2011-03-25 18:01:17 +00:00
Joao
6b48f8949f change macro FOREIGN_WL to FOREIGN 2011-03-25 15:21:02 +00:00
Vítor Santos Costa
0352410666 support separate file for LOCALS 2011-03-24 10:25:02 +00:00
Vítor Santos Costa
0ffe3fa6a5 break GLOBALS into GLOBALS+LOCALS 2011-03-23 16:45:47 +00:00
U-WIN-ENP104VVO3U\Vítor Santos Costa
7670ce631b WIN32 patches 2011-03-21 17:07:58 +00:00
Vítor Santos Costa
e05b84ce4e fix to thread support. 2011-03-11 19:49:32 +00:00
Vitor Santos Costa
5418f55d74 fix pl-tai 2011-03-09 13:05:03 +00:00
Vitor Santos Costa
8ee0724524 set version number. 2011-03-07 22:26:28 +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
9c3041f1e3 support copying registers in SWI code. 2011-03-03 11:41:21 +00:00
Vítor Santos Costa
73541f506f get rid of old SWI emulation stuff. 2011-03-01 10:41:06 +00:00
Vítor Santos Costa
cce6bb6354 LD should be local to threads.
get rid of write_depth on YAP side.
2011-03-01 10:26:25 +00:00
ubu32
140318ff16 read works now. 2011-02-14 23:39:27 -08:00
Vitor Santos Costa
be79c3326e first pass at open/ and friends. 2011-02-12 14:14:12 +00:00
Vitor Santos Costa
232a740d43 upgrade to latest SWI 2011-02-10 00:01:19 +00:00
Vítor Santos Costa
54507703fe Merge branch 'master' of ../yap-6.2 2011-02-08 21:05:12 +00:00
Vítor Santos Costa
d0a5571900 trace the total number of choice-points created in profiling mode. 2011-02-08 21:02:10 +00:00
Vítor Santos Costa
f840ee307d Merge branch 'master' of ../yap-6.2 2011-02-02 16:15:50 +00: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
d64af810da force wakeups before ! 2010-12-29 09:29:42 -06:00
Vitor Santos Costa
168a6366f8 enable obtaining current stream_position from SWI.y 2010-12-19 21:32:13 +00:00
Vítor Santos Costa
81ca149be7 Merge branch 'master' of ../yap-6.2 2010-12-16 22:22:44 +00:00
Vítor Santos Costa
cfe0dda995 more bigint and dbterm fixes. 2010-12-16 22:21:46 +00:00
Vítor Santos Costa
5a2d908489 fix restore of instructions that manipulate bigints or db terms. 2010-12-16 20:39:53 +00:00
Vitor Santos Costa
6e2947e8c4 avoid _longjmp 2010-12-16 01:22:10 +00:00
Vítor Santos Costa
2dad416011 Merge branch 'master' of ../yap-6.2 2010-12-15 20:04:13 +00:00
Vitor Santos Costa
bd6da9dd40 fix reconsult of multifile predicates (static). 2010-12-15 00:06:14 +00:00
Vitor Santos Costa
dffacb814b Merge branch 'master' of ../yap-6.2 2010-12-13 12:40:07 +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
30b0160b0d Merge branch 'master' of ../yap-6.2 2010-12-07 15:08:25 +00:00
Vítor Santos Costa
21bbffceda make sure we rebuild saved state stuff even if we do not actually enter top-level.
fix bug with some definitions being reset at load time.
2010-12-07 15:06:53 +00:00
Vítor Santos Costa
7874c790f3 Merge branch 'master' of ../yap-6.2 2010-12-06 20:16:05 +00:00
Vitor Santos Costa
8290341a5f fix typo 2010-12-05 00:07:22 +00:00
Vitor Santos Costa
10a3d52de0 Merge ../yap-6.2 2010-11-29 23:17:49 +00:00
Vitor Santos Costa
7b6f330bd3 improve blob support (but just skeleton). 2010-11-29 23:17:06 +00:00
Vítor Santos Costa
40be6b56f2 Merge branch 'master' of ../yap-6.2 2010-11-29 18:09:19 +00:00
Vítor Santos Costa
2a8854094b halt_hooks should not be in save/restore, this will cause trouble. 2010-11-29 18:08:29 +00:00
Vítor Santos Costa
e509d11c2e routines to copy rational terms to tree and vice-versa. 2010-11-01 20:11:28 +00:00
Vitor Santos Costa
9396252588 patches to provide initial support UTF32 encodings(from Paulo Moura) 2010-10-27 14:49:27 +01:00
Vitor Santos Costa
facebe43e4 doc fixes
64 bits should use /usr/lib64, not /usr/lib
2010-10-24 21:26:49 +02:00
Vitor Santos Costa
9770904f6f update version to next stable 2010-10-18 09:17:12 +01:00
vsc
72b8334358 imake predicates parallel by default. 2010-10-15 02:04:50 +01:00
Vítor Santos Costa
0c09447d00 fix broken tab 2010-09-30 20:53:07 +01:00
Vitor Santos Costa
99c5a17b12 Implement Halt Hook (request from Bernd). 2010-09-24 14:00:53 +01:00
Vítor Santos Costa
8592db72d7 start 6.0.7 2010-08-04 20:29:24 +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
c081d01e78 implement access_file/2 in C 2010-08-03 21:04:16 +01:00
Vitor Santos Costa
3d6e223dae support for space reservation (goal: call gc before trying to insert very large terms). 2010-08-02 13:04:30 +01:00
Vítor Santos Costa
18d77309a6 c_inp_stream and friends are thread private! 2010-07-27 17:28:58 +01:00
Vítor Santos Costa
b61d69ffe8 allow SWI Interface to send/receive wide characters. 2010-07-21 10:58:24 +01:00
Vitor Santos Costa
6ebc31f2d8 codes/2 functor (used by format). 2010-07-19 14:48:42 +01:00
Vitor Santos Costa
f34dcec03e fix totag SWI functors. 2010-07-19 14:47:08 +01:00
Vítor Santos Costa
f5b006a94b isupport for improved SWI emulation 2010-06-23 11:48:10 +01:00
Vítor Santos Costa
2d6fc978e4 fix for threading initialization 2010-06-19 14:38:04 +01:00
Vítor Santos Costa
bf26536626 make frame structure thread local. 2010-06-14 09:26:32 +01:00
Vítor Santos Costa
293dadb003 support for rational numbers
make floor and friends return an integer (make it closer to SICStus).
2010-05-28 09:53:56 +01:00
Vitor Santos Costa
fd9f4efe0b fix indexing of bignums (obs from Jos de Roo). 2010-05-14 12:42:30 +01:00
Vitor Santos Costa
a4344f5bf6 move to 6.0.6 2010-05-11 22:22:13 +01:00
U-vsc-win7\vsc
8a9f8aa1a6 libWYap.a not used any longer. 2010-05-11 14:44:35 +01:00
Vitor Santos Costa
5f5fcb920f generates tables for swi atoms. 2010-05-06 11:38:09 +01:00
Vitor Santos Costa
31554991c8 better emulation of SWI atom_t and functor_t. 2010-05-03 14:26:56 +01:00
Vítor Santos Costa II
23d01fc7a6 version 6.0.5 2010-05-01 12:20:28 +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
Vitor Santos Costa
64528946d9 fix bad name for atom. 2010-04-28 00:32:37 +01:00
Vítor Santos Costa II
3272d5d230 inform about new module for system library 2010-04-22 12:11:15 +01:00
Vitor Santos Costa
2a7765ae5c make clear that some files are generated automatically. 2010-04-18 21:48:20 +01:00
Ricardo Rocha
ddb1cd8604 adding two new modes to the yap_flag/2 and tabling_mode/2 built-in
predicates: 'local_trie' mode and 'global_trie' mode.
2010-04-16 02:08:06 +01:00
Vítor Santos Costa II
c4b12d5cbe - fix memory leaks
- avoid unnecessary mallocs by having a first alloc to do th ework.
2010-04-15 22:23:54 +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
b1621d033a export type of foreign fields. 2010-04-10 21:20:00 +01:00
Vitor Santos Costa
d5e1ff38f4 new interface to access globals. They are not in a file called GLOBALS, from which
we generate several files automatically.
2010-03-21 22:12:42 +00:00
Vitor Santos Costa
499f2c5368 cleanup: m4 conf and old CLPQR are not used any longer 2010-03-17 07:24:59 +00:00
Vitor Santos Costa
1245c85ba1 move to version 6.0.4 2010-03-16 01:16:36 +00:00
Vitor Santos Costa
4e052ba822 Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-03-15 15:06:03 +00:00
U-Khasa\Vitor
8e290be453 Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-03-15 09:42:59 -05:00
U-Khasa\Vitor
ada06d84b2 caps change 2010-03-15 09:42:42 -05:00
Vitor Santos Costa
2908d4ccbd fix: size of quue went down. 2010-03-12 22:40:17 +00:00
Vitor Santos Costa
6dddceb7b2 Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-03-04 23:37:57 +00:00
U-Khasa\Vitor
156555d256 fix win32 installer: second try 2010-03-04 06:17:40 -06:00
Vitor Santos Costa
35882bfb0b Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-03-04 11:07:01 +00:00
U-Khasa\Vitor
d716d5d1bb fix win32 installer 2010-03-04 05:06:44 -06:00
Vitor Santos Costa
50b692d2c1 change release to 6.0.3 2010-03-04 09:13:06 +00:00
Vitor Santos Costa
145e66063b inc version to 6.0.2 2010-03-01 23:06:25 +00:00
U-Khasa\Vitor
66e4668b1f Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-02-28 17:57:13 -06:00
U-Khasa\Vitor
eae760c7c1 be less demanding on nsi 2010-02-28 17:57:05 -06:00
Vitor Santos Costa
b93970fe67 6.0.1 2010-02-27 10:11:03 +00:00
Vitor Santos Costa
d7c74d8888 fix missing commit for syntax_erro 2010-02-26 13:30:16 +00:00
Vitor Santos Costa
038b74493c more ATOM changes. 2010-02-26 10:59:43 +00:00
U-Khasa\Vitor
585ff18783 WINDOWS release support 2010-02-22 19:06:35 -06:00
Vítor Santos Costa
dddad72a0e AtomDouble was not defined correctly. 2010-02-19 14:16:57 +00:00
Vitor Santos Costa
f5bba7b8f7 fix indexing of dbrefs (obs from Nicola di Mauro). 2010-02-12 15:51:31 +00:00
vsc
f8070bdd59 YAPOR: lock memory allocation under YAPOR/dlmalloc 2010-02-03 22:54:47 +00:00
Vitor Santos Costa
e41c7a05c1 fix restoring of LU try chains. 2010-01-12 10:08:38 +00:00
Vitor Santos Costa
6d1eec34db make atom locking compatible with SWI-Prolog. 2009-12-21 10:12:47 -02:00
Vitor Santos Costa
79a1d3e13c fix thread stuff (obs from Jiefei Ma). 2009-12-17 23:55:09 -02:00
Vítor Manuel de Morais Santos Costa
98f79484ae change 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.
2009-11-27 11:21:24 +00:00
Vítor Manuel de Morais Santos Costa
7155fbec22 fix bad ordering in HEAPFIELDS: OPERANDS must be well placed before we can
recover atom table and dependent preds.
2009-11-18 15:48:29 +00:00
Vítor Manuel de Morais Santos Costa
146718c060 fix bad call to tabling data structures. 2009-11-03 15:06:48 +00:00
Vítor Manuel de Morais Santos Costa
7fddfbc189 fix bad tabling restore. 2009-11-02 16:43:24 +00:00
Vitor Santos Costa
15fc06764a fix declaration and message_hook/3 (obs from Paulo Moura) 2009-11-02 12:53:51 +00:00
Vitor Santos Costa
a628079e00 make sure we walk every clause when doing restore mega_clause. 2009-11-02 12:46:39 +00:00
Vitor Santos Costa
021141188f fix missing $live 2009-11-02 12:46:28 +00:00
Vítor Manuel de Morais Santos Costa
6a8cee8b79 compilation fixes 2009-10-31 00:18:13 +00:00
Vitor Santos Costa
923094bd01 more updates to HEAPFIELDS. 2009-10-30 23:59:00 +00:00
Vitor Santos Costa
7116d1385b move more fields to HEAPFIELDS 2009-10-28 15:53:23 +00:00
Vitor Santos Costa
838b14cb77 more data structures. 2009-10-28 15:20:46 +00:00
Vitor Santos Costa
d3f969e1b1 various_codes includes all the head pointers to the code space. Try to
centralise everything in a single file (HEAPFIELDS) and generate them
from a Prolog script (buildheap).
2009-10-28 13:11:35 +00:00
Vitor Santos Costa
0179998d60 change Heap.h to YapHeap.h
rename $live to prolog/0 (for SWI compatibility).
2009-10-23 14:22:17 +01:00
Vitor Santos Costa
c6e16a608a fix @ option in format/2 2009-10-21 00:07:31 +01:00
Costa Vitor
f877e78785 make YAP compile with --enable-or-parallelism 2009-08-19 21:53:49 -05:00
Vitor Santos Costa
3ae6f583ec include AtomInStackExpansion 2009-06-13 16:05:45 -05:00
Costa Vitor
c45903301e add missing new atoms. 2009-06-08 20:25:47 -05:00
Costa Vitor
7f54acb536 separate standard alarm from virtual alarm. timeout uses virtual alarm #112 2009-06-03 10:09:14 -05:00
Vitor Santos Costa
a36c507175 infrastructure to eventually support SWI atom table. 2009-06-01 15:37:01 -05:00
Vitor Santos Costa
d6ed058157 first pass at a decent implementation of PL_error (#95)
- basically copy SWI code.
2009-05-30 12:52:23 -05:00
Costa Vitor
7304fbda13 fix lack of streams message (Ulrich Neumerkel #60) 2009-05-22 19:55:18 -05:00
Vitor Santos Costa
ae5bf4d6e7 support resource errors for out of memory conditions.
improve stack dump message.
2009-05-17 09:42:56 -07:00
Vitor Santos Costa
8385f4bea6 saved state should be startup.yss, not startup.yss, in case YAP looks up
saved state in current directory (obs from Ulrich Neumerkel).
2009-05-02 14:06:24 -05:00
Vitor Santos Costa
c132e7e6ec fix gmp support to give out of resource error if the bignum is too big. 2009-04-25 11:01:33 -05:00
Vitor Santos Costa
2503805aff support 2^2 is 4 and not 4.0: complicated if we have to deal with bignums. 2009-04-24 19:03:00 -05:00
Vitor Santos Costa
6acf7eeb0a fix bad ordering in tests 2009-04-23 10:36:11 -05:00
Vitor Santos Costa
700ea83b17 array name should $array, not array 2009-04-22 11:34:23 -05:00
Vitor Santos Costa
9ef1b5cb4f shift vesion number. 2009-04-08 00:49:54 +01:00
Vitor Santos Costa
b92b026c90 more patches to support Anderson's JIT. 2009-04-08 00:32:36 +01: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
15b86cded4 new merged instructions and small changes to the emulator. 2009-03-03 10:04:13 +00:00
Vitor Santos Costa
d7c2c74acc fix counting of C-pred: it should not be in caller. 2009-02-26 00:00:23 +00:00