Alain Frisch
ff4e0a81f8
#5774 : fix MSVC port.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13141 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-19 16:22:30 +00:00
Alain Frisch
e174901c93
#5744 : remove other primitives.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13136 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-17 17:15:04 +00:00
Alain Frisch
82a5220524
This should not have been committed.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13135 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-17 16:49:30 +00:00
Alain Frisch
9c86462e3d
#5774 : caml_int64_direct_bswap should not be a primitive.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13134 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-17 16:48:52 +00:00
Alain Frisch
7709574b9a
Sort the primitives file and remove duplicates.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13133 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-17 16:07:05 +00:00
Damien Doligez
19e086795e
segfault in Array.append in rare case
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13113 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-06 15:39:30 +00:00
Fabrice Le Fessant
89bdc10350
PR#5774: Add bswap primitives for amd64
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13106 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-11-29 09:55:00 +00:00
Fabrice Le Fessant
ec7ac9cb3d
PR#5771: Add primitives for reading 2, 4, 8 bytes in strings and bigarrays
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13087 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-11-09 16:15:29 +00:00
Damien Doligez
def31744f9
remove all $Id keywords
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Xavier Leroy
a731103898
PR#5772: problem with marshaling of mutually-recursive functions
...
(culled from version/4.00, commit 12991)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12992 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-05 16:04:13 +00:00
Damien Doligez
526d44647b
PR#5757: GC compaction bug (crash)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12912 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-09-10 10:25:18 +00:00
Wojciech Meyer
eabfccd2a9
"PR#5597: add instruction trace option 't' to OCAMLRUNPARAM
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12904 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-09-02 02:37:17 +00:00
Damien Doligez
997a678d5e
clean up TABs and whitespace
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12799 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-30 18:04:46 +00:00
Damien Doligez
0c3a7de507
merge changes from 4.00 branching to 4.00.0 (part 1)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12784 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-26 19:21:54 +00:00
Fabrice Le Fessant
808d083b9f
Revert commit r12756 containing unwanted changes
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12757 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-22 15:15:55 +00:00
Fabrice Le Fessant
5e74e6f0cc
Fix PR#5695
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12756 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-22 15:12:43 +00:00
Alain Frisch
95107f7bae
#5687 : Fix dynlink when used from output-obj'ed main bytecode program.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12714 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-16 10:36:00 +00:00
Damien Doligez
9c3b2b4784
PR#5279: executable name is not initialized properly in caml_startup_code
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12688 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-10 12:58:12 +00:00
Gabriel Scherer
9c275a2e7a
PR#5312: remove the Windows @responsefile feature, that conflicted
...
with '-w @...' command-line warning specifications [breaking change]
This change has relatively wide consequences as it modifies the windows
OCaml runtime: when the runtime computed the argument vector "argv"
passed to the program, it automatically expanded arguments of the form
@foo into the content of the filename "foo" (parsed as a sequence of
command-line arguments). This means that this "feature" was
automatically enabled for all user programs written in OCaml and
linking to the usual runtime.
This conflicted with the more recent feature of the OCaml *compiler*
(which is affected, as an OCaml program), that allows to pass warning
specifications of the form "-w @...", for example -w @ae. On windows,
it would try to replace it by the content of the file "ae", leading to
an error.
Given the warning specifications are widely used in OCaml programs
(causing silly Windows portability problems), and the @reponsefile is
anecdotical at best (at poll [1] on the Caml-list revealed no user
using this feature), it was decided to remove @responsefile
altogether.
[1] see mailing-list thread "[community poll for PR#5312] Do some
OCaml Windows users still use the @responsefile feature?"
This change affects all OCaml programs compiled under Windows. Users
previously relying on the @responsefile feature should now explicitely
expand Sys.argv themselves; use Arg.parse_argv to rerun Arg
command-line handlers on user-provided string arrays.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12685 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-10 11:33:00 +00:00
Damien Doligez
d04453c5de
PR#5597: register names for instrtrace primitives in embedded bytecode
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12679 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-09 15:38:19 +00:00
Xavier Leroy
1c7f208fbb
PR#5671: initialization of compare_ext field in caml_final_custom_operations()
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12659 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-06 16:45:33 +00:00
Fabrice Le Fessant
b8238a8b61
PR#5662 : typo in md5.c when clearing sensitive data in context
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12642 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-25 15:59:04 +00:00
Fabrice Le Fessant
8055158a17
Fix ENOMEM error on Windows when reading from terminal
...
On Windows, an error ENOMEM is returned when reading more than ~ 24 kB a
file descriptor attached to the terminal. This patch fixes this problem by
retrying to read a smaller amount of data (16kB), only on Windows.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12640 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-25 12:00:44 +00:00
Alain Frisch
0e9c989e17
Cleanup: caml_code_md5 is no longer used.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12639 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-25 09:21:58 +00:00
Damien Doligez
fe137eedb5
PR#5233: finaliser on weak array gives dangling pointers (crash)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12627 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-21 14:30:11 +00:00
Damien Doligez
3b084cb4ad
PR#5389 (followup): update caml_stat_heap_chunks
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12525 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-31 12:18:11 +00:00
Xavier Leroy
4b9cbab50a
PR#5610: new unmarshaler didn't freshen object IDs.
...
Assorted cleanups and additional comments in byterun/intern.c.
More tests in lib/marshal.
Updated Changes file.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12442 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-08 13:49:35 +00:00
Pierre Weis
24653196b4
Reverting commit 12407
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12413 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-02 11:00:28 +00:00
Pierre Weis
2b94ebecf8
Additional documentation for format strings.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12407 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-27 09:56:05 +00:00
Wojciech Meyer
c1cb8aa6fc
PR#5318: Unroll recursion in un-marshaller to allow un-marshaling values of arbitral depth. Per advice of Xavier Leroy used defunctionalized continuation trick
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12390 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-22 23:37:41 +00:00
Damien Doligez
00f949df97
remove leftover debugging message
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12374 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-18 11:49:28 +00:00
Damien Doligez
b510b67cb5
PR#5389: compaction sometimes leaves a very large heap
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12365 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-17 08:21:52 +00:00
Damien Doligez
cf1071e8ca
PR#5501: increase IO_BUFFER_SIZE to 64KiB
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12332 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-10 14:09:21 +00:00
Xavier Leroy
ce1e74f0bd
PR#5215 continued: as unique ident for dynlinked bytecode units, use MD5 of .cmo/.cma file combined with name of unit within the .cma. (Push of commit 12253.)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12278 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-26 17:44:47 +00:00
Xavier Leroy
498b864c14
One missing call to free_extern_output. Added a couple of comments.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12271 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-26 08:26:44 +00:00
Xavier Leroy
0e4baac4cc
Install new header <caml/hash.h>
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12266 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-24 08:56:08 +00:00
Wojciech Meyer
3eee9d124b
PR#5318: Proper finalization of stack and replay the trail after stack overflow
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12250 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-21 00:03:35 +00:00
Wojciech Meyer
e5201eb76c
PR#5318: Reverting last un-marshaler changes, to rework the control flow of mainloop and provide better solution for eliminating recursion
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12248 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-19 22:48:27 +00:00
Wojciech Meyer
f66308e569
PR#5318: Non-recursive version of extern_rec and intern_rec, to allow marshaling and un-marshaling of deeper data structures
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12247 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-18 02:03:30 +00:00
Xavier Leroy
44b6164bb0
Improve self-initialization of the Random module, using /dev/urandom
...
when available. The changes in byterun/win32.c are untested.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12244 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-14 16:12:09 +00:00
Xavier Leroy
4e5eb94ed9
PR#5215: Marshalling of closures now supported if the closures come from dynamically-loaded code.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12229 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-13 14:50:41 +00:00
Wojciech Meyer
ae0d0f9adb
PR#5532: Print full path in error message. Quote filename
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12215 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-10 01:46:37 +00:00
Damien Doligez
6c24f4f90b
merge version 3.12 from 3.12.1 to r12205
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12210 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-08 19:52:03 +00:00
Damien Doligez
74694a0b04
PR#5518: segfault with lazy empty array
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12194 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-06 19:17:29 +00:00
Wojciech Meyer
5899af063c
PR#5504: Fix. Patch proposed by Stephane Glondu, thanks.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12170 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-19 17:30:02 +00:00
Damien Doligez
e7f5b858c2
More renaming to OCaml
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12149 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 16:15:24 +00:00
Damien Doligez
ff00570de4
fix whitespace
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12081 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-26 14:13:51 +00:00
Damien Doligez
2258a237af
fix whitespace
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12072 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-23 15:09:07 +00:00
Alain Frisch
55688836f4
PR#4688: (Windows) special floating-point values aren't converted to strings correctly.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12030 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-16 10:23:51 +00:00
Xavier Leroy
288ebd8cbc
Reverting commit 11996
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12001 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-08 08:31:47 +00:00