diff options
| author | Jim Blandy | 1993-03-02 08:11:01 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-03-02 08:11:01 +0000 |
| commit | 0a3e4d653cb1655c33528824aa604a7cb6033fd2 (patch) | |
| tree | 07c184e236cc2168a9a9f0406493dc15c4408bf4 /src/data.c | |
| parent | c39e6cc261de1f6f9d2c872b45257c5476c4373b (diff) | |
| download | emacs-0a3e4d653cb1655c33528824aa604a7cb6033fd2.tar.gz emacs-0a3e4d653cb1655c33528824aa604a7cb6033fd2.zip | |
* data.c (Fstring_to_number): Declare p to be an unsigned char, to
match the data field of strings.
* data.c (Fstring_to_number): Just skip tabs and spaces; don't use
the <ctype.h> macros. The <ctype.h> stuff apparently varies from
locale to locale more than we'd like. Don't include <ctype.h>.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/data.c b/src/data.c index f5003641b38..20a28bee2b5 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -19,7 +19,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | #include <signal.h> | 21 | #include <signal.h> |
| 22 | #include <ctype.h> | ||
| 23 | 22 | ||
| 24 | #include "config.h" | 23 | #include "config.h" |
| 25 | #include "lisp.h" | 24 | #include "lisp.h" |
| @@ -1456,7 +1455,7 @@ This parses both integers and floating point numbers.") | |||
| 1456 | (str) | 1455 | (str) |
| 1457 | register Lisp_Object str; | 1456 | register Lisp_Object str; |
| 1458 | { | 1457 | { |
| 1459 | char *p; | 1458 | unsigned char *p; |
| 1460 | 1459 | ||
| 1461 | CHECK_STRING (str, 0); | 1460 | CHECK_STRING (str, 0); |
| 1462 | 1461 | ||
| @@ -1464,7 +1463,7 @@ This parses both integers and floating point numbers.") | |||
| 1464 | 1463 | ||
| 1465 | /* Skip any whitespace at the front of the number. Some versions of | 1464 | /* Skip any whitespace at the front of the number. Some versions of |
| 1466 | atoi do this anyway, so we might as well make Emacs lisp consistent. */ | 1465 | atoi do this anyway, so we might as well make Emacs lisp consistent. */ |
| 1467 | while (isspace (*p)) | 1466 | while (*p == ' ' || *p == '\t') |
| 1468 | p++; | 1467 | p++; |
| 1469 | 1468 | ||
| 1470 | #ifdef LISP_FLOAT_TYPE | 1469 | #ifdef LISP_FLOAT_TYPE |