Vítor Santos Costa
315a882e8f
remove swi deps
2015-06-18 08:09:31 +01:00
Vitor Santos Costa
afd8c9b9c4
blanks and backslashed strings
2015-02-10 00:03:02 +00:00
Vitor Santos Costa
36e4cbf98b
move handles to a separate handle stack.
2015-01-30 07:25:34 +00:00
Vitor Santos Costa
ce84e60d08
cosmetic
2015-01-18 01:32:13 +00:00
Vitor Santos Costa
3122d323b5
support 64 bit flags in 32 bit mode
2015-01-14 04:51:54 -08:00
Vítor Santos Costa
8eec3113be
improve docs
2014-09-15 03:13:50 -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
Vitor Santos Costa
2c89aadb11
WIN64 support (sill needs improvement)
2014-03-06 02:09:48 +00:00
Vitor Santos Costa
6b2e1973ab
Windows fixes, mainly H -> HB
2014-01-19 21:15:05 +00:00
Vitor Santos Costa
bcc1757989
fixes to message handling
2014-01-07 01:10:48 +00:00
Vítor Santos Costa
adea3bdb24
more string fixes and get_code
2013-12-08 19:12:24 +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
5ecf7a79ff
quasi quote
2013-11-25 11:24:13 +01:00
Vítor Santos Costa
03879aa778
fix isfinite
2013-11-23 14:51:56 +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
f6f183c0f6
remove some more duplicated code
2013-11-22 15:18:03 +00:00
Vítor Santos Costa
84bd55df0d
continue cleanup
2013-11-16 00:27:02 +00:00
Vitor Santos Costa
9eb07a8c8a
more cleanups
2013-11-15 15:45:55 +00:00
U-w7\vsc
7f8f80fdbe
Windows Threaded Patches
2013-11-13 17:04:34 +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
c1a3bfce42
add source location *after* initial comment
2013-11-04 00:05:29 +00:00
Vitor Santos Costa
e1208fc7ad
fix () extension
2013-09-13 10:52:52 +01:00
Vítor Santos Costa
d1ff57b178
no GMP compilation
2013-09-06 23:03:24 +01:00
Vítor Santos Costa
0fd06d8cf1
fix quoting of \
2013-08-09 18:36:45 -05:00
Vitor Santos Costa
d575ca8391
ISO patches
2013-08-08 15:04:36 -05:00
Vitor Santos Costa
743c9c69fb
get rid of PROTO
2013-04-25 17:15:04 -05:00
Vitor Santos Costa
d163cadda1
pass regs when constructing long ints and floats.
...
fix small gcc complaints.
2013-03-26 15:01:52 -05:00
Vitor Santos Costa
610ca06883
check for overflow in big strings
2012-10-16 08:44:26 +01:00
Vítor Santos Costa
84b017e5fd
fix small problems in thread package.
2011-12-01 11:05:27 +00:00
Vítor Santos Costa
dcfdb5e614
don't try to release null pointer.
2011-11-30 13:02:44 +00:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
b6aca9463d
Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3
2011-08-18 22:35:13 +01:00
Vitor Santos Costa
d8b5a0e5d5
handle SY of wide characters.
2011-08-17 16:23:12 -07:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
840e287cda
mode changes
2011-07-25 17:09:28 +01:00
Vítor Santos Costa
ded6b2435c
improve BigNum handling.
2011-06-21 15:11:07 +01:00
Vítor Santos Costa
866d2130af
disable make_index for now.
2011-06-14 09:39:19 +01:00
Vitor Santos Costa
8991b5247a
fixes to scanner code.
2011-06-14 08:58:51 +01:00
Vitor Santos Costa
261e02b43e
support for option comments(X) in read_term/1.
2011-06-12 17:23:10 +01:00
Joao
f658a99dad
fix C/scanner.c. change some misc/LOCALS initializations.
2011-05-26 15:02:00 +01:00
Joao
98e35b16e8
Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3
2011-05-25 16:41:39 +01:00
Joao
971ad94311
moved several global variables to misc/GLOBALS
2011-05-25 16:40:36 +01:00
Vítor Santos Costa
a57cd039d8
fix bug in handling very many comments.
2011-05-24 12:26:37 +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
Joao
d9cee607e9
Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3
...
Conflicts:
C/cdmgr.c
2011-05-04 11:10:20 +01:00
Joao
dc3c54c164
change LOCALS macros.
2011-05-04 10:11:41 +01:00
Paulo Moura
5c9d62e16e
Make the support for 0'\s and 0'\z conditional on the ISO escape sequences flag.
2011-04-30 19:51:40 +02:00
Paulo Moura
f83cdde766
Reapplied patch to support 0'\s and 0'\z.
2011-04-30 18:12:56 +02:00
Vítor Santos Costa
c5ba36e191
improve SWI and ISO scanner compatibility.
2011-03-14 20:37:17 +00:00
Vitor Santos Costa
098e051e46
fix bad cast when copying strings.
2011-03-07 22:10:20 +00:00
Vítor Santos Costa
90d93fdbdd
cache abstra machine register in threaded mode.
2011-03-07 16:02:55 +00:00
ubu32
185bb1b3f0
cleanups.
2011-02-15 06:43:28 -08:00
ubu32
140318ff16
read works now.
2011-02-14 23:39:27 -08:00
Vitor Santos Costa
9d1ae2f96a
allow spaces in numerica atoms/strings.
2011-01-20 12:03:38 -06:00
Vitor Santos Costa
5367381154
fix 10E1 in ISO mode.
2010-12-30 22:51:52 -06: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
0fa3fff5d5
[PATCH-YAP 5/5] ISO: reject 1E1 as float notation
...
from ulrich neumerkel
2010-11-21 22:09:07 +00:00
Vitor Santos Costa
c4913849c6
[PATCH-YAP 3/4] ISO: Restrict binary, octal, hexadecimal integer constant indicators
...
and exponent char to minuscules. (6.4.4)
from Ulrich Neumerkel
2010-11-21 21:55:58 +00:00
Vítor Santos Costa
52c019ec54
cannot hold the lock while getting a char: someone else may be trying to add to the stream.
2010-08-04 11:34:46 +01:00
Vítor Santos Costa
3e13be32a0
fix \\ in strings to scan up to next non-blank
2010-06-23 11:46:16 +01:00
Vítor Santos Costa
be2a3a635e
L constants are evil in 64 bits
2010-05-11 12:25:49 +01:00
Vítor Santos Costa
950abd136e
get rid of debugging info.
...
routines are only define with wctype.h
2010-05-05 12:51:38 +01:00
Vitor Santos Costa
f3b6a044f6
improvements to language support.
2010-05-05 12:45:11 +01:00
Vitor Santos Costa
7593a9ec78
fix scanning of integers starting with 0b and 0o (ISO, obs from Paulo Moura).
2010-04-18 20:48:25 +01:00
Vitor Santos Costa
c21f178b36
fix error where \* ( could be scanned as \+( (obs from Paulo Moura).
2010-02-18 09:19:29 +00:00
Vitor Santos Costa
97a27bd4b6
[ ] and {} should be handled by the scanner, not the parser (obs from Paulo Moura).
2009-12-03 22:51:29 +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
Costa Vitor
8569aacfe5
check for very long wchar_t strings when scanning (obs from Jan Wielemaker).
2009-07-15 14:26:56 -05:00
Vítor Santos Costa
30e946cc30
fix case where very big negative integer could have two representations.
2009-01-12 15:08:26 +00:00
Vítor Santos Costa
a8ac9bfb43
generate known atoms and functors automatically
2008-12-23 01:53:52 +00:00
Vitor Santos Costa
0dcf34b7bc
mainbranch fixes to:
...
- fix quoted characters output
- fix line position in read_term and friends
- make messages look a bit better
- CLP(BN) EM improvements.
2008-10-23 22:17:45 +01:00
vsc
282ba60852
fix some overflows in integer handling and ~r option.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2203 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-03 22:27:29 +00:00
vsc
cab59d9f3a
[ ] should be processed by parser, not by scanner.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2136 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-03-10 14:11:38 +00:00
vsc
83e941e4cf
don't break ISO standard in current_predicate/1.
...
Include Nicos flag.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2081 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-02-07 23:09:13 +00:00
vsc
76bf9355a4
add SWI's char and code_type/2.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2049 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-12-29 12:26:41 +00:00
vsc
a5406ccc02
fix encoding issues
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1944 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-10-02 12:32:46 +00:00
vsc
ee03654060
handle code space overflows while parsing.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1868 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-04-18 06:30:41 +00:00
vsc
47765f7739
WIN32 support
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1790 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2007-01-28 14:26:37 +00:00
vsc
90c1641841
several debugger and CLP(BN) improvements.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1732 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-12-13 16:10:26 +00:00
vsc
0705ca0640
support for UNICODE, and other bug fixes.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1725 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-11-27 17:42:03 +00:00
vsc
0f714371e5
fix garbage collector not to try to garbage collect when we ask for large
...
chunks of stack in a single go.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1684 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-08-07 18:51:44 +00:00
vsc
720db316ce
cleanups
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1617 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-04-28 16:14:05 +00:00
vsc
9101c18410
do locking on streams
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1616 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-04-28 15:48:33 +00:00
vsc
6fb10bfc51
fix number of overflow bugs affecting threaded version
...
make current_op faster.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1615 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-04-28 13:23:23 +00:00
vsc
b8e524424c
fix MacOSX interrupt handling
...
fix using Yap files as Yap scripts.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1555 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-03-03 23:11:30 +00:00
vsc
b6b8366698
Huge atoms in scanner may generate heap overflow.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1532 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-02-01 13:58:30 +00:00
vsc
7fa3e86284
avoid compilation issues with lack of gmp (Remko Troncon)
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1528 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-26 19:13:24 +00:00
vsc
745fed2679
avoid sideffects from MkBigInt
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1524 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-18 15:34:54 +00:00
vsc
3715f1b1d7
fix bug with very large integers
...
fix bug where indexing code was looking at code after a cut.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1513 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-16 02:57:52 +00:00
vsc
e10213929a
support new interface between YAP and GMP, so that we don't rely on our own
...
allocation routines.
Several big fixes.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1490 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-02 02:16:19 +00:00
vsc
60d79804fe
major changes to support online event-based profiling
...
improve error discovery and restart on scanner.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1477 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-17 03:25:39 +00:00
vsc
c13d5d2655
fix memory leak in scanner
...
instrument memory allocation with default_malloc
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1445 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-11-08 13:51:15 +00:00
vsc
14f9382666
fix pruning bug
...
make DL_MALLOC less enthusiastic about walking through buckets.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1253 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-03-01 22:25:09 +00:00
vsc
2ce853ec5f
move to Yap-4.5.7
...
Fix clause size
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1236 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-28 23:14:41 +00:00
vsc
9303ee3b86
fix discontiguous stack overflows in parser
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1221 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-01-03 17:06:05 +00:00
vsc
ef6bbb1273
some extra bug fixes for trail overflows: some cannot be recovered that easily,
...
some can.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1219 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-12-28 22:20:37 +00:00
vsc
bd965693e4
A few extra fixes for saved states.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1186 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-23 21:16:21 +00:00
vsc
c083c838bb
First step to actually handling scanner overflows the right way
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1185 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-22 22:28:06 +00:00
vsc
8d2cb067ec
fix situation where we might assume nonextsing double initialisation of C predicates (use
...
Hidden Pred Flag).
$host_type was double initialised.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1177 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-11-18 22:32:40 +00:00
vsc
2dfdca263d
Use Doug Lea's malloc as an alternative to YAP's standard malloc
...
don't use TR directly in scanner/parser, this avoids trouble with ^C while
consulting large files.
pass gcc -mno-cygwin to library compilation in cygwin environment (cygwin should
compile out of the box now).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1168 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-10-28 20:12:23 +00:00