1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

* data.c (Fstring_to_number): Document results if unparsable.

Fixes: debbugs:16551
This commit is contained in:
Paul Eggert 2014-01-26 11:44:23 -08:00
parent 748650f087
commit 12cb2b063b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2014-01-26 Paul Eggert <eggert@cs.ucla.edu>
* data.c (Fstring_to_number): Document results if unparsable
(Bug#16551).
2014-01-26 Jan Djärv <jan.h.d@swipnet.se>
* xterm.c (x_focus_changed): Check for non-X terminal-frame (Bug#16540)

View File

@ -2523,12 +2523,12 @@ NUMBER may be an integer or a floating point number. */)
DEFUN ("string-to-number", Fstring_to_number, Sstring_to_number, 1, 2, 0,
doc: /* Parse STRING as a decimal number and return the number.
This parses both integers and floating point numbers.
It ignores leading spaces and tabs, and all trailing chars.
Ignore leading spaces and tabs, and all trailing chars. Return 0 if
STRING cannot be parsed as an integer or floating point number.
If BASE, interpret STRING as a number in that base. If BASE isn't
present, base 10 is used. BASE must be between 2 and 16 (inclusive).
If the base used is not 10, STRING is always parsed as integer. */)
If the base used is not 10, STRING is always parsed as an integer. */)
(register Lisp_Object string, Lisp_Object base)
{
register char *p;