Commit Graph

336 Commits (c1e2080803819d2bc78cc56e87cb85a8d97fe49f)

Author SHA1 Message Date
Damien Doligez 3836d4086a PR#1898: add -nopromptcont option to suppress secondary prompts
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12085 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-27 12:48:15 +00:00
Jacques Garrigue 477b2dd743 propagate path-expansion environment everywhere
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/short-paths@12068 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-23 07:59:45 +00:00
Jacques Garrigue 21301af8c8 shorten paths in signatures and toplevel output
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/short-paths@12066 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-22 05:56:11 +00:00
Alain Frisch a3cc246dec #4830: Add option -v to expunge.ml.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12061 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-20 15:43:29 +00:00
Alain Frisch 4cfd2fc2a6 Reverting bad commit.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12058 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-20 14:23:34 +00:00
Alain Frisch 7fe8c8ce6f Fix #5490.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12057 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-20 14:21:03 +00:00
Alain Frisch c45bcb892d Synchronize with trunk.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/unused_declarations@12034 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-18 08:31:11 +00:00
Damien Doligez 6b4bb576df PR#352: new option to make ocaml read stdin as a script
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11980 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-30 16:28:16 +00:00
Alain Frisch 83d48700ff Replace existing warnings 26, 27, trying to preserve their semantics.
- Warning 26 detects unused variables bound by 'let' or 'as'. In case of a or-pattern,
  a variable is considered to be an "as" variable or not according to the lhs pattern only.

- Warning 27 detects unused variables bound by 'match', 'fun', 'function', and self-variable
  in objects.

- When several values are bound by a given let pattern: if all of them are unused,
  warning 26 is trigerred; if at least one of them is used, the other unused ones
  are reported with warning 27.

This commit also introduces dedicated warnings for unused ancestor variables (objects) and
for-loop indices.




git-svn-id: http://caml.inria.fr/svn/ocaml/branches/unused_declarations@11976 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-29 17:49:58 +00:00
Alain Frisch c1f154ea70 New option to force the compilers to show absolute paths in error messages.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11890 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-20 10:35:43 +00:00
Alain Frisch e915c394e7 Fix ocamlnet.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11889 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-20 10:35:11 +00:00
Alain Frisch 032648c3d4 #5411: close input channel when loading a .cmo file fails in the toplevel.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11315 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-14 11:04:06 +00:00
Alain Frisch 3f23ef49c4 #5411: New #load_rec primitive for the toplevel (finds and loads .cmo files recursively).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11306 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-12-13 17:50:08 +00:00
Jacques Garrigue 6c78f42d36 merge branches/gadts-devel
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11284 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-11-24 09:02:48 +00:00
Pierre Weis 4e63dbfff3 Module Lnenum has vanished!
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11251 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-10-28 21:18:03 +00:00
Jacques Garrigue 156fff1b8a Keep type variable names
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11210 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-09-22 09:05:42 +00:00
Damien Doligez d9eb848d86 PR#5238, PR#5277: Sys_error when getting error location
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11166 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-08-04 14:59:13 +00:00
Jacques Garrigue 9dc661c3bf merge branches/gadts
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11160 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-29 10:32:43 +00:00
Damien Doligez 3b507dd1aa renaming of Objective Caml to OCaml and cleanup of copyright headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Damien Doligez 31b0292413 renaming "Objective Caml" to "OCaml" (first pass)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11015 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-04-26 12:16:50 +00:00
Jacques Le Normand 1680403fb9 clean up
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gadts@10784 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-11-10 06:01:27 +00:00
Jacques Garrigue f368f4e0d5 allow variance in GADTs
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gadts@10763 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-11-08 06:59:46 +00:00
Jacques Le Normand eb71566e57 fixed bug in genprintval
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gadts@10759 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-11-01 08:21:49 +00:00
Jacques Le Normand 304dba8a0f removed Type_variant, fixed bug in GADT exhaustive check
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gadts@10734 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-10-21 04:02:02 +00:00
Jacques Le Normand a1910000e3 fixed bug in syntax extension. Made unification of variants and objects local. Removed personal comments
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gadts@10724 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-10-19 05:24:36 +00:00
Jacques Le Normand 6de25fef2f first commit
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gadts@10679 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-09-13 05:28:30 +00:00
Damien Doligez 3bba52b91c PR#4857: add -vnum option to all executables
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10444 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-20 14:06:29 +00:00
Damien Doligez 50864fb4b3 rename -help-warnings to -warn-help
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10384 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-08 20:11:27 +00:00
Alain Frisch e09a12388f New -help-warnings command-line option.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10369 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-04 18:44:38 +00:00
Damien Doligez 27780d9f8a fixed several build problems
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10298 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-04-22 15:41:16 +00:00
Damien Doligez 83fb41dcf7 unified command-line arguments
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10260 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-04-13 10:44:25 +00:00
Damien Doligez 04b1656222 clean up spaces and tabs
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-01-22 12:48:24 +00:00
Pierre Weis 3ced5196f4 Typo.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9465 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-12-09 09:23:48 +00:00
Pierre Weis 700da01338 Adding the -strict-sequence option.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9464 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-12-09 09:17:12 +00:00
Alain Frisch 1e5b4a4857 Merge first class modules: svn merge -r 9369:9396 $caml/branches/fstclassmod.
Adapt the Changes file. Bump magic numbers. Bootstrap.



