Commit Graph

439 Commits

Author SHA1 Message Date
Vitor Santos Costa
124b2e9069 move all error related state to a record 2016-09-20 22:52:34 -05:00
Vitor Santos Costa
cc1a44c7a7 ugh 2016-08-15 14:53:20 -05:00
Vitor Santos Costa
b705c07ac8 error 2016-08-04 10:26:18 -05:00
Vitor Santos Costa
9ef2f87165 osx 2016-08-02 12:10:01 -05:00
Vitor Santos Costa
d54446d736 fix bad meta-call handling & throw(Var)
also warnings
2016-08-02 09:01:54 -05:00
Vitor Santos Costa
4628adc63e Merge branch 'master' of https://github.com/vscosta/yap-6.3 2016-08-01 21:45:42 -05:00
Vitor Santos Costa
4477350d08 small fixes 2016-07-31 10:31:22 -05:00
Vitor Santos Costa
84d5974cca Android support 2016-07-31 09:55:50 -05:00
Vitor Santos Costa
60687f4346 Ubuntu 2016-06-29 01:42:26 +01:00
Vitor Santos Costa
a6a769c0de MAC ^&& 2016-06-28 23:10:35 +01:00
Vitor Santos Costa
7ca285eb40 YAPStreams 2016-06-28 16:40:48 +01:00
Vitor Santos Costa
ab135e8b74 bootstrap 2016-06-17 17:32:15 +01:00
Vitor Santos Costa
2b9b92dac7 hope it is useful 2016-06-17 17:21:41 +01:00
Vitor Santos Costa
b2fe557503 garbagee 2016-06-17 17:07:26 +01:00
Vitor Santos Costa
da6d41433f Support for booting when YAP is called from a generic app
- ensure pl boot works
- ensure yap is initialed before user code is called
- cleanup code to use file status
2016-06-17 16:02:36 +01:00
Vitor Santos Costa
7c1ea8f3ae add more error types 2016-05-19 13:36:29 +01:00
Vitor Santos Costa
b28deedffe TermZero for error handling 2016-05-12 11:50:53 +01:00
Vitor Santos Costa
9391a1499d WIN clash 2016-05-12 11:43:43 +01:00
Vitor Santos Costa
83a1269553 change bootstrap sequence to support -B and to allow booting from pl files 2016-05-10 08:33:44 +01:00
Vitor Santos Costa
f966a5b912 Fixes for processing write to buffer: should b more robust, but we still may have memory leaks 2016-04-22 18:19:58 +01:00
vscosta
76f4868ff6 fix init to always be able to try booting from Prolog 2016-04-17 17:05:03 -07:00
Vitor Santos Costa
786cfb71ad python 2016-04-12 16:22:53 +01:00
Vitor Santos Costa
65f1cb9741 win64 support: encodings 2016-04-10 06:21:17 -07:00
vscosta
a5951daea9 indenting plus deoid 2016-04-05 02:28:56 +01:00
vscosta
562ac0251d indenting 2016-04-05 02:27:33 +01:00
Vítor Santos Costa
f3e8b8b3da indenting; warning; exceptions; small fixes 2016-03-29 02:02:43 +01:00
Vítor Santos Costa
2192f73b11 make it compile under MSN vc. Unfortunately it has a weird crash at boot :(
- Lots of indenting changes
- VC++ is strict with variadic macros
- VC++ does not accept unistd.h
- new interface for walltime
- VC++ does not seem to have support for integer overflow.
- VC++ defines YENV_REG?
- no access flags, x permissions ignored.
- new FindGMP supporting MPIR
- make horus optional (c++ is hard).
2016-02-28 19:32:55 +00:00
Vítor Santos Costa
f7d23f9deb Simplify Input/Output
get rid of string I/O, did not add much
getc is never actually used by Prolog
try to use system I/O, even if it may be slower, at least for now.
extend IO C-interface to allow reading clauses
2016-02-21 19:06:25 +00:00
Vítor Santos Costa
c381dbe318 ISO error handling (Paulo Moura's suite). 2016-02-18 19:46:03 +00:00
Vítor Santos Costa
9860b6244f small changes 2016-02-13 03:11:25 +00:00
V'itor Santos Costa
485d20d908 related changes 2016-02-11 06:20:16 -08:00
Vítor Santos Costa
825bfd11c2 X_API & docs 2016-01-31 10:35:53 +00:00
Vítor Santos Costa
9c78086a6a X_API WIN32 stuff 2016-01-31 10:29:36 +00:00
Vítor Santos Costa
697f57ecef memory streams
- work with blobs
- recover memory on close
- do not call Unix code on win32
2016-01-31 10:02:11 +00:00
Vítor Santos Costa
ca2cd734a2 fix inconsistent errors 2016-01-20 22:39:32 +00:00
Vítor Santos Costa
50c8724322 linux backport
file exists system predicate
$source_file -> $user source
hide and make system preds
fix check_head_and_body
user_expansion never fails
goal expansion is controlled b dynamic procedure
add must_be_of_type predicate_indicator
fix neat_call, debug flag is user controlled
use simplecudd, not ptoblogbdd
compile all of myddas
fx junk in file_name
fix warnings
use common file opening struct and funds
avoid pairs module
fix db queues
2016-01-04 14:11:09 +00:00
Vítor Santos Costa
661f33ac7e bug fices 2016-01-03 02:06:09 +00:00
Vítor Santos Costa
15404b3835 small
- do not call goal expansion on meta-calls (that is done by undef).
- docs updates
- fix init code
2015-12-15 09:28:43 +00:00
Vítor Santos Costa
9f3e3baf2b gap and C++ :( 2015-11-09 11:30:04 +00:00
Vítor Santos Costa
03c79a89ef support for absolut_file_name 2015-11-09 11:29:40 +00:00
Vítor Santos Costa
f8b5ca8291 init and friends : cleanup 2015-11-05 19:33:38 +00:00
Vítor Santos Costa
c1ca214932 Actually use GMP 2015-11-05 19:26:22 +00:00
Vítor Santos Costa
5f76e105b1 Debug IO stuff 2015-11-05 19:25:54 +00:00
Vitor Santos Costa
20c87f1ab6 gcc warnings 2015-10-20 08:06:46 +01:00
Vítor Santos Costa
bc2dabbca5 fix slot leaks
also moe errot gandking
2015-10-09 10:31:07 +01:00
Vítor Santos Costa
b3cc23ce64 IO patches
simplify error handling
use get and inject
use wide support in OS
be stricter in checkin streams and arguments
2015-10-08 02:23:45 +01:00
Vítor Santos Costa
34fe3e6ded Error Handler 2015-09-29 23:43:02 +01:00
Vítor Santos Costa
b871f6676e fix error handling 2015-09-25 10:57:26 +01:00
Vítor Santos Costa
4336b2ba88 Avoid complaining from strlen
`
2015-09-21 17:05:36 -05:00
Vítor Santos Costa
b164f53191 fix regression tests 2015-08-07 16:57:53 -05:00
Vítor Santos Costa
dbdae6a930 syntax error handling 2015-07-27 22:22:44 -05:00
Vítor Santos Costa
1d6f9981e1 mkdir and small stuff 2015-07-06 12:04:42 +01:00
Vítor Santos Costa
1c06bfdc05 cmake & text support 2015-06-19 01:30:13 +01:00
Vítor Santos Costa
497cc27003 git versioning 2015-06-19 01:14:28 +01:00
Vítor Santos Costa
47c3f64eae Inp/Out changes, blobs 2015-06-18 00:52:31 +01:00
Vítor Santos Costa
e535e16ae3 C-Interface should call new flags 2015-06-18 00:29:31 +01:00
Vítor Santos Costa
0ed3ee4fc4 enable path expansion by default 2015-04-24 10:03:44 -06:00
Vítor Santos Costa
ef586e264e android debugging plus clean-ups 2015-04-13 13:28:17 +01:00
Vitor Santos Costa
0d955797fe don't export config.h 2015-02-14 17:11:56 +00:00
Vitor Santos Costa
f983c99313 c_interface still kicks 2015-02-09 10:21:53 +00:00
Vitor Santos Costa
4a5a3d833a fix tyes. 2015-01-27 03:25:56 +00:00
Vítor Santos Costa
bc1e70758e cmake and jit 2015-01-26 04:02:46 +00:00
Vítor Santos Costa
bece9d05d8 JIT 2015-01-20 03:00:42 +00:00
Vítor Santos Costa
53877ad426 docs 2014-12-24 15:32:29 +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
a83ff038f4 Mutex stuff movibg to C 2014-11-27 10:02:04 +00:00
vscosta
d8c4ea4364 support intptr_t and uintptr_t in swi api 2014-11-09 11:18:03 +00:00
vscosta
091f9dda33 MSYS32 2014-10-30 07:46:17 +00:00
vscosta
f993421ac8 fix longint < intptr_t warnings
Handle printf mess
2014-10-30 07:41:30 +00:00
Vitor Santos Costa
8f0ce4bb94 YAP meets exo 2014-10-26 01:50:18 +01:00
Vítor Santos Costa
3e255ec4a1 qload 2014-09-22 18:13:35 +01:00
Vítor Santos Costa
9929946de2 fix typo 2014-09-19 14:25:10 -05:00
Vitor Santos Costa
e06bcd659e more C++/Android fixes 2014-09-19 14:20:22 -05:00
Vitor Santos Costa
6b0d99e2fe fix debugging-left-over 2014-09-17 16:55:19 -05:00
Vítor Santos Costa
3009987985 update docs 2014-09-11 14:06:57 -05:00
Vítor Santos Costa
4745401b2a use stdbool 2014-09-10 00:38:31 -05:00
Vítor Santos Costa
45c0671fa2 support open as script option, to avoid spurious warning message 2014-08-05 09:06:35 -05:00
Vitor Santos Costa
5c9468983f fix typo 2014-07-27 22:42:48 -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
2becb15578 more android support changes. 2014-07-16 11:56:09 -05:00
Vítor Santos Costa
8da6fb70e1 handle_t type name causes conflict with WIN32, replace by yhandle_t 2014-06-16 14:41:54 +01:00
Vítor Santos Costa
aefb7b3668 more Android debugging. 2014-06-12 01:49:03 +01:00
Vítor Santos Costa
059884bc03 Android 2014-06-11 19:36:50 +01:00
Vítor Santos Costa
a76b6d23dc Fix: eclipse >u. into >y_u. 2014-05-30 01:06:09 +01:00
Vítor Santos Costa
0ebea4ec26 synch interface with implementation. 2014-05-25 20:48:06 +01:00
Vitor Santos Costa
df7425922a compile. 2014-04-29 18:43:17 +01:00
Vitor Santos Costa
d58dcdc3e6 portability. 2014-04-29 18:17:23 +01:00
Vítor Santos Costa
3efe5df28e C++ compatibility. 2014-04-28 11:54:47 +01:00
Vitor Santos Costa
2c89aadb11 WIN64 support (sill needs improvement) 2014-03-06 02:09:48 +00:00
Vítor Santos Costa
9e2a2b75b9 Merge branch 'master' of ssh://git.dcc.fc.up.pt/yap-6.3
Conflicts:
	library/dialect/swi/fli/swi.c
	packages/real
2014-02-02 21:52:14 +00:00
Vítor Santos Costa
ae0ab6fa86 improve SWI 2014-02-02 21:46:33 +00:00
Vitor Santos Costa
327c1216e4 fixes to SWI interface 2014-01-28 13:01:27 +00:00
Vitor Santos Costa
d648375412 make MYDDAS into its own module. 2014-01-24 19:59:42 +00:00
Vitor Santos Costa
6b2e1973ab Windows fixes, mainly H -> HB 2014-01-19 21:15:05 +00:00
Vítor Santos Costa
29c0d55ad4 nth_clause cleanup with support for mega and exo clauses 2013-12-09 14:16:30 +00:00
Vítor Santos Costa
adea3bdb24 more string fixes and get_code 2013-12-08 19:12:24 +00:00
Vitor Santos Costa
7e58cf7755 more atom/string manipulation fixes and SWI compatibility 2013-12-05 21:26:46 +00:00
Vitor Santos Costa
2665f71112 keep trying to fix atoms 2013-12-04 23:01:30 +00:00
Vítor Santos Costa
d7397b43af new text conversion and string code (big changes, take care please) 2013-12-02 14:49:41 +00:00
Vitor Santos Costa
d75e6b56e5 handles in SWI and changes in exports 2013-11-20 22:29:51 +00:00
Vitor Santos Costa
2a5f6535ae fix win64 2013-11-16 16:58:07 +00:00
Vítor Santos Costa
84bd55df0d continue cleanup 2013-11-16 00:27:02 +00:00
Vítor Santos Costa
3c7656b619 clang fixes 2013-11-15 10:38:00 +00:00
Vitor Santos Costa
4e4f21e1dc upgrade to latest swi 2013-11-15 01:10:25 +00:00
Vítor Santos Costa
5b46b6bd1a latest swi flgs 2013-11-13 23:48:54 +00:00
Vitor Santos Costa
220970db6d more integration and cleanup work: allow irect access from YAP to swi global and local, to
check flags quickly.
2013-11-13 12:57:52 +00:00
Vitor Santos Costa
4fa9021a7b integration work:
- use SWI flags whenever possible
  - support by module unknown, escapes, strings
  - accesss thread info fom SWI
  - allow strings to be input as strings.
  - remove some unused flags.
2013-11-13 10:38:20 +00:00
U-w7\vsc
f2b90a1bb0 improve thread signal support, still far from good 2013-11-04 15:31:26 +00:00
Vitor Santos Costa
fcaabd2c0b export API 2013-10-04 18:19:33 +01:00
Vitor Santos Costa
860a5dcd02 make error codes available to C-interface 2013-10-04 13:14:35 +01:00
Vitor Santos Costa
94619d2a32 allow yser code error handling 2013-10-03 11:25:56 +01:00
Vitor Santos Costa
33da88be5b fix SWI exec issues and try to clean up the code a bit 2013-02-05 14:22:17 +00:00
Vitor Santos Costa
c03b5095a3 fix bad define (mei). 2013-01-18 15:23:59 +00:00
Vitor Santos Costa
7407ecb60c SWI extension including write variable_names 2013-01-17 00:17:02 +00:00
Vítor Santos Costa
b10d95393e SWI update 2013-01-16 11:31:37 +00:00
Vítor Santos Costa
0eacb68907 SWI update 2013-01-16 00:19:07 +00:00
Vitor Santos Costa
e85e76cd57 update to newer pl-file.c and pl-write.c. 2013-01-15 16:51:55 +00:00
Vítor Santos Costa
480e9aea69 fix bad ints (obs from Mei). 2013-01-13 11:48:31 +00:00
David Vaz
cdc15e8cd8 merge with yap-6.3 2013-01-06 20:09:48 +00:00
David Vaz
58962f2595 UDI: some code refactor, simple code when no index intersection is needed 2013-01-02 11:23:54 +00:00
David Vaz
e6c2fa30ee Added uthash to store indexed predicates info 2012-12-27 12:11:14 +00:00
David Vaz
4efa594f0a UDI: more work 2012-12-20 17:13:30 +00:00
Vitor Santos Costa
a7307f3faa add SWI PL_uninstantiatin_error 2012-12-19 00:52:29 +00:00
David Vaz
43e459b8f8 Changes Rtree so almost working 2012-12-18 18:26:59 +00:00
David Vaz
bd25c61fbf New work on UDI 2012-12-17 20:23:03 +00:00
Vitor Santos Costa
84a5f518bf fix Makefile trouble 2012-10-23 09:06:38 +01:00
Vítor Santos Costa
c30e71fe68 add missing interface. 2012-10-02 08:48:35 +01:00
VITOR SANTOS COSTA
89030ce97d Fix WriteBuffer and add WriteDynamicBuffer 2012-09-18 23:06:26 +01:00
VITOR SANTOS COSTA
2c0fd47e56 fix ReadFromBuffer 2012-09-11 14:21:55 +01:00
Vítor Santos Costa
1fc641b7d1 add module aware versions of pred interface. 2012-07-13 14:57:12 -05:00
Vitor Santos Costa
5989af937b MT support in mingw win32. 2012-06-29 15:38:49 -05:00
Vitor Santos Costa
a9d1bd788e improve SWI console 2012-06-22 03:56:01 -05:00
Vítor Santos Costa
af7510a67b fix handling of repeated calls to YAP_Init. 2012-04-12 23:25:04 +01:00
Vítor Santos Costa
edfb13c5e9 allow users to check for out of space conditions explicitly. 2012-03-30 09:49:36 +01:00
Vítor Santos Costa
74d7ad2704 extend interface to copy fast lists of integers or floats. 2012-03-14 11:08:28 +00:00
Vítor Santos Costa
a2c86643b0 ismall fixes to MPI interface. 2012-02-03 16:31:49 +00:00
Vítor Santos Costa
4e6cc28cd3 lam support. 2012-02-02 09:58:05 +00:00
Vítor Santos Costa
8f728962a5 YAP_ExportTerm and YAP_ImportTerm from buffer (first cut).w 2012-02-01 19:26:28 +00:00
Vitor Santos Costa
d3c7800ab4 support PL_skip_list and PL_unify_bool. 2012-01-09 23:29:31 +00:00
Vítor Santos Costa
00b5edd8da allow copying a chunk of floats to a list in a single operation. Also
improve performance of sum out operation on arrays.
2011-12-30 16:04:16 +00:00
Vítor Santos Costa
18190a4633 fix types for return absmi and friends. 2011-12-13 23:09:05 +00:00
Denys Duchier
17c3a16d35 rename rellocate -> relocate 2011-12-13 19:14:33 +01:00
Vítor Santos Costa
aab98180c5 garbage collection support for opaque variables 2011-12-13 10:01:51 +00:00
Ricardo Rocha
7aa77faf2a fix compilation for or-parallelism 2011-11-30 15:19:37 +00:00
Vítor Santos Costa
e06560eff4 support for threads. 2011-11-30 13:05:06 +00:00
Vítor Santos Costa
0409449a23 expand interface to create list from array of terms. 2011-11-18 16:26:11 +00:00
Vítor Santos Costa
449da99843 fix fix. 2011-11-12 12:20:03 +00:00
Vítor Santos Costa
074a9a754f fix path for config.h 2011-11-12 12:18:57 +00:00
Vítor Santos Costa
3ac8e3914f improve C-interface to cope with prism. 2011-11-10 12:26:23 +00:00
Vítor Santos Costa
2ee9981a11 new Makefiles and prototypes. 2011-11-03 07:55:56 +09:00