Commit Graph

3229 Commits

Author SHA1 Message Date
Vitor Santos Costa
3122d323b5 support 64 bit flags in 32 bit mode 2015-01-14 04:51:54 -08:00
Vitor Santos Costa
0d5fff0f16 improved support for export/import of 64 bits 2015-01-14 04:51:00 -08:00
Vítor Santos Costa
832b2258c8 support newer llvm, by J Santos 2015-01-07 10:22:52 +00:00
Vitor Santos Costa
f22f337f67 32 bit support:
use uint64_t for predflags
define a type for arity
2015-01-06 17:47:58 +00:00
Vitor Santos Costa
fcf0f41312 infinity, try to fix the ffsll mess, warnings 2015-01-05 16:06:32 +00:00
Vítor Santos Costa
3164ed2d61 doc support 2015-01-04 23:58:23 +00:00
Vítor Santos Costa
53877ad426 docs 2014-12-24 15:32:29 +00:00
Vítor Santos Costa
21d379bfb6 fix current_predicate missing predicates 2014-12-16 01:25:00 +00:00
Vítor Santos Costa
289a36a0a1 opentry had rwo defs 2014-12-14 11:57:31 +00:00
Vítor Santos Costa
0ae8785de5 use const char * 2014-12-14 11:56:20 +00:00
Vítor Santos Costa
5da1be61cb with_mutex is always needed 2014-12-14 11:55:39 +00:00
Vítor Santos Costa
f5ef30563b use const char * 2014-12-14 11:52:07 +00:00
Vítor Santos Costa
7acb2110d2 Merge branch 'cmake' of ssh://git.dcc.fc.up.pt/yap-6.3 2014-12-04 08:03:45 +00:00
Vitor Santos Costa
ff977fbad8 cmake support: first cut from David Vaz work.i 2014-12-04 07:59:30 +00:00
Vítor Santos Costa
7038ea1958 fix list of atoms (Paulo Moura obs) 2014-12-02 01:46:03 +00:00
Vítor Santos Costa
0f560abc92 fix warnings 2014-12-01 00:02:59 +00:00
Vítor Santos Costa
5b37c15742 cur_pred was overeager 2014-11-29 08:08:20 +00:00
Vítor Santos Costa
9f28f7e836 fix test cases 2014-11-28 03:21:32 +00:00
Vítor Santos Costa
3e0764edcf fix broken merge 2014-11-28 02:30:58 +00:00
Vítor Santos Costa
c071e145a7 portabiity 2014-11-28 02:30:19 +00:00
Vítor Santos Costa
d526545bc9 Merge branch 'master' of github.com:vscosta/yap-6.3
Conflicts:
	C/sysbits.c
	C/threads.c
2014-11-27 15:15:22 +00:00
Vítor Santos Costa
70060bf627 move to eval.h 2014-11-27 15:11:26 +00:00
Vítor Santos Costa
a83ff038f4 Mutex stuff movibg to C 2014-11-27 10:02:04 +00:00
Vítor Santos Costa
6d82d4816a fix mutex creation 2014-11-26 09:45:39 +00:00
Vítor Santos Costa
dc21270454 fix small bugs 2014-11-26 09:45:11 +00:00
Vitor Santos Costa
624183b78e more thread work to cean-up mutexes. Not finshed yet 2014-11-25 19:52:51 +00:00
Vitor Santos Costa
afc6c5d04e Merge branch 'master' of ssh://git.dcc.fc.up.pt/yap-6.3
Conflicts:
	C/threads.c
	JIT/HPP/EnvironmentInit.h
	packages/ProbLog/simplecudd_lfi/problogbdd_lfi.c
	pl/preds.yap
