Vitor Santos Costa
1740175e5c
mega-call, init stuff
2016-07-30 23:10:39 -05:00
Vitor Santos Costa
83a1269553
change bootstrap sequence to support -B and to allow booting from pl files
2016-05-10 08:33:44 +01:00
Vitor Santos Costa
f966a5b912
Fixes for processing write to buffer: should b more robust, but we still may have memory leaks
2016-04-22 18:19:58 +01:00
Vitor Santos Costa
49699f52e9
headers & booting
2016-04-18 16:40:17 +01:00
vscosta
c1b8d140db
av
2016-04-17 17:09:10 -07:00
Vitor Santos Costa
c0c002134b
Python support
2016-04-12 16:05:20 +01:00
Vitor Santos Costa
65f1cb9741
win64 support: encodings
2016-04-10 06:21:17 -07:00
vscosta
429c8155c9
check for non-heap memory
2016-04-08 01:11:33 -07:00
vscosta
40765a6afb
booting from prolog plus indenting
2016-04-05 02:20:16 +01:00
Vítor Santos Costa
1be002558c
call_cleanup in C plus indenting
2016-03-29 01:55:12 +01:00
Vítor Santos Costa
2192f73b11
make it compile under MSN vc. Unfortunately it has a weird crash at boot :(
...
- Lots of indenting changes
- VC++ is strict with variadic macros
- VC++ does not accept unistd.h
- new interface for walltime
- VC++ does not seem to have support for integer overflow.
- VC++ defines YENV_REG?
- no access flags, x permissions ignored.
- new FindGMP supporting MPIR
- make horus optional (c++ is hard).
2016-02-28 19:32:55 +00:00
Vítor Santos Costa
712d79c7bb
keep on fixing absolute_name
2016-02-22 12:59:49 +00:00
Vítor Santos Costa
f7d23f9deb
Simplify Input/Output
...
get rid of string I/O, did not add much
getc is never actually used by Prolog
try to use system I/O, even if it may be slower, at least for now.
extend IO C-interface to allow reading clauses
2016-02-21 19:06:25 +00:00
Vítor Santos Costa
26013e2fb9
fix regress in style_check caused by bad argument to add clause
2016-02-21 11:30:13 +00:00
Vítor Santos Costa
52a2d00d0c
init stuff.
2016-02-13 02:53:46 +00:00
V'itor Santos Costa
74b2b5561d
- add debugging code to memory allocation
...
= atom to number: cleanup function name as this is more than just supporting SWI
- SrcMask only applies to rules.
- add auxiliary type/error function
- fix typos
- fix enumeration mode in current_flag
- get rid of TrueName routines, use AbsoluteFileName instead.
- detail synatx error source
2016-02-11 06:03:33 -08:00
Vítor Santos Costa
ddabfe45b8
WIN32
...
cleanups
get rid of old log
2016-01-31 10:13:14 +00:00
Vítor Santos Costa
4e2649c743
thread support
2016-01-03 01:25:31 +00:00
Vítor Santos Costa
15404b3835
small
...
- do not call goal expansion on meta-calls (that is done by undef).
- docs updates
- fix init code
2015-12-15 09:28:43 +00:00
Vítor Santos Costa
e51de5f83c
remove support for confusing manipulation of $VAR
2015-12-15 08:48:53 +00:00
Vítor Santos Costa
edb6189512
allow the option to have priorities above 1200
2015-12-15 08:38:56 +00:00
Vitor Santos Costa
cddb8191c8
config changes
2015-11-09 18:22:43 +00:00
Vítor Santos Costa
f8eb163a1d
string to but and improve utf8
2015-11-05 16:59:30 +00:00
Vítor Santos Costa
a26dbe0dfc
init spelling and remove debugging
2015-11-05 16:38:18 +00:00
Vítor Santos Costa
8cd22a0c18
strlcat
2015-10-22 00:45:47 +01:00
Vítor Santos Costa
d5c21324a4
small typos
2015-10-09 10:27:48 +01:00
Vítor Santos Costa
e8ed525e3b
we usually are not sure how best to pass encoding: pass by ref
2015-10-08 02:12:06 +01:00
Vítor Santos Costa
4ed6e4fae9
indent
2015-10-05 10:27:25 +01:00
Vítor Santos Costa
04a2c10ebe
support loop_stream while at initial boot (doesn't really do work so far)
2015-09-29 23:06:49 +01:00
Vítor Santos Costa
b871f6676e
fix error handling
2015-09-25 10:57:26 +01:00
Vítor Santos Costa
4336b2ba88
Avoid complaining from strlen
...
`
2015-09-21 17:05:36 -05:00
Vítor Santos Costa
b164f53191
fix regression tests
2015-08-07 16:57:53 -05:00
Vítor Santos Costa
8dec7f6478
initialize YAAM regs earl on.
2015-07-22 19:01:15 -05:00
Vítor Santos Costa
a97754623f
more bootstrap stuff
2015-07-06 11:56:16 +01:00
Vítor Santos Costa
f5b50a4179
fix locks
2015-06-19 10:10:02 +01:00
Vítor Santos Costa
e2fc835cfd
less usage of slots
2015-06-19 00:45:54 +01:00
Vítor Santos Costa
3e14ec4cb6
yap flag no more
2015-06-19 00:44:49 +01:00
Vítor Santos Costa
2f96a24a1f
SWI not default
2015-06-19 00:42:40 +01:00
Vítor Santos Costa
315a882e8f
remove swi deps
2015-06-18 08:09:31 +01:00
Vitor Santos Costa
800289f7bb
weird module stuff
2015-04-15 11:45:49 +01:00
Vítor Santos Costa
bf8beba466
more Android fixes
...
merge trueFileName so that we don;t redo code
support rand48 and srand48
drop support for odbc and prolite, too much work.
2015-04-15 11:21:15 +01:00
Vítor Santos Costa
d1a230eb56
Cosmetic changes
2015-04-13 13:15:30 +01:00
Vitor Santos Costa
63416fdc48
cut_c simplifications
2015-02-14 11:35:45 +00:00
Vítor Santos Costa
ab41d5411e
RebootSlots when we start a new execution.
2015-02-10 09:19:05 +00:00
Vitor Santos Costa
5a7602dfff
fix slot at init
2015-02-09 10:20:19 +00:00
Vítor Santos Costa
5a668febd9
new slot implementation
2015-02-03 02:36:51 +00:00
Vitor Santos Costa
36e4cbf98b
move handles to a separate handle stack.
2015-01-30 07:25:34 +00:00
Vítor Santos Costa
bc1e70758e
cmake and jit
2015-01-26 04:02:46 +00:00
Vítor Santos Costa
bece9d05d8
JIT
2015-01-20 03:00:42 +00:00
Vitor Santos Costa
ce84e60d08
cosmetic
2015-01-18 01:32:13 +00:00
Vitor Santos Costa
e40c248c16
Merge branch 'master' of /home/vsc/yap-6.3
...
Conflicts:
C/cdmgr.c
pl/preds.yap
2015-01-17 03:06:59 -08:00
Vitor Santos Costa
9dcfb6a745
doc and use bool
2015-01-17 02:48:48 -08:00
Vitor Santos Costa
32ce8318a1
type stuff
2015-01-15 23:08:01 -08:00
Vitor Santos Costa
ff977fbad8
cmake support: first cut from David Vaz work.i
2014-12-04 07:59:30 +00:00
Vitor Santos Costa
addb8cbce3
ORP support
2014-11-14 16:51:42 +00:00
Vítor Santos Costa
5cfe70420f
fix reset in qload
2014-09-22 18:10:51 +01:00
Vítor Santos Costa
3009987985
update docs
2014-09-11 14:06:57 -05:00
Vítor Santos Costa
3c0a65218b
use stdbool
2014-09-09 23:50:43 -05:00
Vítor Santos Costa
99713d81a6
replace locks by critical sections in interrupt handling
2014-09-02 14:19:23 -05:00
Vítor Santos Costa
4d7b270ce4
fix bad handling of choice-points in backtrackable predicates (SWI code
...
does not clean frames on exit )
2014-07-15 18:40:15 -05:00
Vítor Santos Costa
5b19ccf6a8
swig fixes for Android compatibility
2014-06-22 17:35:05 +01:00
Vítor Santos Costa
8da6fb70e1
handle_t type name causes conflict with WIN32, replace by yhandle_t
2014-06-16 14:41:54 +01:00
Vítor Santos Costa
daae1df152
g++ coplaints (llvm)
2014-06-12 01:25:50 +01:00
Vítor Santos Costa
6de73e6469
introudce handle_t and arity_t
...
Android: /assets and debugging
2014-06-11 19:35:45 +01:00
Vítor Santos Costa
71b40e0438
changes to support eclipse compat
...
support of Android assets as /assets files.
2014-06-04 22:08:37 +01:00
Vítor Santos Costa
a76b6d23dc
Fix: eclipse >u. into >y_u.
2014-05-30 01:06:09 +01:00
Vítor Santos Costa
fa75599e7f
docs
2014-05-28 00:12:36 +01:00
Vítor Santos Costa
0ebea4ec26
synch interface with implementation.
2014-05-25 20:48:06 +01:00
Vitor Santos Costa
e0d0543e52
fix removeSlots and more documnetation.
2014-05-14 17:59:08 +01:00
Vitor Santos Costa
d58dcdc3e6
portability.
2014-04-29 18:17:23 +01:00
Vitor Santos Costa
aba5f3d88b
handle locking more carefully (especially protect gc and stack shifting).
2014-04-23 22:41:12 +01:00
Vitor Santos Costa
d0adb0b910
fix slot handling
2014-03-11 15:33:38 +00:00
Vitor Santos Costa
2c89aadb11
WIN64 support (sill needs improvement)
2014-03-06 02:09:48 +00:00
David Vaz
3cad9c37b1
removed unnecessary cut_c macros (always on)
2014-02-11 07:15:39 -08:00
Vitor Santos Costa
f26cb133b9
fix left-over slots
2014-02-09 10:44:43 +00:00
Vitor Santos Costa
d648375412
make MYDDAS into its own module.
2014-01-24 19:59:42 +00:00
Vitor Santos Costa
6b2e1973ab
Windows fixes, mainly H -> HB
2014-01-19 21:15:05 +00:00
Vítor Santos Costa
e1201fc468
Merge branch 'master' of ssh://git.code.sf.net/p/yap/yap-6.3
2014-01-17 09:39:49 +00:00
Vítor Santos Costa
ccccf71ae1
support for tabling of bignums and strings
2014-01-17 09:39:29 +00:00
Vitor Santos Costa
bcc1757989
fixes to message handling
2014-01-07 01:10:48 +00:00
Vitor Santos Costa
493b591b66
slots again: make sure they're bound after resetting the stack and when calling InitForeign
2013-12-18 19:34:15 +00:00
João Santos
2e3f99d89a
fix YAPOR_THREADS (prof. Vitor Costa)
2013-12-17 15:57:24 +00:00
Vítor Santos Costa
d73c88f307
handle running Prolog without top-level
2013-12-15 08:34:52 +00:00
Vítor Santos Costa
b90685fe59
fix typo
2013-12-14 11:05:37 +00:00
Vítor Santos Costa
e768a7e7be
small improvements to debugger, prolog mode and meta-call (*->)
2013-12-10 22:58:02 +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
99469b9b1a
use pl-shared and synch with SWI-Prolog.h
2013-11-25 11:22:07 +01:00
Vitor Santos Costa
f6f183c0f6
remove some more duplicated code
2013-11-22 15:18:03 +00:00
Vitor Santos Costa
23df104638
restore slots on exit
2013-11-21 21:54:40 +00:00
Vitor Santos Costa
48bec6b247
fix broken, complicated code for slots
2013-11-20 22:20:51 +00:00
Vítor Santos Costa
84bd55df0d
continue cleanup
2013-11-16 00:27:02 +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
70d864b13d
fix limit on atoms to ints
2013-10-08 13:04:30 +01:00
Vitor Santos Costa
f3cefdf895
yapor stuff
2013-10-04 18:18:57 +01:00
Vitor Santos Costa
43163a190f
Atom Translations and CUDA stub
2013-10-04 13:22:00 +01:00
Vitor Santos Costa
bf77381744
alloc K * Size
2013-10-01 16:42:12 +01:00
Vítor Santos Costa
6966d23195
fix P details when creating execution environment: we should save the old one
2013-09-08 22:24:09 +01:00
Vitor Santos Costa
743c9c69fb
get rid of PROTO
2013-04-25 17:15:04 -05:00
Vitor Santos Costa
f7980f941b
avoid unnecessary CACHE_REGS in inlines.
2013-03-26 16:10:03 -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
504ad22f92
more on slot management
2013-03-10 16:37:27 +00:00
Vítor Santos Costa
046cb5f8d6
debugging
2013-02-08 10:36:45 -06:00
Vitor Santos Costa
b34be4360b
do not reset cintext before cut
2013-02-06 00:16:30 +00:00
Vitor Santos Costa
33da88be5b
fix SWI exec issues and try to clean up the code a bit
2013-02-05 14:22:17 +00:00
Vítor Santos Costa
0e89a9c2ff
fix init order to have terms when setting up Prolog flags
2013-01-21 09:36:08 +00:00
Vítor Santos Costa
014a0ec5bc
CurSlot maintenance
2013-01-19 22:13:43 +00:00
Vitor Santos Costa
85acf5c4ea
slots and recover ENV in failure
2013-01-18 14:30:35 +00:00
Vítor Santos Costa
798afc81c4
fix argv[0] discovery.
2013-01-13 17:55:13 +00:00
Vítor Santos Costa
480e9aea69
fix bad ints (obs from Mei).
2013-01-13 11:48:31 +00:00
Vitor Santos Costa
06cf326885
avoi calls to inityaamregs.
2012-12-17 16:27:15 +00:00
Vitor Santos Costa
9107af2e3d
improve thread startup
2012-12-13 18:12:50 +00:00
Vitor Santos Costa
eb63cf748c
small sequential fixes
2012-12-11 22:15:02 +00:00
Vitor Santos Costa
e41f821d67
improve multi-threading support from C-interface. Still not quite there.
2012-12-11 22:07:10 +00:00
Vitor Santos Costa
b34c8b1b2c
try to improve slot allocation.
2012-12-10 12:14:24 +00:00
Vitor Santos Costa
a4acb6a806
try to make sure we always have slots
2012-10-08 18:25:42 +01:00
Vitor Santos Costa
710be1a5e8
add slots after new stack extension.
2012-09-26 22:08:17 +01:00
Vítor Santos Costa
d5bf100b71
make full init even before entering Prolog top-level
2012-09-21 11:49:59 +01:00
VITOR SANTOS COSTA
89030ce97d
Fix WriteBuffer and add WriteDynamicBuffer
2012-09-18 23:06:26 +01:00
Vítor Santos Costa
8d779f68ea
fix writebuffer interface
2012-09-08 00:12:38 +02:00
Vítor Santos Costa
1fc641b7d1
add module aware versions of pred interface.
2012-07-13 14:57:12 -05:00
Vítor Santos Costa
95a33cd56d
remove error message.
2012-05-22 16:20:56 +01:00
Vitor Santos Costa
9e3d16022a
fix YAP_AttOfVar
...
beautify get atts
2012-05-21 17:24:40 +01:00
Vítor Santos Costa
af7510a67b
fix handling of repeated calls to YAP_Init.
2012-04-12 23:25:04 +01:00
Vítor Santos Costa
27dc66a5f4
Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3
2012-04-11 22:09:15 +01:00
Vítor Santos Costa
c08178a57c
fix thread compilation.
2012-04-11 22:08:02 +01:00
Vítor Santos Costa
7085008193
fix compilation without gmp.
2012-04-05 20:50:27 +01:00
Vítor Santos Costa
edfb13c5e9
allow users to check for out of space conditions explicitly.
2012-03-30 09:49:36 +01:00
Vítor Santos Costa
7b78832aa7
avoid strict float checking when building arrays.w
2012-03-22 21:38:22 +00:00
Vítor Santos Costa
f2782cc274
Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3
2012-03-14 22:11:35 +00:00
Vítor Santos Costa
cc8521c9d5
fix bad handling of singletons with write_canonical.
2012-03-14 22:10:21 +00:00
Vítor Santos Costa
74d7ad2704
extend interface to copy fast lists of integers or floats.
2012-03-14 11:08:28 +00:00
Vítor Santos Costa
36acb5f897
fix profiling support.
2012-03-09 11:46:34 +00:00
Vítor Santos Costa
1531002f26
avoid unnecessrily using slots in Input/Output calls or just because I need a stream. This can lead to hard to
...
catch stack bugs.
2012-02-18 11:01:06 +00:00
Vitor Santos Costa
6403b4793a
small write fixes.
2012-02-14 09:10:07 +00:00
João Santos
21522ce151
CACHE_REGS
2012-02-07 15:18:43 +00:00
Vítor Santos Costa
e6fb330f58
fix warnings.
2012-02-03 20:55:35 +00:00
Vítor Santos Costa
a2c86643b0
ismall fixes to MPI interface.
2012-02-03 16:31:49 +00:00
Vítor Santos Costa
6eea1fe1ea
fixes for export_term and friends.
2012-02-02 23:25:09 +00:00
Vítor Santos Costa
4e6cc28cd3
lam support.
2012-02-02 09:58:05 +00:00
Vítor Santos Costa
8f728962a5
YAP_ExportTerm and YAP_ImportTerm from buffer (first cut).w
2012-02-01 19:26:28 +00:00
Vitor Santos Costa
d3c7800ab4
support PL_skip_list and PL_unify_bool.
2012-01-09 23:29:31 +00:00
Vítor Santos Costa
00b5edd8da
allow copying a chunk of floats to a list in a single operation. Also
...
improve performance of sum out operation on arrays.
2011-12-30 16:04:16 +00:00
Vítor Santos Costa
8c7d0af032
Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3
2011-12-22 11:44:48 +00:00
Vítor Santos Costa
1fde83d278
fix overflows
2011-12-22 11:42:26 +00:00
Vítor Santos Costa
18190a4633
fix types for return absmi and friends.
2011-12-13 23:09:05 +00:00
Vítor Santos Costa
7da303450f
fix while.
2011-11-30 13:02:20 +00:00
Vítor Santos Costa
0409449a23
expand interface to create list from array of terms.
2011-11-18 16:26:11 +00:00
Vítor Santos Costa
64dded4a53
iunnumbervars may be copying terms from outside the stacks, so don't share
...
unless we know we share.
2011-11-04 09:28:33 +00:00
Vítor Santos Costa
9f2b0c7e70
extend C-interface to support b-prolog like stuff
2011-11-03 07:52:52 +09:00