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
vsc
1781ff9420
whole lot of fixes:
...
- memory leak in indexing
- memory management in WIN32 now supports holes
- extend Yap interface, more support for SWI-Interface
- new predicate mktime in system
- buffer console I/O in WIN32
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1113 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-08-11 16:14:55 +00:00
vsc
3e468eea4e
fix \x88
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@973 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-09 16:46:03 +00:00
vsc
9b84cdfe5d
improved support for threads and code area allocation using malloc
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@965 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-02-05 16:57:02 +00:00
vsc
2db3829b82
bug in EOF processing when doing read.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@885 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-10-06 14:16:23 +00:00
vsc
ca2da577af
string parsing should stop at finding an EOF
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@796 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-03-13 18:30:33 +00:00
vsc
51ea20683f
fix setof to use catch instead of trying to do its own thing;
...
fix unnecessary white lines when outputting solutions.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@788 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-24 11:01:01 +00:00
vsc
1f914e7746
fix GetCurInpPos to use the stream we are scanning, not current input.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@775 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-02-14 10:56:56 +00:00
vsc
f5dad3ac1f
don't try to do module expansion if module borders are not crossed.
...
expand on-line depth_call and once.
improve write_x_loc
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@752 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-30 16:27:45 +00:00
vsc
1369dfa410
new meta-call scheme.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@751 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-29 14:47:17 +00:00
stasinos
64fbfbf476
The '\e' character constant is a GCC extension. Use '\x1B' instead'.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@747 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-22 17:23:18 +00:00
vsc
499b3c6827
more fixes for \\n
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@743 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-20 15:13:21 +00:00
vsc
6f8b90b131
fix \nl in strings.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@740 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-13 13:13:54 +00:00
vsc
136af18cb0
new scanner.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@736 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2003-01-08 16:45:35 +00:00
vsc
bf37b29b4b
better handling for scanning errors;
...
make Yap_error_output a global variable.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@693 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-19 17:10:45 +00:00
vsc
d7f80ea1ad
Stasinos noticed that _YAP_ breaks C standard: use Yap_ instead.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@691 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-18 18:18:05 +00:00
vsc
7b2c4dc6ff
all global symbols should now start with _YAP
...
global functions should not be called from within file (bug in
binutils/WIN32).
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@675 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-11-11 17:38:10 +00:00
vsc
483170acc5
allow compilation on WIN32 platforms.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@577 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-08-28 14:02:35 +00:00
vsc
5cc8ea1d52
hide_predicate
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@571 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-08-14 16:00:54 +00:00
vsc
b48f1264b9
fix report on initial and token line for parser.
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@540 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-17 15:28:01 +00:00
vsc
9809cca4d5
fix \newline in ISO mode (ROberto Bagnara).
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@534 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-06-14 22:04:40 +00:00
vsc
0f471f8810
I/O fixes: get_quoted would go through EOF, check if answer replied EOF
...
when asking for more solutions, readline in stream == 0 not 2.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@491 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-05-24 05:14:46 +00:00