2014-11-25 16:53:35 +00:00
Vitor Santos Costa
50659967ed begin of support for named mutexes. 2014-11-25 16:41:53 +00:00
Vítor Santos Costa
1ca062f558 Merge branch 'master' of ssh://git.dcc.fc.up.pt/yap-6.3 2014-11-25 12:04:05 +00:00
Vítor Santos Costa
bb8ea9a27d fix current and system predicate 2014-11-25 12:03:48 +00:00
Vitor Santos Costa
addb8cbce3 ORP support 2014-11-14 16:51:42 +00:00
vscosta
a8a535afa4 warnings 2014-11-10 01:56:56 +00:00
vscosta
f1cbffae6f warnings & typo 2014-11-10 01:55:59 +00:00
Vitor Santos Costa
24920a230f Merge branch 'master' of https://www.github.com/vscosta/yap-6.3 2014-11-09 17:30:15 +00:00
Vitor Santos Costa
e7fcc5d9a1 with_mutex should succeed even in single-thread mode 2014-11-09 17:26:08 +00:00
vscosta
9c2fd881f7 Directory lookup in win32 2014-11-09 12:06:40 +00:00
vscosta
6958f4ce6d use __WINDOWS__ 2014-11-09 11:16:24 +00:00
vscosta
8f448c0284 registry changes 2014-11-05 07:46:09 +00:00
vscosta
c633eac236 avoid using registry, clean-up 2014-11-05 07:45:36 +00:00
vscosta
604c28f8c1 Fix getpid warning
include <process,h> and use _getpid
2014-10-30 07:39:10 +00:00
Vítor Santos Costa
546af97345 win32 patches 2014-10-28 12:56:26 +00:00
Vítor Santos Costa
6b93b8ee5a config fixes 2014-10-26 18:47:15 +00:00
Vítor Santos Costa
fca75670bc fix argv && os_argv 2014-10-26 17:38:41 +00:00
Vítor Santos Costa
86a79e2cab provide a real interface to exo routines: needed by raptor 2014-10-26 17:37:46 +00:00
Vitor Santos Costa
8f0ce4bb94 YAP meets exo 2014-10-26 01:50:18 +01:00
Vítor Santos Costa
b5a43ae9ff improve autoconf 2014-10-25 16:46:13 +01:00
Vitor Santos Costa
f7fe32a03c fix win32 warnings: unsigned long != CELL, IOSTREAM with sace restore, _ffsll and _isatty, fp patches 2014-10-24 15:18:32 +01:00
Vitor Santos Costa
461dae09f7 fix self-deadlock. 2014-10-23 19:11:13 +01:00
Vitor Santos Costa
1ba8656e73 Merge branch 'master' of ssh://git.dcc.fc.up.pt/yap-6.3 2014-10-23 02:11:03 +01:00
Vitor Santos Costa
130d28ceb3 recover space after portray 2014-10-23 02:10:55 +01:00
Vitor Santos Costa
2f34be261e beauty 2014-10-23 01:23:29 +01:00
Vitor Santos Costa
e25e7dab7b Fix deadlocks 2014-10-23 01:21:40 +01:00
Vitor Santos Costa
d2984b6548 reimplement portray 2014-10-23 01:21:22 +01:00
Vítor Santos Costa
6c021e7899 fix typos in gmp support routines, by Paulo Moura. 2014-10-22 20:26:19 +01:00
Vítor Santos Costa
171dca1c8c Paulo Moura: fix atom_length/2 e atomic_length/2. 2014-10-22 17:54:50 +01:00
Vítor Santos Costa
0367f52840 string_concat 2014-10-22 17:22:37 +01:00
Vítor Santos Costa
92ffbe5a2e fix atomic_conct, Paulo Moura 2014-10-22 17:17:34 +01:00
Vítor Santos Costa
93270c125a fix several ISO compat bugs (Paulo Moura). 2014-10-22 16:50:12 +01:00
Vítor Santos Costa
1c3c0c6301 fix sub_atom, by Paulo Moura. 2014-10-22 16:22:38 +01:00
Vitor Santos Costa
c13bf88377 error handling bugs in is/2 and =.., found by Paulo Moura. 2014-10-22 10:43:38 +01:00
Vitor Santos Costa
57f928c621 isolate undef and spy code. 2014-10-22 10:10:43 +01:00
Vitor Santos Costa
799b4c0346 fix a case where a comparison entered the enext member of the switch.
This was introduced to get rid of eclipse warnings :(
2014-10-21 19:23:44 +01:00
Vítor Santos Costa
ffb97269a0 ISO support (Paulo Moura). 2014-10-21 00:26:40 +01:00
Vitor Santos Costa
a4081673e5 fix indexing on dynamics (bug introduced when fixing MT code). 2014-10-20 23:47:33 +01:00
Vítor Santos Costa
d40b9d1426 restore callable. 2014-10-20 09:20:56 +01:00
Vítor Santos Costa
bf0844a2a0 make sure to reset state after error. 2014-10-20 00:33:36 +01:00
Vítor Santos Costa
a837a303d4 fix warning. 2014-10-19 13:10:02 +01:00
Vítor Santos Costa
0cd0ece207 make error handling for callable more ISO like. 2014-10-19 12:48:14 +01:00
Vítor Santos Costa
47d1bd5ecc allow setting up arithmetic exception handling. 2014-10-19 11:27:53 +01:00
Vítor Santos Costa
53a8a8f7c9 try to make MT more robust by:
- tracking memory overflows (still worried about blobs)
- moving core components to C-code, namely the mailboxes.
- reducing locking: too many locks == deadlock.
thanks to Paulo Moura for the test suite!
2014-10-19 01:54:57 +01:00
Vítor Santos Costa
a351e1f38f use BGL lock for big operations. 2014-10-19 01:52:39 +01:00
Vítor Santos Costa
c7d2973c1e avoid confusing gc. 2014-10-19 01:51:50 +01:00
Vítor Santos Costa
69d8b57776 allow peeking in dbterm queues. 2014-10-19 01:51:02 +01:00
Vítor Santos Costa
e668908a6f beautifications. 2014-10-19 01:50:11 +01:00
Vítor Santos Costa
18506025c3 use PP with care:
- clean after interrupt;
  - use it only for indexing code.
2014-10-19 01:48:38 +01:00
Vítor Santos Costa
ba03f1da65 avoid fuzzy f errors 2014-10-16 23:56:12 +01:00
Vítor Santos Costa
168f0c6c0c improve error handling 2014-10-16 23:55:34 +01:00
Vitor Santos Costa
1bb12cbc35 second try to fix error handling in arithmetic expressions. THis time:
- exit at predicate end;
- just return first on multiple erors.
- YapArithError takes care of inner errors, Yp_EvalError fixes externals.
- a few ISO stuff to make Paulo's unit tests go happier.
2014-10-16 10:49:11 +01:00
Vitor Santos Costa
46e1ce96b4 Yap_cputime() needs thread local memory, so be careful about releasing
local memory.
2014-10-15 12:32:00 +01:00
Vítor Santos Costa
8576e67d84 generate exceptions on arithmetic errors 2014-10-15 11:06:07 +01:00
Vitor Santos Costa
49ccb545f8 fix bad call. 2014-10-14 19:39:20 +01:00
Vítor Santos Costa
186adc2053 More thread fixes, including true anonymous mqueues, worker_id for sequential,
support for arithmetic exceptions on mac, fixes for with_mutex, fixes for dangling pointers
 in thread termination. Uuufff...
2014-10-14 15:53:24 +01:00
Vítor Santos Costa
90289b7188 fix bad initialization. 2014-10-14 02:10:18 +01:00
Vítor Santos Costa
d76c2a0039 fix duplicates. 2014-10-14 02:09:52 +01:00
Vítor Santos Costa
c95045e14c improve support for floating point exceptions. 2014-10-14 01:13:31 +01:00
Vítor Santos Costa
3c7779ec78 move message queues to C 2014-10-13 12:34:52 +01:00
Vítor Santos Costa
7cbcd17993 avoid warning 2014-10-13 12:33:24 +01:00
Vítor Santos Costa
ce390d987e fix initialization on undefined. 2014-10-12 11:02:47 +01:00
Vítor Santos Costa
a64c6772fc fix atomic_concat/3 to be backtrackable. 2014-10-12 00:32:17 +01:00
Vítor Santos Costa
e3e1bcaca8 fix broken semantics. 2014-10-11 14:08:39 +01:00
Vítor Santos Costa
b2cd81f79a fix bb usage of DB. 2014-10-11 01:39:09 +01:00
Vítor Santos Costa
84527a8c77 fix bb usage of DB. 2014-10-11 01:38:32 +01:00
Vítor Santos Costa
5bf44d2378 fix signal handling in non-threaded (thanks to Paulo Moura). 2014-10-11 01:37:34 +01:00
Vitor Santos Costa
f6bcb22b7c fix undefined procedures to allow hooks as before. 2014-10-10 10:00:27 +01:00
Vitor Santos Costa
cbc579310a fix number_atom broken behaviour when atom was bound. 2014-10-09 10:42:15 +01:00
Vítor Santos Costa
ad82a2619d compute mian functor correctly a(X), [Y] <-- b(X,Y). 2014-10-07 21:04:54 +01:00
Vítor Santos Costa
a54af395cf multifiles are discontiguus by def. 2014-10-07 01:37:42 +01:00
Vítor Santos Costa
11b957f5fe protect from tracing. 2014-10-05 10:19:42 +01:00
Vítor Santos Costa
80faee6824 qload/qsave implementation. 2014-10-02 14:57:50 +01:00
Vítor Santos Costa
2e43165a68 fix debugging message. 2014-10-02 14:48:47 +01:00
Vítor Santos Costa
b1a6f092fd fix compiltion of binary tests to use a long instruction. 2014-10-02 14:38:23 +01:00
Vítor Santos Costa
b8f1ee4a75 extend nb_setarag/3 to call a default case at initialization, ie,
nb_getval(a, X, X=start).
and just that.
2014-10-02 14:35:38 +01:00
Vítor Santos Costa
2960f81e04 just say cmp preds are binary. 2014-10-02 14:34:51 +01:00
Vítor Santos Costa
4f77281827 move docs around. 2014-10-02 14:33:22 +01:00
Vítor Santos Costa
a1022f8237 always deref arguments to built-ins. 2014-10-02 14:32:26 +01:00
Vítor Santos Costa
17617e8d20 allow setting file ownership, and make sure preds created by aux
programs have an owner file.
2014-10-02 14:21:43 +01:00
Vítor Santos Costa
81440607f1 support outputting strings for debugging. 2014-10-02 14:17:26 +01:00
Vítor Santos Costa
37a49f2135 synchronize compiler oops with their descriptions
computils; allocate N instruction blocks.
2014-10-02 14:15:17 +01:00
Vítor Santos Costa
e4306ba28e fix qsave_module 2014-09-25 09:47:38 +01:00
Vítor Santos Costa
7c32ac6080 disable ground optimization: it is not supported by restore 2014-09-24 00:23:11 +01:00
Vitor Santos Costa
66a95e96c0 Merge branch 'master' of ssh://git.dcc.fc.up.pt/yap-6.3
Conflicts:
	library/matrix.yap
	pl/qly.yap
2014-09-23 22:46:19 +01:00
Vitor Santos Costa
429e87404f avoid empty hash tables 2014-09-23 22:37:08 +01:00
Vitor Santos Costa
fcc0c51ce7 avoid int 2014-09-23 22:35:01 +01:00
Vitor Santos Costa
9101de3014 handl weird cases in writing [] 2014-09-23 22:33:31 +01:00
Vítor Santos Costa
3e255ec4a1 qload 2014-09-22 18:13:35 +01:00
Vítor Santos Costa
5cfe70420f fix reset in qload 2014-09-22 18:10:51 +01:00
Vítor Santos Costa
9254103f45 $pred_owner: file where source was. 2014-09-22 18:09:23 +01:00
Vítor Santos Costa
7a577a72ff stdbool. 2014-09-22 18:08:39 +01:00
Vitor Santos Costa
6b0d99e2fe fix debugging-left-over 2014-09-17 16:55:19 -05:00
Vítor Santos Costa
3168b2cfc8 fix int/Int in save; add debugging (obs from Gong Su 2014-09-16 04:00:31 -05:00
Vítor Santos Costa
91946626b0 causes do not have cps for a while 2014-09-16 03:58:35 -05:00
Vítor Santos Costa
637ca503cc remove debugging msg 2014-09-15 13:42:14 -05:00
Vítor Santos Costa
aeb54ebc61 more doc udates 2014-09-15 13:10:49 -05:00
Vítor Santos Costa
8eec3113be improve docs 2014-09-15 03:13:50 -05:00
Vítor Santos Costa
882eaca30c updates to documentation 2014-09-12 18:50:04 -05:00
Vítor Santos Costa
3009987985 update docs 2014-09-11 14:06:57 -05:00
Vítor Santos Costa
3c0a65218b use stdbool 2014-09-09 23:50:43 -05:00
Vítor Santos Costa
337839b8ea remove used cruft 2014-09-08 17:14:02 -05:00
Vítor Santos Costa
d39423c1f0 handle EXIT_SIGNAL with exit 2014-09-08 17:13:39 -05:00
Vítor Santos Costa
0a64e9f062 fix creep handling 2014-09-08 17:12:05 -05:00
Vítor Santos Costa
87a0a7af74 define unnecessary lock 2014-09-08 17:11:26 -05:00
Vítor Santos Costa
aa82206330 fixes: compilation 2014-09-03 11:11:44 -05:00
Vítor Santos Costa
f291c37dfc fixes: checking sigs & no threads 2014-09-03 11:02:28 -05:00
Vítor Santos Costa
b942c1ef13 fixes for signal handling 2014-09-02 22:24:01 -05:00
Vítor Santos Costa
99713d81a6 replace locks by critical sections in interrupt handling 2014-09-02 14:19:23 -05:00
Vítor Santos Costa
19d0f56f2d fix arena initialization 2014-08-23 14:47:40 -05:00
Vítor Santos Costa
f68b32770b analysis changes 2014-08-21 10:32:23 -05:00
Vítor Santos Costa
6f88083d38 fix inityaamregs not to destroy global structures. 2014-08-18 01:25:55 -05:00
Vítor Santos Costa
f9a7741781 fix overflow handling in meta-calls. 2014-08-15 19:34:20 -05:00
Vitor Santos Costa
2aa8ad0fd3 fix \c in quoted strings 2014-08-06 20:02:28 -05:00
Vitor Santos Costa
7a01daf8dd try fixing \c handling. 2014-08-04 21:28:45 -05:00
Vítor Santos Costa
bc16bf83ec small fixes 2014-08-04 09:47:03 -05:00
Vitor Santos Costa
f0f4fcbc94 get pred defs close to use as built-ins. 2014-07-27 22:41:40 -05:00
Vítor Santos Costa
325c819f79 intermediate steo in improving doc system to doxygeb 2014-07-26 19:14:15 -05:00
Vítor Santos Costa
ce8a4b6958 module fixes plus add better docs 2014-07-17 12:19:38 -05:00
Vítor Santos Costa
2becb15578 more android support changes. 2014-07-16 11:56:09 -05:00
Vítor Santos Costa
f37806d7cc improve listing, make it more generous and SWi-like. 2014-07-16 11:55:16 -05:00
Vítor Santos Costa
4d7b270ce4 fix bad handling of choice-points in backtrackable predicates (SWI code
does not clean frames on exit )
2014-07-15 18:40:15 -05:00
Vítor Santos Costa
8ad0cba7fe fix single name passing 2014-07-08 15:01:42 +01:00
Vítor Santos Costa
5b19ccf6a8 swig fixes for Android compatibility 2014-06-22 17:35:05 +01:00