ocaml/runtime
Stephen Dolan 18edce3b5f Remove use of Obj.truncate from toplevel.
When running a script with "ocaml foo.ml", the toplevel needs to
run foo.ml with a different Sys.argv than the initial value, since
foo.ml must not see the initial "ocaml" argument.

Previously, this was done with Obj.truncate to shorten the Sys.argv
array. This patch changes it by introducing a primitive %sys_argv.
Uses of this primitive expand to a call to a new C primitive, which
returns the argv array (and can be modified by the toplevel).
2019-04-01 14:14:00 +01:00
..
caml Remove some unused configure tests. (#8533) 2019-03-21 17:35:59 +01:00
.depend Improve the packing mechanism used to build Dynlink (#2268) 2019-03-19 10:26:35 +00:00
Makefile Remove gprof support (#2314) 2019-03-16 19:56:53 +01:00
afl.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
alloc.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
amd64.S Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
amd64nt.asm Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
arm.S Remove gprof support (#2314) 2019-03-16 19:56:53 +01:00
arm64.S Remove gprof support (#2314) 2019-03-16 19:56:53 +01:00
array.c Fix caml_make_float_vect (#2183) 2018-12-28 14:14:32 +01:00
backtrace.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
backtrace_byt.c Update issue numbers in comments after Mantis -> Github migration. (#8505) 2019-03-18 09:42:23 +00:00
backtrace_nat.c Remove vestigial support for stacks that grow upward (#1880) 2018-07-05 09:58:27 +01:00
bigarray.c Add caml_alloc_custom_mem (#1738) 2018-11-06 13:42:48 +01:00
callback.c Merge pull request #2293 from stedolan/named-value-const 2019-03-18 09:45:02 +00:00
clambda_checks.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
compact.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
compare.c Consolidate NO_NAKED_POINTER checks 2018-10-02 08:32:39 -07:00
custom.c Add caml_alloc_custom_mem (#1738) 2018-11-06 13:42:48 +01:00
debugger.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
dune Provide a way to build the bytecode compiler using Dune (#2093) 2018-10-10 16:16:00 +01:00
dynlink.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
dynlink_nat.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
extern.c Constify "identifier" in struct custom_operations (#2240) 2019-02-28 16:32:55 +01:00
fail_byt.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
fail_nat.c Make caml_named_value return a const value*. 2019-03-12 12:07:04 +00:00
finalise.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
fix_code.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
floats.c Optimized 3-way comparisons for int and float (#2250) 2019-03-23 15:51:59 +01:00
freelist.c MPR#7815: major GC crash with first-fit policy (#1896) 2018-07-19 17:52:16 +02:00
gc_ctrl.c Add caml_alloc_custom_mem (#1738) 2018-11-06 13:42:48 +01:00
gen_primitives.sh fix PR#2146 (#2149) 2018-11-16 11:31:26 +01:00
globroots.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
hash.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
i386.S Remove gprof support (#2314) 2019-03-16 19:56:53 +01:00
i386nt.asm Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
instrtrace.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
intern.c Make caml_named_value return a const value*. 2019-03-12 12:07:04 +00:00
interp.c Fixing typos in various files (#2246) 2019-02-13 14:04:56 +01:00
ints.c Optimized 3-way comparisons for int and float (#2250) 2019-03-23 15:51:59 +01:00
io.c Add caml_alloc_custom_mem (#1738) 2018-11-06 13:42:48 +01:00
lexing.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
main.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
major_gc.c Fixing typos in various files (#2246) 2019-02-13 14:04:56 +01:00
md5.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
memory.c Fixing typos in various files (#2246) 2019-02-13 14:04:56 +01:00
meta.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
minor_gc.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
misc.c MPR#7814: fix non-prefixed symbol names in debug and instrumented runtimes (#1900) 2018-07-13 16:06:36 +02:00
obj.c Update issue numbers in comments after Mantis -> Github migration. (#8505) 2019-03-18 09:42:23 +00:00
parsing.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
power.S Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
printexc.c Make caml_named_value return a const value*. 2019-03-12 12:07:04 +00:00
roots_byt.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
roots_nat.c Remove vestigial support for stacks that grow upward (#1880) 2018-07-05 09:58:27 +01:00
s390x.S Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
signals.c Fix Thread.sigmask, take 2 (#2211) 2019-03-01 14:14:29 +01:00
signals_byt.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
signals_nat.c Fix Thread.sigmask, take 2 (#2211) 2019-03-01 14:14:29 +01:00
signals_osdep.h Add FreeBSD/aarch64 support 2019-03-22 15:35:43 +03:00
spacetime_byt.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
spacetime_nat.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
spacetime_snapshot.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
stacks.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
startup_aux.c Make caml_named_value return a const value*. 2019-03-12 12:07:04 +00:00
startup_byt.c Add caml_alloc_custom_mem (#1738) 2018-11-06 13:42:48 +01:00
startup_nat.c Add caml_alloc_custom_mem (#1738) 2018-11-06 13:42:48 +01:00
str.c Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
sys.c Remove use of Obj.truncate from toplevel. 2019-04-01 14:14:00 +01:00
unix.c Remove the dl_needs_underscore feature (#2115) 2018-10-25 15:12:22 +02:00
weak.c update comment and compress overlong line 2018-11-08 16:16:48 +01:00
win32.c Fix windows ANSI locale: use CP_ACP instead of CP_THREAD_ACP (#2062) 2018-10-03 14:19:07 +02:00