Commit Graph

206 Commits

Author SHA1 Message Date
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
4dbdaaa772 eplace format 2011-02-14 14:13:45 -08:00
ubu32
f6befe5796 alias stuff. 2011-02-14 06:59:15 -08:00
Vitor Santos Costa
2451a052cb use text routines from current SWI fli. 2011-02-12 00:17:59 +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
U-WIN-U2045GN0RNQ\Vítor Santos Costa
a4a1feeacc improve SWI emulation in WIN32. 2011-02-03 11:23:12 +00:00
Vitor Santos Costa
168a6366f8 enable obtaining current stream_position from SWI.y 2010-12-19 21:32:13 +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
Vitor Santos Costa
8290341a5f fix typo 2010-12-05 00:07:22 +00:00
Vítor Santos Costa
8db05c883b make sure we separate betwen async exceptions and synchroneous. 2010-12-04 19:05:13 +00:00
Vitor Santos Costa
7b6f330bd3 improve blob support (but just skeleton). 2010-11-29 23:17:06 +00:00
Vitor Santos Costa
69cde79ba6 PL_malloc and friends should call malloc, not Yap_Alloc 2010-11-24 08:44:03 +00:00
Vitor Santos Costa
99c5a17b12 Implement Halt Hook (request from Bernd). 2010-09-24 14:00:53 +01:00
Vitor Santos Costa
8b9cf7dc2a YAP_SetYAP_Flag 2010-08-30 22:25:56 -05:00
Vítor Santos Costa
f1977f5dab allow saving and restoring current arguments to/from slots. 2010-08-04 17:36:20 +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
388f4fb782 expand C-interface to allow access to common term operations (request from Ingo Molnar). 2010-08-02 19:48:17 +01:00
Vitor Santos Costa
f3b9811ef7 more packages to implement better thread interface. 2010-07-23 15:54:13 +01:00
Vítor Santos Costa
1f3455a656 Merge branch 'master' of yap.dcc.fc.up.pt:yap-6
Conflicts:
	include/SWI-Prolog.h
