Pierre Weis
cf0590146f
Code review before adding new typing of format string.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7396 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-05-04 12:52:22 +00:00
Damien Doligez
1279ab4b76
fusion des changements 3.09.1 -> 3.09.2
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7382 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-04-16 23:28:22 +00:00
Pierre Weis
cd49f2b781
Dead code removed + typos.
...
cvs: ----------------------------------------------------------------------
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7375 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-04-05 15:39:10 +00:00
Pierre Weis
176b3c0da8
Module Sformat is internal to printf. Better typing specifications of functions working with format strings.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7374 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-04-05 11:49:07 +00:00
Pierre Weis
dca5609f32
Importing the 3.09 debugging version of Printf.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7333 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-01-24 11:12:26 +00:00
Pierre Weis
129535d070
Correcting bug for %{ conversions.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7300 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-01-04 08:50:40 +00:00
Damien Doligez
0e5ca9dca5
nettoyage
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7164 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-10-25 18:34:07 +00:00
Pierre Weis
19096f90f3
Hard bug in printf: when the first argument to print was a floating point
...
number, the printing process failed and we had a fatal error.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7095 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-09-30 16:15:18 +00:00
Pierre Weis
922746e675
Implementing positional parameters in format string. First step:
...
runtime implementation for printf-like functions.
Revising printf documentation and adding something for positional
parameters.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7082 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-09-26 10:12:01 +00:00
Pierre Weis
339b08f82f
Closing a long standing bug in the implementation of printf-like
...
functions: partially applied printf functions were printing material
as soon as the first argument was applied (and even before: printing
started as soon as the format string was provided).
This is the first step towards the implementation of $ formats
(i.e. formats that can access directly to any of their arguments,
using a $n notation to denote the nth argument (``a la Yacc'')). This
is supposed to be mandatory to internationalisation of messages.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7060 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-09-20 17:18:03 +00:00
Pierre Weis
32e84c0515
Homogènésation des interfaces de printf et format: kprintf est marquée
...
obsolète au profit de ksprintf; on introduit kfprintf.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6979 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-07-22 12:21:02 +00:00
Pierre Weis
280dcb3097
Correcting bug about erroneous erro reporting in case of wrong
...
conversions in format strings.
Static and dynamic messages about wrong format strings are now very
similar in printf.ml, scanf.ml, and typecore.ml.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6802 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-03-04 14:51:31 +00:00
Pierre Weis
53c525611e
Invalid format string error report is more uniform.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6726 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-12-07 06:17:12 +00:00
Pierre Weis
09b2253f0e
Doc (typos).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-11-16 10:25:59 +00:00
Pierre Weis
83b16075a3
Dead code elimination.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6627 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-10-04 20:21:04 +00:00
Pierre Weis
b0270c4cf9
Implementation des meta formats.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6621 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-09-22 09:17:21 +00:00
Damien Doligez
0c7aecb88d
depollution suite (et fin?) (PR#1914 et PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6047 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-02 19:23:29 +00:00
Damien Doligez
5a678d29f5
depollution suite (PR#1914 et PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6045 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-01 16:42:43 +00:00
Xavier Leroy
e32fbbf849
Code mort
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5659 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-05 11:17:52 +00:00
Damien Doligez
0a1f0f864b
desactivation du format %$
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5644 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-02 14:06:05 +00:00
Damien Doligez
b37e53cef1
PR#1675, voir aussi PR#1438
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5641 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-01 16:30:12 +00:00
Pierre Weis
9e6895aded
Introducing format %$ (to print strings with variables substitution)
...
and %! (to flush the output). See printf.mli for details.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5517 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-04-28 09:44:21 +00:00
Damien Doligez
f0dd3c5ae7
bug de printf "%8s" x qui tronquait x a 8 caracteres
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5436 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-03-12 16:40:35 +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
Pierre Weis
9fd8825b8d
adding C-like %n format for scanf. For printf %n is an alias fr %i.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5313 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-12-08 13:52:02 +00:00
Pierre Weis
6df4c2b6de
Introducing (and using) string and string format coercions.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5211 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-31 10:00:02 +00:00
Pierre Weis
236c7c3408
Legere mise en facteur.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5208 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-30 23:47:54 +00:00
Pierre Weis
e95dce8553
Provision for printing of unsigned numbers in binary notation.
...
(Still to be revised.)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5158 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-07 12:15:17 +00:00
Pierre Weis
66f225a7bf
Too optimistic implementation of %F format: we have to do the all job on
...
the Caml side.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5122 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-09-06 10:05:33 +00:00
Pierre Weis
0d986a420a
Introducing new format %F and %B to print parsable float and bools.
...
(For bools format B is equivalent to format b, which can now be used
for something else: printing integers in binary format ?).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5115 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-09-05 10:27:34 +00:00
Pierre Weis
52d75a5e19
Introducing format %C and %S to print (and read) strings and chars
...
with escaped and delimitors (as Objective Caml tokens).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4804 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-12 18:37:49 +00:00
Damien Doligez
4e87d1239d
deps + factorisation sprintf/kprintf
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4529 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-13 17:34:58 +00:00
Damien Doligez
818a4463bd
ajout kprintf
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4523 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-13 14:08:10 +00:00
Xavier Leroy
7501784c80
MAJ en-tetes pour mentionner la 'special exception' sur la LGPL
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 13:41:02 +00:00
Xavier Leroy
11113cbc09
Ajout formats pour int32, nativeint, int64. Support pour * dans les specifications. Partage du code de parsing des %formats.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3934 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-28 14:21:27 +00:00
Xavier Leroy
cc0f32b054
Changement de la licence
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17 18:59:06 +00:00
Xavier Leroy
dbc3d62830
Meilleur comportement de sprintf en cas d'application partielle
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2373 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-05-15 17:06:40 +00:00
Xavier Leroy
a5eb7789fd
Revu le module Buffer.
...
Utilise Buffer dans Printf.sprintf; ajout Printf.bprintf.
Ajout Map.mem.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2309 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-02-25 10:26:38 +00:00
Pierre Weis
47d8487edc
Argument %i + message d'erreur.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2292 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-02-17 18:49:17 +00:00
Pierre Weis
83fe3134c3
Ajout du format %i comme spécifié dans la doc.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2274 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-02-12 12:34:32 +00:00
Xavier Leroy
2301d778e7
Renommage en Objective Caml
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@782 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-04-30 14:53:58 +00:00
Xavier Leroy
a241622210
Correction de sprintf
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@458 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-11-21 09:22:35 +00:00
Xavier Leroy
e4066357b1
Ajout des notices de copyright
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-08-09 15:06:35 +00:00
Xavier Leroy
997fb206a7
Printf.sprintf et String.concat dans stdlib
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-05-05 10:05:18 +00:00
Xavier Leroy
61bd8ace6b
Passage a la version bootstrappee (franchissement du Rubicon)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-05-04 10:15:53 +00:00