Commit Graph

948 Commits

Author SHA1 Message Date
Vitor Santos Costa
660ea12537 exception handler was not passing well exceptions in setup. 2010-04-14 10:49:32 +01:00
Vítor Santos Costa II
a3667150d3 remove debugging message 2010-04-13 13:34:05 +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
9def5978bb SWI actually calls initialization after exiting the directory (obs from Paulo Moura). 2010-04-12 18:30:39 +01:00
Vítor Santos Costa II
4ccc201322 fix version_data 2010-04-10 23:57:46 +01:00
Vítor Santos Costa II
2257b056f0 fix absolute_file_name (SWI and SICStus compatibility, obs from Paulo Moura). 2010-04-10 21:23:38 +01:00
Vitor Santos Costa
066603c79b fix global variables 2010-04-08 01:44:08 +01:00
Vitor Santos Costa
f7e6242fe9 fix spy bug (obs from Nuno Fonseca). 2010-04-07 01:32:57 +01:00
Vitor Santos Costa
8e72f97651 fix version info to be more like SWI/SICStus. 2010-04-06 00:57:40 +01:00
Vitor Santos Costa
ca31e9fad8 fix portray_clause to use copy_term_nat and get rid of attributed variables. 2010-03-27 15:06:36 +00:00
Vitor Santos Costa
35bbb9e7d1 avoid binding attributed variables. 2010-03-27 11:43:03 +00:00
Vitor Santos Costa
c468d8431e try to make top level writing more SWI compatible. 2010-03-27 11:34:10 +00:00
Vitor Santos Costa
568c541874 use copy_term compatible with SWI. 2010-03-27 10:56:35 +00:00
Vítor Santos Costa II
c3d2e4cd14 support for agc_margin 2010-03-22 14:47:53 +00:00
Vitor Santos Costa
39483147f4 fix project_attributes/2 (was not being called ever). 2010-03-22 09:11:27 +00:00
Vítor Santos Costa II
8df2b4a963 fix ref to $freeze 2010-03-15 20:40:05 +00:00
Vitor Santos Costa
9cce7df45b output unification should go after cut. 2010-03-15 14:18:25 +00:00
Vitor Santos Costa
d33be13487 SWI compatibility 2010-03-14 09:31:25 +00:00
Vitor Santos Costa
2ba051e908 SWI compatibility for term_expansion 2010-03-14 09:30:24 +00:00
Vitor Santos Costa
3235842947 small optimisation 2010-03-12 22:41:49 +00:00
Vitor Santos Costa
26e0bfdf06 fix op 2010-03-12 22:41:30 +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
613dfb0d95 move away from SICStus: do not check all attvars. 2010-03-12 08:25:35 +00:00
Vitor Santos Costa
3d10482cc7 more upgrades to new coroutining code. 2010-03-10 14:06:07 +00:00
Vitor Santos Costa
bb3c837ec5 fix unnecessary choicepoint in [a]. 2010-03-09 22:00:46 +00:00
Vitor Santos Costa
dd3645b5c8 move to SWI like interface. 2010-03-08 09:24:24 +00:00
Vitor Santos Costa
8fc50d9935 make YAP throw a runtime-error on unknown arithmetic ops. 2010-03-06 00:16:49 +00:00
Vítor Santos Costa II
8497905876 declare erf to Prolog 2010-03-05 16:49:37 +00:00
Vitor Santos Costa
e4f3a127e0 make sure environment variables are consulted first. 2010-03-05 08:33:40 +00:00
Vitor Santos Costa
e92107e4cc version is 6.0 2010-03-05 08:33:29 +00:00
Vitor Santos Costa
fb6c4f966c Merge branch 'master' of yap.dcc.fc.up.pt:yap-6 2010-03-03 21:49:14 +00:00
Vítor Santos Costa II
f489118025 small fix to consult. 2010-03-03 19:08:59 +00:00
Vitor Santos Costa
910d04a786 test for [X] and friends. 2010-03-02 23:13:39 +00:00
Vitor Santos Costa
635d13c082 exception/3 is dynamic. 2010-03-01 23:02:37 +00:00
Vitor Santos Costa
8cfbee9584 support exception/3 on undefined predicates. 2010-03-01 23:02:24 +00:00
Vitor Santos Costa
233926ea00 fix nb_getval to handle exceptions. 2010-03-01 22:32:40 +00:00
Vitor Santos Costa
0546df7ac3 fix goal_expansion 2010-03-01 22:30:31 +00:00
Vitor Santos Costa
51982bee42 fix nb_current/2 2010-03-01 21:48:39 +00:00
Vitor Santos Costa
28c60f7e09 fix missing global. 2010-03-01 08:47:39 +00:00
Vitor Santos Costa
dcd1c37fa8 make expand_goal built-in. 2010-02-28 22:25:54 +00:00
Vitor Santos Costa
16a9c8a807 SWI-compatible source_file/1 and 2 2010-02-28 22:24:51 +00:00
Vitor Santos Costa
8582d4ff45 term_expansion can be called from the current_module, as well as from user. 2010-02-28 10:08:01 +00:00
Vitor Santos Costa
12b8acfa20 fix missing initialization (obs from Paulo Moura). 2010-02-28 09:08:06 +00:00
Vitor Santos Costa
a5e8dbc096 split directives into two files. 2010-02-28 01:11:05 +00:00
Vitor Santos Costa
7037b38fa7 make nb_ undefined variable return an error, as SWI does. 2010-02-28 00:57:29 +00:00
Vitor Santos Costa
ec30e08f69 add user_flags/s prolog_flag 2010-02-28 00:42:47 +00:00
Vitor Santos Costa
495529e69e SWI compatible option: prompt_alternatives_on. 2010-02-28 00:05:38 +00:00
Vitor Santos Costa
a00c3e13c1 accept // more often as predicate indicator. 2010-02-27 23:07:03 +00:00
Vitor Santos Costa
d69902e986 fix alarm/3 for floating point input (obs from Ashwin Srinivasan). 2010-02-27 10:10:23 +00:00
Vitor Santos Costa
b4481ca98c fix confusion with file names. 2010-02-26 13:41:40 +00:00
Vitor Santos Costa
4355a94793 make syntax_error handling ISO compatible. 2010-02-26 13:08:38 +00:00
Vitor Santos Costa
5df3c389b5 fix stream_property position 2010-02-26 12:13:28 +00:00
Vitor Santos Costa
97a3897c88 fix op error handling. 2010-02-26 12:03:32 +00:00
Vitor Santos Costa
69b6f47b73 make open remember original file. 2010-02-26 11:23:15 +00:00
Vitor Santos Costa
34400afd8e disallow abolish(_). 2010-02-26 10:38:56 +00:00
Vitor Santos Costa
00c3419e02 fix bad $execute test 2010-02-26 10:23:38 +00:00
Vitor Santos Costa
a1e3aa45ba protect against assert(1). 2010-02-26 10:22:41 +00:00
Vitor Santos Costa
a8039df035 protect unbound ball 2010-02-26 10:22:09 +00:00
Vitor Santos Costa
61eb299ba5 fix call(\+ !). 2010-02-26 10:03:32 +00:00
Vitor Santos Costa
daa55352ec fix bad module passing. 2010-02-26 09:25:47 +00:00
Vitor Santos Costa
83f25afc41 add address_bits flag (request from Paulo Moura). 2010-02-23 00:29:17 +00:00
U-Khasa\Vitor
f350e369b5 handle cr in files 2010-02-11 12:06:27 -06:00
Vitor Santos Costa
eea6932e23 fix undefined error in the absence of tabling (obs from Paulo Moura). 2010-01-31 23:13:30 +00:00
Vitor Santos Costa
6700981b63 fix typo (obs from Bernd Gutmann) 2010-01-26 22:27:00 +00:00
Vítor Manuel de Morais Santos Costa
b94a667972 fix uninited nb if booting from prolog (obs from nf). 2010-01-26 12:37:10 +00:00
Vitor Santos Costa
8ec6791183 add atom_to_term/3. 2010-01-26 12:19:13 +00:00
Vitor Santos Costa
87a075bd28 avoid unnecessy retry ports 2010-01-25 10:21:21 +00:00
Vitor Santos Costa
30e5e5d803 protect hooks within spy 2010-01-25 09:02:15 +00:00
Vitor Santos Costa
de46b64eee allow debugging inside directives. 2010-01-25 09:02:00 +00:00
Vitor Santos Costa
e860bd7ee1 fix initialization/1 (obs from Paulo Moura). 2010-01-18 14:34:30 +00:00
Vitor Santos Costa
8f9f1223e7 fix sub_atom(xxx,_,_,_,'') (obs from David Vaz). 2010-01-17 00:04:17 +00:00
Vitor Santos Costa
e86b28911f improve performance of depth_limit call. 2010-01-17 00:03:55 +00:00
Vítor Manuel de Morais Santos Costa
0c29616bc2 SWI-compatible for initialization/2· 2010-01-15 16:21:29 +00:00
Vítor Manuel de Morais Santos Costa
5ef31fbfd2 experiment in or-parallel threads. 2010-01-14 15:58:19 +00:00
Vítor Manuel de Morais Santos Costa
bf52be1ece add extra options for SWI compatibility: notice, attributes/1 is not actually implemented within write yet! 2010-01-12 14:27:32 +00: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
946b6aa812 small space fixes 2009-12-12 23:20:44 +00:00
Vitor Santos Costa
ac2cf2434a prolog_flag executable (obs from Aubrey Barnard). 2009-12-10 01:16:29 +00:00
Vitor Santos Costa
1be390d31a fix create_prolog_flag to guess domain (idea from Jan Wielemaker). 2009-12-06 00:49:51 +00:00
Vitor Santos Costa
2cb3ef5fa4 fix set_base_module to retract previous modules,
add delete_import_module.
2009-12-04 21:32:36 +00:00
Vítor Manuel de Morais Santos Costa
bed3e52a84 fix version option 2009-12-04 18:24:45 +00:00
Vítor Manuel de Morais Santos Costa
72e2a9658e make volatile part of the system (SWI compatibility). 2009-12-04 18:24:22 +00:00
Vitor Santos Costa
b3088710d3 emulate SWI module inheritance mechanism (at least, I hope). 2009-12-04 11:00:13 +00:00
Vitor Santos Costa
d554871ffb get rid of create_prolog_flag/2. 2009-12-04 09:17:27 +00:00
Vitor Santos Costa
ee575387af rstore user_defined_directive 2009-12-04 00:29:50 +00:00
Vitor Santos Costa
367f1d954f better way to define prolog flag. 2009-12-04 00:06:11 +00:00
Vitor Santos Costa
4c47f4188e fix exceptions in setup. 2009-12-03 22:54:31 +00:00
Vítor Manuel de Morais Santos Costa
71e4d73a75 make sure to reenable interrupts if you have to exit setup in a hurry (#158). 2009-12-03 17:46:21 +00:00
Vitor Santos Costa
bc4b718afb follow import recursively so that we don't lose properties like being a
meta predicate.
2009-12-03 16:33:44 +00:00
Vitor Santos Costa
2d6934178b check for unbound calls (#154) 2009-12-03 09:08:06 +00:00
Vitor Santos Costa
d2da5bfe26 fix setup_call_cleanup and friends. 2009-12-03 02:13:22 +00:00
Vitor Santos Costa
06d30b9fc9 Jump and Throw need to store the term away, if they try to use arena
the term will hang in the stack (#152).
2009-12-02 21:59:41 +00:00
Vítor Manuel de Morais Santos Costa
91a7fc3c66 fix bugs in backtrackable versions of atom_concat/3 and atomic_concat/3 (obs from Paulo Moura). 2009-11-27 13:45:18 +00: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
Vitor Santos Costa
50d720a9c6 fix current_op/3 by walking over the chain of ops or properties and moving complex code to Prolog (obs from Paulo Moura). 2009-11-25 00:38:47 +00:00
Vitor Santos Costa
fe6148ef15 be more cautions about removing prolog: from calls. 2009-11-23 10:15:11 +00:00
Vitor Santos Costa
2d2fb30167 atomic_list_concat/2 and fix some reverse mode ops in atom_concat/3. 2009-11-23 10:13:55 +00:00
Vitor Santos Costa
31e5c54125 support message_string/2 for SWI emulation. 2009-11-23 10:09:32 +00:00
Vitor Santos Costa
e4c9d69044 in SWI mode allow new flags to be silently defined. 2009-11-23 10:06:51 +00:00