git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9397 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-10-26 10:53:16 +00:00
Xavier Leroy 11217e8f70 Added option -no-app-funct to turn off applicative functors
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9316 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-07-15 14:06:37 +00:00
Pierre Weis a548eb3a13 Understanding the notion of standard channel for Format and Scanf.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9166 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-01-25 22:46:15 +00:00
Damien Doligez 1f95b17570 merge changes from 3.10.2merged to 3.11.0
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9153 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-12-03 18:09:09 +00:00
Damien Doligez e9a9bf9613 PR#3114 make all error messages start with a location and "Error: "
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8705 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-12-04 13:38:58 +00:00
Alain Frisch 3958a92c72 Merge the natdynlink branch into HEAD.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8477 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-11-06 15:16:56 +00:00
Pierre Weis 59e0723455 It works: compilers and camlp4 are fully bootstrapped. The ast magic number is not yet changed.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8418 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-10-09 10:29:37 +00:00
Damien Doligez 1dd68ccf50 ajout des annotations pour variables et appels terminaux
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8232 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-05-16 08:21:41 +00:00
Nicolas Pouillard b100c43753 Add many .mllib .mlpack .clib .dlib files
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7825 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-02-07 09:52:28 +00:00
Xavier Leroy b0041ea963 Revised DLL loading: distinguish between loading for execution
(ocamlrun, dynlink, toplevel) and loading for checking the existence
of symbols (ocamlc).  This is needed for Windows with manifests and
not a bad idea for other platforms.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7656 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-09-28 21:36:38 +00:00
Xavier Leroy 09921987cc Deplacement des infos de format des .cmo et .cma dans Cmo_format
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7422 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-05-11 15:50:53 +00:00
Damien Doligez 125ea40d4c fusion 3.09.0 -> 3.09.1
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7307 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-01-04 16:55:50 +00:00
Xavier Leroy 0ba3106399 Retour en arriere sur la simplification des signatures inferees (fix du PR#3545 du 2005-08-02), qui est completement bugge
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7012 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-08-08 09:41:52 +00:00
Xavier Leroy 754bc39c90 Systematiser la simplification des signatures inferees (PR#3545)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7005 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-08-02 09:49:30 +00:00
Jacques Garrigue 877263c14a print private variants
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6912 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-06-13 04:55:53 +00:00
Jacques Garrigue ef396b4e5a merge fixedtypes branch
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6821 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-03-23 03:08:37 +00:00
Damien Doligez df6f81e16c PR#3328 option ocaml -init <fichier>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6758 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-01-28 17:52:58 +00:00
Damien Doligez 444cfd440c changement doc -warn-error
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6722 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-12-01 12:06:29 +00:00
Damien Doligez 1971a6ba83 changements sur les warnings
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6720 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-11-30 18:57:04 +00:00
Jacques Garrigue 0edba97cf6 new warning for black holes
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6703 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-11-29 02:27:25 +00:00
Damien Doligez 39f06c597a PR#3085 ajout option "-version"
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6701 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-11-27 01:04:19 +00:00
Damien Doligez 85cb1262d6 ajout option -noprompt (toplevel)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6653 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-11-02 10:42:58 +00:00
Xavier Leroy 63c1789b5e Fusion des modifs faites sur la branche release jusqu'a la release 3.08.0
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-07-13 12:25:21 +00:00
Xavier Leroy c3fff4348d Erreur dans tree_of_exception, cas untyped (PR#2652)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6400 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-06-13 16:23:35 +00:00
Xavier Leroy 762a006652 Impression des 'rec' et des 'and' dans les signatures inferees (PR#1981,2585)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6386 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-06-12 08:55:49 +00:00
Xavier Leroy 759292a43c Introduction d'un hook pour la lecture des entrees interactives
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6297 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-05-15 09:59:37 +00:00
Xavier Leroy a8d073e85a Probleme dans #untrace_all en cas de fonction redefinie (PR#1936)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6286 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-05-09 09:01:00 +00:00
Basile Starynkevitch 3ec6d09845 using Meta.static_release_bytecode
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6227 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-16 14:43:59 +00:00
Xavier Leroy b972b89ac9 Probleme avec #install_printer Mod.funct (PR#1891)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6117 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-02-15 11:08:06 +00:00
Damien Doligez 776a8d59b7 suppression support MacOS9
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6074 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-16 15:24:03 +00:00
Damien Doligez 331b2d89c3 depollution suite (PR#1914, PR#1956)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6044 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-31 14:20:40 +00:00
Xavier Leroy c757c93fa3 Chercher le .ocamlinit dans $HOME egalement (extension demandee par les porteurs Debian)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5792 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-08-21 13:55:30 +00:00
Damien Doligez 2aa11c7bf8 PR#1782
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5776 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-08-13 15:31:37 +00:00
Xavier Leroy 6778c107fa MAJ doc option -W (PR#1770)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5737 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-25 12:18:25 +00:00
Xavier Leroy 3e4bf9252b Revu representation des declarations de type private
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5643 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-02 09:14:35 +00:00
Xavier Leroy e8e8d33624 Ajout de toplevel_startup_hook (pour Cash)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5636 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-06-30 15:31:06 +00:00
Xavier Leroy 1fa763e0c5 Merge branch with recursive modules
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5602 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-06-19 15:53:53 +00:00
Xavier Leroy 7be202e2d5 Verifier que les modules globaux references par la phrase ont bien ete initialises (PR#1527)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5586 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-05-26 13:47:26 +00:00
Damien Doligez 96f5cf75a6 meilleur parsing de la ligne de commande pour les scripts
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5579 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-05-23 14:44:08 +00:00
Pierre Weis f2709a7576 Better error message for fragile patterns.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5533 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-05-02 12:52:11 +00:00
Pierre Weis fcebde56f9 Addition of the new Fragile_pat warning.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5527 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-05-02 08:48:31 +00:00
Pierre Weis e77055aad9 Complete move from virtual to private for concrete types with private
constructors (or labels).


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5524 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-05-01 22:22:37 +00:00
Xavier Leroy 7abcc8799e Ajout des litteraux de type int32, nativeint, int64
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5510 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-04-25 12:27:31 +00:00
Pierre Weis b5d0102c05 Nouveau format %$. Introduction des types virtuels: step 1 sans inclusion dans Camlp4
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5409 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-02-28 06:59:19 +00:00
Damien Doligez d76fdd5038 locations
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5337 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-12-12 10:49:19 +00:00
Jacques Garrigue dc4b8f041d desunifie en cas d'erreur
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5282 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-21 06:00:57 +00:00
Xavier Leroy b183534841 Refait marcher #trace sur les fonctions mutuellement recursives (PR#1346)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5278 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-18 13:49:44 +00:00
Xavier Leroy 5e152f7945 - Revu en profondeur la verification des CRC d'interfaces.
Cela corrige le PR#1064.
- Les CRC des modules constituant un programme sont stockes dans
  l'executable bytecode, section CRCS.  Revu Dynlink pour utiliser ces
  CRC au lieu d'attendre de l'utilisateur qu'il les fournisse.
  MAJ du debugger en consequence.
- Introduction et utilisation du fichier stdlib/StdlibModules.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5272 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-17 16:42:12 +00:00
Damien Doligez ed3123ee87 changement des locations, premiere tranche
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5224 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-01 17:06:47 +00:00
Xavier Leroy 8662b6797c Exporter initialize_toplevel_env (reclame par Maxence pour son toplevel graphique)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5042 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-07-25 15:45:14 +00:00
Xavier Leroy 63ed4f3f53 Afficher les int32, int64, nativeint avec Oval_stuff plutot que comme des strings (moins surprenant pour l'utilisateur?)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4953 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-26 14:52:17 +00:00
Jacques Garrigue b8118bdb7b add #principal directive
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4940 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-19 06:11:21 +00:00
Jacques Garrigue 707cb4c515 delay some checks for warnings
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4813 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-16 10:18:51 +00:00
Xavier Leroy bb3cefcb70 Minimiser les dependances sur toplevellib.cma dans les toplevels crees par ocamlmktop (evite des conflits avec des modules de l'utilisateur qui ont le meme nom que des modules references par topstart)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4731 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-04-24 08:02:51 +00:00
Jacques Garrigue 0a8236066f vive les methodes polymorphes!
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4694 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-04-18 07:27:47 +00:00
Xavier Leroy bd8c3bbd18 Retour en arriere sur le renommage Lexing.lex_buffer_len -> Lexing.lex_buffer_end, car ca casse Hevea
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4542 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-18 16:16:31 +00:00
Xavier Leroy c6a0e95dc6 Retour de empty_lexbuf car sinon l'affichage des erreurs sous toplevel ne marche pas (PR#1008)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4534 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-15 15:34:32 +00:00
Xavier Leroy 73ce0ac808 Simplifier lors de l'affichage les declarations val et exception redondantes dans les signatures inferees
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4512 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-12 12:35:10 +00:00
Xavier Leroy d0caf4d35a Suppression de Printexc.catch
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4506 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-11 10:39:43 +00:00
Xavier Leroy c785f30b0d Suppression de empty_lexbuf, comportement trop peu naturel
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4505 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-11 10:39:25 +00:00
Damien Doligez 130e3415fd ajout option -nostdlib
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4409 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-14 15:17:11 +00:00
Daniel de Rauglaudre 50161b7513 Regroupement des impressions "outcometree" dans un seul module oprint.ml.
Ajout de hooks de print dans toploop.mli.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4396 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-13 11:09:19 +00:00
Daniel de Rauglaudre 75a9cfe35c La directive #trace ne marchait plus paskeu le test du tag closure était
obsolète.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4370 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-09 06:44:14 +00:00
Jacques Garrigue ef9cd6d7e6 document object file loading
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4366 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-08 10:16:10 +00:00
Jacques Garrigue 128824233b add object loading from command-line
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4363 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-02-08 02:56:04 +00:00
Damien Doligez 9f64519070 bug string_of_float
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4309 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-01-24 17:47:21 +00:00
Damien Doligez 0dbce74fc8 lazy a la Tolmach
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4291 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-01-20 17:39:10 +00:00
Xavier Leroy f5ac05c041 Revu gestion de toplevel_env pour que si on evalue un appel a Topdirs.dir_use, les definitions du fichier charge ne soient pas ignorees
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4149 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 15:02:20 +00:00
Xavier Leroy 07ac45dafa L'execution d'un script n'est pas interactive (PR#630)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4088 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-04 08:56:54 +00:00
Xavier Leroy e79a1b8571 Dans message, Uncaught exception -> exception (plus PC)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4073 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-03 10:15:57 +00:00
Xavier Leroy 343d49401a Revu gestion des DLLs: ne pas les utiliser en mode -custom; dans les .cma et .cmxa, stocker separement les options pour linker statiquement (-cclib) et par chargement dynamique (-dllib).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3949 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-30 09:32:32 +00:00
Xavier Leroy 48485d8d8a Mieux sauter #! au debut des scripts
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3871 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-09 14:56:23 +00:00
Jacques Garrigue dadb2acc94 labels omitted off par defaut
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3799 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-09-27 07:31:29 +00:00
Daniel de Rauglaudre cb729b318e Ajoute repertoire camlp4 dans le load_path du niveau du haut
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3772 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-09-19 13:36:55 +00:00
Daniel de Rauglaudre 91497df2fc Correction bug PR#531
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3764 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-09-15 16:34:59 +00:00
Jacques Garrigue 4bdf28108f avoid problem with dlsym/failwith and keep thread linking info
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3701 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-09-07 05:56:31 +00:00
Xavier Leroy ddd99c7e5d Chargement dynamique de primitives C
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-28 14:47:48 +00:00
Xavier Leroy fec31c40a1 Blinder l'affichage des tres longues chaines (PR#476)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3625 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-08 14:25:39 +00:00
Daniel de Rauglaudre 1480f1d60e -
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3619 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-07 20:04:59 +00:00
Daniel de Rauglaudre a9de661f1a Un peu de nettoyage de code + ajout personnalisation des "phrases" toplevel
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3617 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-07 12:12:33 +00:00
Daniel de Rauglaudre 3ed3b7bdda Ajouté personalisation de l'affichage des items de signature dans le toplevel
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3614 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-06 12:28:50 +00:00
Daniel de Rauglaudre 3b5da7725e Personalisation de l'affichage des valeurs et des types dans le toplevel.
Ajouté module Outcometree et des hooks dans le toplevel: print_out_value et
print_out_type. (j'ai oublié de mettre un message log dans le 1er commit)


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3612 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-04 10:08:19 +00:00
Daniel de Rauglaudre 10078faaa7 -
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3608 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-08-02 08:51:55 +00:00
Xavier Leroy b708229015 Support user-defined printers taking a formatter as first argument
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3566 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-07-03 11:04:10 +00:00
Jacques Garrigue 02ca0f87f8 enforce uniqueness of typing in label mode
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3490 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-04-19 08:34:21 +00:00
Damien Doligez b594c39052 toplevel: prompt * dans les commentaires
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3418 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-02-14 10:47:23 +00:00
Xavier Leroy 45e2a08277 Petite simplification dans instrument_closure
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3412 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-02-13 08:33:20 +00:00
Jacques Garrigue 714bf2c3fa Tracage d'une fonction utilisee par le toplevel (PR#283)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3408 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-02-12 14:32:38 +00:00
Xavier Leroy 0d336d1961 Imprimer les flottants avec plus de precision et en format %g
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3394 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-02-05 09:01:24 +00:00
Pierre Weis 2116da4220 Getting rid of obsolete boolean operators & and or
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3359 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-12-28 13:07:42 +00:00
Jacques Garrigue 447c79eade deplace expand_directory dans Misc, pour generaliser -I +package
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3358 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-12-28 05:02:43 +00:00
Xavier Leroy 174ed8a2d1 Bug dans l'affichage des exceptions predefinies (e.g. Failure)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3334 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-11-20 12:52:56 +00:00
Xavier Leroy b0e043eb2d Re-faire marcher la trace (PR#213)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3327 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-11-07 13:18:20 +00:00
Damien Doligez b2fdec8e5c option -warn-error, directive #warn_error
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3282 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-08-23 17:13:09 +00:00
Xavier Leroy e29e48a5df Utiliser Hashtbl.replace
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3264 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-07-28 12:26:14 +00:00
Jacques Garrigue 5a5f0fe989 garde les memes noms, mais espaces differents
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3200 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-06-12 14:22:37 +00:00
Jacques Garrigue 402fa47bfd utilise Ident.unique_name plutot que Ident.name pour les globaux
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3197 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-06-12 05:23:11 +00:00
Jacques Garrigue cb76423d18 reset Arg module in run_script
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3168 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-05-22 00:59:13 +00:00
Xavier Leroy 7def4b472a Revu la compilation des liaisons toplevel (utiliser une table de hash au lieu des globaux pour permettre la recuperation memoire des liaisons masquees)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3164 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-05-16 16:19:04 +00:00
Pierre Weis 9abfff060e Suppression de Formatmsg, réécriture des messages à l'aide de Format.fprintf
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3123 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-04-21 08:13:22 +00:00
Xavier Leroy 1926b350c0 Envoyer les sorties du toplevel sur stdout, pas stderr
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3051 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-04-10 14:59:29 +00:00
Pierre Weis ccc63c9e3e Lorsqu'une phrase toplevel consiste uniquement en une directive open
il ne faut pas sauter de ligne.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3000 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-27 15:13:47 +00:00
Xavier Leroy 0f9683375a Revu la verification de coherence lors de #load (pour accepter le cas ou le .cmi ne peut etre trouve)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2998 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-27 14:10:46 +00:00
Xavier Leroy a734dd4b75 Adaptation de #load au nouveau format de .cma
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2996 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-27 11:42:54 +00:00
Xavier Leroy f5442aa165 Verification de coherence .cmo/.cmi dans #load
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2993 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-26 15:50:58 +00:00
Xavier Leroy 87ece3497e Affichage des exceptions, suite
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2991 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-26 12:11:10 +00:00
Xavier Leroy 5c65f975b2 Meilleure impression des exceptions
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2990 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-25 18:55:45 +00:00
Damien Doligez 3f434abf94 re-renommange: "-label" -> "-labels"
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2986 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-24 19:31:25 +00:00
Xavier Leroy 7dfe9784b7 Revu la gestion des records de flottants
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2978 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-21 14:43:25 +00:00
Damien Doligez df6ced1fc9 "modern" -> "label" suite (et fin ?)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2976 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-20 21:00:11 +00:00
Pierre Weis 695b5727b2 Suppression d'un passage à la ligne superfétatoire. Réécris la
fonction d'impression des définitions print_items.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2933 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-09 16:52:57 +00:00
Jacques Garrigue 79791f237f dangers de protect
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2923 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-08 03:38:05 +00:00
Pierre Weis 5d12312d9e Impression des définitions de types.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2920 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-07 19:33:06 +00:00
Pierre Weis b96208b7a2 Revu les impressions du compilateur
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2908 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-06 22:12:09 +00:00
Xavier Leroy ee2c3d5bc6 Nouveau format extensible d'executables bytecode
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2903 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-05 19:18:50 +00:00
Jacques Garrigue d518a33485 new handling of Sys.argv in scripts
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2790 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-02-07 03:29:29 +00:00