diff options
| author | Gerd Moellmann | 1999-09-20 23:18:38 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-09-20 23:18:38 +0000 |
| commit | dd8daec5e8e4352cbc1d3b1cd1d9c67ae232b760 (patch) | |
| tree | ba2b409c57d73ba7e7832a9bc17ee959d0646e5d /src/data.c | |
| parent | fe568ef5dcf0a71079f04b11852aa07bf1e0fd52 (diff) | |
| download | emacs-dd8daec5e8e4352cbc1d3b1cd1d9c67ae232b760.tar.gz emacs-dd8daec5e8e4352cbc1d3b1cd1d9c67ae232b760.zip | |
(find_symbol_value): Remove unused variables.
(Faref, Fstring_to_number): Ditto.
(toplevel): Include stdio.h.
(Fnumber_to_string): Cast XINT to long for %ld.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/data.c b/src/data.c index 371d81514cf..2c7e2298a50 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -22,6 +22,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 22 | #include <signal.h> | 22 | #include <signal.h> |
| 23 | 23 | ||
| 24 | #include <config.h> | 24 | #include <config.h> |
| 25 | #include <stdio.h> | ||
| 25 | #include "lisp.h" | 26 | #include "lisp.h" |
| 26 | #include "puresize.h" | 27 | #include "puresize.h" |
| 27 | #include "charset.h" | 28 | #include "charset.h" |
| @@ -885,7 +886,7 @@ Lisp_Object | |||
| 885 | find_symbol_value (symbol) | 886 | find_symbol_value (symbol) |
| 886 | Lisp_Object symbol; | 887 | Lisp_Object symbol; |
| 887 | { | 888 | { |
| 888 | register Lisp_Object valcontents, tem1; | 889 | register Lisp_Object valcontents; |
| 889 | register Lisp_Object val; | 890 | register Lisp_Object val; |
| 890 | CHECK_SYMBOL (symbol, 0); | 891 | CHECK_SYMBOL (symbol, 0); |
| 891 | valcontents = XSYMBOL (symbol)->value; | 892 | valcontents = XSYMBOL (symbol)->value; |
| @@ -1643,7 +1644,6 @@ or a byte-code object. IDX starts at 0.") | |||
| 1643 | idxval = XINT (idx); | 1644 | idxval = XINT (idx); |
| 1644 | if (STRINGP (array)) | 1645 | if (STRINGP (array)) |
| 1645 | { | 1646 | { |
| 1646 | Lisp_Object val; | ||
| 1647 | int c, idxval_byte; | 1647 | int c, idxval_byte; |
| 1648 | 1648 | ||
| 1649 | if (idxval < 0 || idxval >= XSTRING (array)->size) | 1649 | if (idxval < 0 || idxval >= XSTRING (array)->size) |
| @@ -1796,8 +1796,6 @@ IDX starts at 0.") | |||
| 1796 | } | 1796 | } |
| 1797 | else if (CHAR_TABLE_P (array)) | 1797 | else if (CHAR_TABLE_P (array)) |
| 1798 | { | 1798 | { |
| 1799 | Lisp_Object val; | ||
| 1800 | |||
| 1801 | if (idxval < 0) | 1799 | if (idxval < 0) |
| 1802 | args_out_of_range (array, idx); | 1800 | args_out_of_range (array, idx); |
| 1803 | if (idxval < CHAR_TABLE_ORDINARY_SLOTS) | 1801 | if (idxval < CHAR_TABLE_ORDINARY_SLOTS) |
| @@ -1841,7 +1839,7 @@ IDX starts at 0.") | |||
| 1841 | } | 1839 | } |
| 1842 | else if (STRING_MULTIBYTE (array)) | 1840 | else if (STRING_MULTIBYTE (array)) |
| 1843 | { | 1841 | { |
| 1844 | int c, idxval_byte, new_len, actual_len; | 1842 | int idxval_byte, new_len, actual_len; |
| 1845 | int prev_byte; | 1843 | int prev_byte; |
| 1846 | unsigned char *p, workbuf[4], *str; | 1844 | unsigned char *p, workbuf[4], *str; |
| 1847 | 1845 | ||
| @@ -2072,7 +2070,7 @@ NUMBER may be an integer or a floating point number.") | |||
| 2072 | if (sizeof (int) == sizeof (EMACS_INT)) | 2070 | if (sizeof (int) == sizeof (EMACS_INT)) |
| 2073 | sprintf (buffer, "%d", XINT (number)); | 2071 | sprintf (buffer, "%d", XINT (number)); |
| 2074 | else if (sizeof (long) == sizeof (EMACS_INT)) | 2072 | else if (sizeof (long) == sizeof (EMACS_INT)) |
| 2075 | sprintf (buffer, "%ld", XINT (number)); | 2073 | sprintf (buffer, "%ld", (long) XINT (number)); |
| 2076 | else | 2074 | else |
| 2077 | abort (); | 2075 | abort (); |
| 2078 | return build_string (buffer); | 2076 | return build_string (buffer); |
| @@ -2111,7 +2109,7 @@ If the base used is not 10, floating point is not recognized.") | |||
| 2111 | register Lisp_Object string, base; | 2109 | register Lisp_Object string, base; |
| 2112 | { | 2110 | { |
| 2113 | register unsigned char *p; | 2111 | register unsigned char *p; |
| 2114 | register int b, digit, v = 0; | 2112 | register int b, v = 0; |
| 2115 | int negative = 1; | 2113 | int negative = 1; |
| 2116 | 2114 | ||
| 2117 | CHECK_STRING (string, 0); | 2115 | CHECK_STRING (string, 0); |