2010-07-21 09:44:18 +01:00
Vítor Santos Costa
90f7504a76 make swi-yap io interface a structure. 2010-07-21 09:39:49 +01:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
63f891ae40 work around iob problems 2010-07-20 22:55:27 +01:00
Vitor Santos Costa
bbc67cca67 fix numbering scheme for functors. 2010-07-19 14:45:11 +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
Vítor Santos Costa
d22cb9b6ab new interface pedicates
fixes to bad implementation.
2010-06-23 11:44:21 +01:00
Vítor Santos Costa
d3f52d3f61 fix SWI to be able to include gmp.h 2010-06-19 14:36:12 +01:00
Vítor Santos Costa
b2d59d6c43 make sure gmp.h is included 2010-06-19 08:20:25 +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
Vítor Santos Costa
4c45f8c4b1 avoid some name clashes (obs from Roberto Bagnara) 2010-06-18 17:48:47 +01:00
Vitor Santos Costa
b74e38378f new: PL_atom_nchars 2010-06-18 09:14:45 +01:00
Vítor Santos Costa
054df758a0 another PL function. 2010-06-18 00:27:13 +01:00
Vítor Santos Costa
a180e48cfa improvements in SWI-emulation 2010-06-17 00:35:25 +01:00
Vítor Santos Costa
99dafc9172 more win64 fixes 2010-05-10 22:14:08 +01:00
Vítor Santos Costa
8340886b31 long -> Int 2010-05-10 10:22:18 +01:00
Vítor Santos Costa
bd06b719db fix long long types 2010-05-06 16:37:44 +01:00
Vítor Santos Costa
9a437820a3 oops 2010-05-06 16:36:46 +01:00
Vítor Santos Costa
53336b6788 fix interface types 2010-05-06 16:35:53 +01:00
Vítor Santos Costa
6307508ffc more fixes 2010-05-06 16:32:41 +01:00
Vítor Santos Costa
c44d7b66d2 fix warnings 2010-05-06 16:01:48 +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
0fabe2b9c6 _PL_get_arg and WUNDEFINED 2010-05-06 10:58:44 +01:00
Vitor Santos Costa
764737fe5b add missing files. 2010-05-03 14:27:54 +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
4fda6b7488 track recent SWI changes. 2010-02-22 09:35:21 +00:00
U-Khasa\Vitor
33190e290d mingw complaint with recent versions of gcc 2010-02-10 03:03:03 -06: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
Vítor Manuel de Morais Santos Costa
ffdf270a3d make SWI-Prolog get YAP stuff from include/Yap at run-time. 2010-01-15 14:39:03 +00:00
Vitor Santos Costa
ff628b8e78 move to more recent interface. 2010-01-15 00:49:05 +00:00
Vitor Santos Costa
5fc26e1b45 improve emulataion of backtrackable SWI c-code (request from NF). 2010-01-06 11:25:15 -02:00
Vítor Manuel de Morais Santos Costa
0b17d3572b add PL_chars_to_terms to SWI emulation. 2009-12-12 23:21:54 +00:00
Ricardo Rocha
8a557012dd add primitive YAP_IsLongIntTerm to the C Language interface. 2009-11-23 18:46:57 +00:00
Vitor Santos Costa
a132707746 undo PL_error updates 2009-11-21 22:21:17 +00:00
nf@khaixa.(none)
1bfbe535da Extended support for SWI-Prolog C interface. 2009-11-20 08:42:22 +00:00
Vitor Santos Costa
432cce1c49 VISUALC++ understands prototypes, hurray! (obs from Cristiano Pitangui). 2009-11-18 23:39:18 +00:00
Vítor Manuel de Morais Santos Costa
eac1cc5b9d fix C++ complaint. 2009-11-11 10:56:19 +00:00
Vitor Santos Costa
4c8eb33e06 we had args already (no need for argv0)
improve error handling in YAP_ReadBuffer
2009-10-26 10:42:19 +00:00
Vitor Santos Costa
0ea348c26d extend SWI interface with PL_toplevel and to handle C++ code.
prolog/0 built-in
fixes to parms.h changes.
2009-10-23 16:50:43 +01: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
253444d7ca support parms.h
pass argv[0]
2009-10-23 09:09:16 +01:00
Vitor Santos Costa
0f99e336cc YAPVERSION 2009-10-21 00:20:18 +01:00
Vítor Manuel de Morais Santos Costa
460d0c9f6b fix compilation in older gccs. 2009-10-16 08:36:37 +01:00
Costa Vitor
b4502969ad make types compatible. 2009-08-19 20:23:52 -05:00
U-Khasa\Vitor
d3fa43d08e improve SWI emulation in WIN32 2009-07-20 20:56:16 -07:00
U-Khasa\Vitor
2020a31362 mingw compilation 2009-07-18 13:38:38 -07:00
Costa Vitor
93a74d4224 SWI-Stream should define S__checkpasteeof #102 2009-06-01 20:05:04 -05:00
Costa Vitor
98fef199bd fix conflict in error handling (not supposed to be exported by SWI-Prolog.h
add PL_eval_expression_to_int64_ex
2009-06-01 18:01:30 -05:00
Costa Vitor
9d5a049c8f upgrade to most recent version of pl-os
fix some warnings.
2009-06-01 17:30:08 -05:00
Vitor Santos Costa
b8f60c623d improvements to SWI compatibility 2009-06-01 15:38:39 -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
Vitor Santos Costa
39ccbd345d make options -T -L -G work as SWI: they impose a maximum size limit 2009-05-10 13:36:55 -04:00
Vitor Santos Costa
1ea4a27dd1 YAP_FileNoFromStream for Nf 2009-04-22 21:42:15 -05:00
Vitor Santos Costa
7ed3b456ac add Yap_FileDescriptorFromStream at request from NF. 2009-04-22 16:41:41 -05:00
Vitor Santos Costa
43d8e1a287 make it work for MINGW32. 2009-04-21 08:30:12 -05:00
Vitor Santos Costa
2c00c4a00b export PLStream stuff. 2009-04-20 16:22:06 -05:00
Vitor Santos Costa
b159736edd fixes for 64 bits. 2009-04-14 01:25:21 +01:00
Vitor Santos Costa
f27c261daf more Anderson GIT support 2009-04-08 00:46:34 +01:00
Vitor Santos Costa
2aa5aa3a26 add -A flag to ask for more attributed stack. 2009-03-27 15:15:54 +00:00
Vitor Santos Costa
e56f46c0e3 typedef bool confuses jpl 2009-03-23 15:28:35 +00:00
Vitor Santos Costa
67b29f3c85 improve SWI compatibility. 2009-03-13 19:40:27 +00:00
Vitor Santos Costa
91657556ee more UDI stuff. 2009-02-25 00:13:45 +00:00
Vitor Santos Costa
ffb621c53b improve support for UDI. 2009-02-20 15:52:17 +00:00
Vitor Santos Costa
94ebb90719 UDI patch: make it work with YAP. 2009-02-20 11:42:48 +00:00
Vitor Santos Costa
0f58cf8029 small fixes 2009-02-16 12:53:29 +00:00
Vítor Santos Costa
4b826e76ae support for user defined indexing: step 1 basic routines. 2009-02-12 16:39:20 +00:00
Vitor Santos Costa
1191b039d5 include support for dynamically created clause lists. 2009-02-11 15:10:57 +00:00
Vitor Santos Costa
33b4a02fae extend C-interface to check if a variable is AttVar and to fetch all the
attributes.
2009-02-09 22:45:50 +00:00
Vítor Santos Costa
8efcdf7eaa add support for creating a list of codes or atoms incrementally. 2008-12-22 13:49:44 +00:00
Vítor Santos Costa
43e70f2003 more changes to support SWI Input/Output. Now it compiles, which does
not mean it would work!
2008-12-22 12:03:14 +00:00
Vítor Santos Costa
e51a4c2f5b more changes to interface better with SWI-Prolog 2008-12-19 11:41:56 +00:00
Vítor Santos Costa
a2744ed186 further changes to better support SWI interface. 2008-12-17 14:47:05 +00:00
Vítor Santos Costa
2b0c27deb6 Remove attempt to emulate SWI I/O
add YAP_getcwd and PL_cwd to interface
2008-12-13 16:07:55 +00:00
Vitor Santos Costa
2e2aaf040b add PL_fail and PL_succeed to SWI interface emulation. 2008-08-24 14:22:49 +01:00