Mercurial > emacs
diff src/lisp.h @ 106406:b793459cea92
Fix `string-to-number' to deal consistently with integers and floats.
* lread.c (isfloat_string): New argument ignore_trailing to accept all
trailing characters, not just whitespace.
(read1): Pass new arg 0 to keep old behavior.
* data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
trailing chars, as it is already done for integers. Doc fixes.
* lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
| author | Juanma Barranquero <lekktu@gmail.com> |
|---|---|
| date | Fri, 04 Dec 2009 16:16:26 +0000 |
| parents | 8c46fe65b4c6 |
| children | 1d1d5d9bd884 |
line wrap: on
line diff
--- a/src/lisp.h Fri Dec 04 10:51:37 2009 +0000 +++ b/src/lisp.h Fri Dec 04 16:16:26 2009 +0000 @@ -2795,7 +2795,7 @@ extern Lisp_Object Vload_history, Vload_suffixes, Vload_file_rep_suffixes; extern int openp P_ ((Lisp_Object, Lisp_Object, Lisp_Object, Lisp_Object *, Lisp_Object)); -extern int isfloat_string P_ ((char *)); +extern int isfloat_string P_ ((char *, int)); extern void map_obarray P_ ((Lisp_Object, void (*) (Lisp_Object, Lisp_Object), Lisp_Object)); extern void dir_warning P_ ((char *, Lisp_Object));
