Commit Graph

192 Commits

Author SHA1 Message Date
Vitor Santos Costa
9101de3014 handl weird cases in writing [] 2014-09-23 22:33:31 +01:00
Vítor Santos Costa
5b19ccf6a8 swig fixes for Android compatibility 2014-06-22 17:35:05 +01:00
Vítor Santos Costa
ab06b04a09 fix non locale code 2014-06-11 19:30:44 +01:00
Vitor Santos Costa
0aa91d7c00 fix bad handle recovery properly. 2014-05-15 01:11:26 +01:00
Vitor Santos Costa
b532fbd0b9 Merge branch 'master' of ssh://git.code.sf.net/p/yap/yap-6.3
Conflicts:
	C/write.c
2014-05-14 18:00:25 +01:00
Vitor Santos Costa
94032de135 fix recover slots. 2014-05-14 17:57:41 +01:00
Vítor Santos Costa
503b2b93f9 indenting and fix bad usage of recover slots. 2014-05-14 10:00:40 +01:00
Vítor Santos Costa
f264859483 - versioning in macos
- fixes to input/output to improve interaction with eclipse console.
-
2014-02-20 10:38:18 +00:00
Vítor Santos Costa
6bde2d2cd7 avoid unions called u: they confuse eclipse. 2014-02-18 09:44:01 +00:00
Vitor Santos Costa
6b2e1973ab Windows fixes, mainly H -> HB 2014-01-19 21:15:05 +00:00
Vítor Santos Costa
4612a7cc57 ISO 2013-12-20 00:34:15 +00:00
Vítor Santos Costa
35f6ecad66 more atom and string 2013-12-06 15:08:35 +00:00
Vitor Santos Costa
5ada26eab3 improve printing of quoted objects 2013-12-05 21:26:05 +00:00
Vítor Santos Costa
b3608c6a83 improve char conversion 2013-12-05 11:20:57 +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
Vítor Santos Costa
80dc774a5f fix blob output 2013-11-23 15:19:54 +00:00
Vítor Santos Costa
fd58cf10b2 fix output for floats 2013-11-23 14:51:33 +00:00
Vítor Santos Costa
d447d80fdb improve locale support in scanner and write: basically, just hide current locale 2013-11-23 12:34:49 +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
Vítor Santos Costa
d77de70868 extra protection 2013-10-30 09:41:15 +00:00
Vítor Santos Costa
ff2acca219 fix operators 2013-10-07 12:20:52 +01:00
Vítor Santos Costa
577b99367d don't make mega-clauses always source 2013-09-28 18:20:04 +01:00
Vítor Santos Costa
048c00a7a6 fix writing [](_,_) 2013-09-28 12:12:09 +01:00
Vitor Santos Costa
2cfa0081ad make syntax extensions SWI compatible 2013-09-13 11:44:26 +01:00
Vítor Santos Costa
493161f6d8 ciao style arrays, (...) 2013-07-07 16:15:25 -05:00
Vitor Santos Costa
743c9c69fb get rid of PROTO 2013-04-25 17:15:04 -05:00
Vitor Santos Costa
87e811028c ifix indenting 2012-12-10 12:48:02 +00:00
Vitor Santos Costa
7b579b810f fix printing of opaque terms. 2012-12-10 12:47:01 +00:00
Vitor Santos Costa
f261a3fd2f fix writing att vars. 2012-05-18 13:03:22 +01:00
Vítor Santos Costa
d3fd980474 another try at improving output of operators. 2012-03-27 16:44:11 +01:00
Vítor Santos Costa
9c685e71a7 fix - -2. 2012-03-27 15:19:07 +01:00
Vítor Santos Costa
573c11e8b2 patch by UN: Avoid writing quoted for bar. Conforms to 6.3.4.3 of ISO/IEC 13211-1:1995/Cor 2:2012 2012-03-22 22:15:07 +00:00
Vítor Santos Costa
857ff4b895 get rid of portray_delays. 2012-03-22 21:59:04 +00:00
Vítor Santos Costa
4484dec044 allow writing constraints, and small fix for writing after prefix ops. 2012-03-22 21:40:42 +00:00
Vítor Santos Costa
3443fa1932 another try... 2012-03-19 09:31:15 +00:00
Vítor Santos Costa
0b8c998ae1 fix - and (. 2012-03-19 08:58:26 +00:00
Vítor Santos Costa
3cb8b99852 fix write -(-1) UN # 236 2012-03-18 00:08:10 +00:00
Vítor Santos Costa
06242879c0 fix hassle with write(-(1)). #UN 135. 2012-03-15 22:55:50 +00:00
Vítor Santos Costa
0c1eb1d642 fix write_canonical of $VAR(_). 2012-03-15 22:19:48 +00:00
Vítor Santos Costa
44737a5d0f Merge branch 'master' of ssh://git.dcc.fc.up.pt/yap-6.3 2012-03-08 11:29:25 +00:00
Vítor Santos Costa
a95666c977 fix dereferences when saving terms. 2012-03-08 11:28:59 +00:00
Vítor Santos Costa
89183a143a portray_delays only works in debugging mode. 2012-03-08 08:15:13 +00:00
Vítor Santos Costa
3e4a2c6767 improve handling of recursive writes, catch exceptions. 2012-03-07 23:52:15 +00:00
Vítor Santos Costa
665d426e13 fix writing streams by write.c 2012-02-27 08:53:18 +00:00
Vitor Santos Costa
4135553063 fix write to be thread-safe (wrputf was also unsafe *) 2012-02-17 13:41:05 +00:00
Vitor Santos Costa
6403b4793a small write fixes. 2012-02-14 09:10:07 +00:00
Vitor Santos Costa
b454383e30 more write updates. 2012-02-14 07:46:37 +00:00
Vitor Santos Costa
98b2cf70c2 fix write '$VAR'('_A'). 2012-02-14 06:54:32 +00:00
Vitor Santos Costa
247aa54046 back to using YAP writer. 2012-02-13 23:07:31 +00:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
840e287cda mode changes 2011-07-25 17:09:28 +01:00
Vitor Santos Costa
89e23bff65 fix cache usage in write. 2011-07-04 14:14:38 +01:00
Ricardo Rocha
e1fdbd7537 fix incompatibilities with string patch 2011-06-21 16:53:17 +01:00
Vítor Santos Costa
ded6b2435c improve BigNum handling. 2011-06-21 15:11:07 +01:00
Joao
8170f6d3cb Some global variables(Yap_thread_gl) in C/init.c are now declared in misc/LOCALS 2011-05-23 16:19:47 +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
dc3c54c164 change LOCALS macros. 2011-05-04 10:11:41 +01:00
Vítor Santos Costa
697f7c650c I/O fixes. 2011-04-22 15:29:41 +01:00
Joao
b6e0a64e56 fix memory allocation for YapOR 2011-04-14 19:19:13 +01:00
Vítor Santos Costa
b0965f60b5 write at higher depth. 2011-03-24 15:10:29 +00:00
Vitor Santos Costa
c184d5feaa do less writing of terms. 2011-03-19 23:21:17 +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
cce6bb6354 LD should be local to threads.
get rid of write_depth on YAP side.
2011-03-01 10:26:25 +00:00
Vítor Santos Costa
49f980a7a7 small fixes 2011-02-15 19:24:15 +00:00
Vitor Santos Costa
8b2312daf7 close must be last to be proted, otherwise YAP gets confused about who owns the stream. 2011-02-13 01:29:25 +00:00
Vitor Santos Costa
55d28f6ad5 Merge ../yap-6.2 2010-11-26 23:37:36 +00:00
Vitor Santos Costa
471cc93f6c fix some bad code in legalAtom, allowing /a/b not to be quoted (obs from Paulo Moura). 2010-11-26 23:36:50 +00:00
Vitor Santos Costa
edae401189 Merge ../yap-6.2 2010-11-24 10:02:04 +00:00
Paulo Moura
907d10128d Commented out buggy patch for supporting quote atoms starting with /* as it breaks write_canonical/1. 2010-11-23 00:12:41 +00:00
Vitor Santos Costa
cee293fe3a Merge ../yap-6.2 2010-11-22 12:52:07 +00:00
Vitor Santos Costa
2ee12ca1a7 only force 1E30 an error if in ISO mode.
always 1.0e30.
2010-11-22 12:51:02 +00:00
Vitor Santos Costa
cf59f9aedc Merge ../yap-6.2 2010-11-21 22:12:20 +00:00
Vitor Santos Costa
86d0a251b5 [PATCH-YAP 4/4] ISO: quote atoms starting with /* (7.10.5 d)
from ulrich neumerkel
2010-11-21 21:53:58 +00:00
Vitor Santos Costa
bb570108de ISO: Always bracket atoms that are current operators when written as
operands (7.10.5 h 2 ii)
2010-11-21 21:47:07 +00:00
Vitor Santos Costa
8ca680705d Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3 2010-11-01 21:28:49 +00:00
Vitor Santos Costa
2f3d762f80 display reference count in DBRef. 2010-11-01 21:28:18 +00:00
Vítor Santos Costa
a44d847b61 improve writing infinite terms. 2010-11-01 20:10:32 +00:00
Vitor Santos Costa
5cd55b0e0e EX changes 2010-07-27 23:29:55 +01:00
Vítor Santos Costa
e9545be0d0 remove unused code. 2010-06-05 00:49:09 +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
Vítor Santos Costa
09fef1a033 rational number support. First pass. 2010-05-27 12:24:15 +01:00
U-vsc-win7\vsc
dd2232491a be careful how to write inf and nan (obs from Paulo Moura) 2010-05-11 14:44:55 +01:00
Vítor Santos Costa
faeef37a03 long -> Int 2010-05-10 10:21:56 +01:00
Vítor Santos Costa
11641c5f94 64 bit cleanups. 2010-05-06 15:00:44 +01:00
Vitor Santos Costa
34ca485e42 new Atts code. 2010-03-08 09:23:58 +00:00
Vitor Santos Costa
5778730b62 be less enthusiastsis about writing (op). 2010-02-26 14:14:10 +00:00
Vítor Manuel de Morais Santos Costa
7bdc216cf6 get rid of the 0x0x problem. 2010-01-21 15:05:01 +00:00
Vítor Manuel de Morais Santos Costa
506da0b1bf make write always protect operators when they are not used as operators so as to follow standard (#150). 2009-11-27 16:09:48 +00:00
Vitor Santos Costa
ffe1dfdfff support for module based operators. 2009-11-20 00:33:14 +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
b455f057a8 fix writing of atributed variables. 2009-06-04 10:18:28 -05:00
Costa Vitor
efb72f7d0e make sure we send unsigned chars to writing routine (obs from Simon Strobl) 2009-06-03 10:25:21 -05:00
Vitor Santos Costa
a2a8f8e40e stop writing at very long lists. 2009-06-01 22:54:56 -05:00
Vitor Santos Costa
a6f0b8cc9f ignore specific limit for max write depth on lists. Use same limit everywhere. 2009-05-24 19:37:07 -05:00
Vitor Santos Costa
b94baf1e5f try not to loop in infinite terms. 2009-05-24 15:14:23 -05:00
Costa Vitor
ec595374a6 fix allocation of temporary stack so that unification can work even for
very deep terms.
fix occur_unification_bug X = a(f(Y)).
2009-05-22 18:35:24 -05:00
Vitor Santos Costa
51e669dcfb support for passing priority as argument to write. (Ulrich's #45).
fixes on making write handle infinite loops
2009-05-22 13:24:27 -05:00
Vitor Santos Costa
328e2f5c22 don't loop on cyclic terms. 2009-05-22 12:24:30 -05:00
Vitor Santos Costa
3a3220d1a1 make sure we don't generate an heapexpansion in the middle of a write. 2009-05-21 01:04:13 -05:00
Vitor Santos Costa
aaec9ddceb fix overflow while dumping very large big ints (Ulrich #18) 2009-05-20 08:12:18 -07:00