Xavier Leroy
3fd8ecd355
Type error in debug builds.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13727 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-01 14:55:18 +00:00
Xavier Leroy
abb832f430
PR#5986 continued: check string and array lengths if Compat_32 requested.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13724 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-01 08:12:21 +00:00
Xavier Leroy
1b72ae5896
More efficient implementation of caml_modify().
...
Performance improvement in caml_initialize().
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13723 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-01 07:43:45 +00:00
Damien Doligez
c3bf54a7b6
merge changes from version/4.00 from 4.00.1 to r13697
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13699 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-22 12:56:54 +00:00
Jérémie Dimino
5de2108817
PR#5982: save and restore the value of errno in caml_leave_blocking_section
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13668 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-14 15:48:50 +00:00
Jérémie Dimino
d69bd84bb3
PR#5982: save and restore the value of errno in signal handlers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13667 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-14 15:37:48 +00:00
Damien Doligez
5d3f0d8b5c
Under BSD, swap32 is a macro defined in some system header, so don't use
...
it as a function name.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13563 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-18 13:59:50 +00:00
Damien Doligez
012b6a8f1a
Large integer constants need to be suffixed by ULL to work on 32-bit machines
...
that support "long long".
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13559 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-18 13:52:32 +00:00
Xavier Leroy
e29c9d2956
PR#5986: added flag Marshal.Compat_32 and ocamlc option -compat-32.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13554 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-18 11:58:59 +00:00
Damien Doligez
d568e00263
undo commit 13312 to keep compatibility with BSDmake
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13456 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-28 16:10:24 +00:00
Damien Doligez
af0796ea30
fix C compiler warnings and bug introduced by commit 13436
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13437 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-22 18:36:22 +00:00
Damien Doligez
8d921d62a3
fix whitespace and over-long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13436 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-22 18:22:51 +00:00
Gabriel Scherer
725da3dcc9
user-exposed abstract type for raw backtraces in Printexc.ml (original patch from Jacques-Henri Jourdan)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13394 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-11 19:04:12 +00:00
Damien Doligez
c63f9e0957
fix a few problems with whitespace and over-long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-09 22:38:52 +00:00
Damien Doligez
8b480cb9e2
fix a few of the warnings given by newer versions of gcc
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13320 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-02-26 12:47:13 +00:00
Wojciech Meyer
dc9834c4a4
misc: replace stat_(alloc|free|resize) occurences with caml_stat_(...).
...
byterun/compatibility.h defines:
#define stat_alloc caml_stat_alloc
#define stat_free caml_stat_free
#define stat_resize caml_stat_resize
Having the "caml_" prefix seems cleaner to me, it also avoids some
issues for cross-compilation but I don't remember well which ones.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13314 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-02-25 03:01:31 +00:00
Wojciech Meyer
fb17e50db5
byterun/win32.c: use < > to #include flexdll.h instead of "".
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13313 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-02-25 03:01:28 +00:00
Wojciech Meyer
1b9b819f39
byterun/Makefile: use $(MKLIB) instead of ar + $(RANLIB).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13312 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-02-25 03:01:27 +00:00
Alain Frisch
ba00d09386
Revert bad commit.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13268 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-23 08:41:02 +00:00
Alain Frisch
20a4b99758
#5902 : adapt standard ppx driver to support extra arguments.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13267 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-23 08:37:01 +00:00
Alain Frisch
45936b5fa5
Fix #4887 (input_char after close_in crashes ocaml, msvc runtime). Patch by Christoph Bauer.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13257 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-17 09:04:53 +00:00
Xavier Clerc
2885577f83
PR#5793: integer marshalling is inconsistent between architectures
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13241 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-16 08:35:09 +00:00
Damien Doligez
011b61118d
PR#5712: (6) document OCAMLRUNPARAM flag R
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13199 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-01-03 15:23:40 +00:00
Benedikt Meurer
b04d8284f0
Fix several C compiler warnings.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13171 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-12-29 10:41:08 +00:00
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