diff options
| author | Stefan Monnier | 2003-04-17 21:58:34 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-04-17 21:58:34 +0000 |
| commit | 8a7bde3e88998e8d0469e291842cd30aa147651b (patch) | |
| tree | a45eddc51bc00bc185ecc822c1aa0fb60503b724 | |
| parent | 304f9d2a3de9355ff4bfa6e22b03de76404b2916 (diff) | |
| download | emacs-8a7bde3e88998e8d0469e291842cd30aa147651b.tar.gz emacs-8a7bde3e88998e8d0469e291842cd30aa147651b.zip | |
(Fsubstitute_command_keys): Remove spurious casts.
| -rw-r--r-- | src/doc.c | 11 |
1 files changed, 5 insertions, 6 deletions
| @@ -725,7 +725,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 725 | bsize = SBYTES (string); | 725 | bsize = SBYTES (string); |
| 726 | bufp = buf = (unsigned char *) xmalloc (bsize); | 726 | bufp = buf = (unsigned char *) xmalloc (bsize); |
| 727 | 727 | ||
| 728 | strp = (unsigned char *) SDATA (string); | 728 | strp = SDATA (string); |
| 729 | while (strp < SDATA (string) + SBYTES (string)) | 729 | while (strp < SDATA (string) + SBYTES (string)) |
| 730 | { | 730 | { |
| 731 | if (strp[0] == '\\' && strp[1] == '=') | 731 | if (strp[0] == '\\' && strp[1] == '=') |
| @@ -761,7 +761,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 761 | start = strp; | 761 | start = strp; |
| 762 | start_idx = start - SDATA (string); | 762 | start_idx = start - SDATA (string); |
| 763 | 763 | ||
| 764 | while ((strp - (unsigned char *) SDATA (string) | 764 | while ((strp - SDATA (string) |
| 765 | < SBYTES (string)) | 765 | < SBYTES (string)) |
| 766 | && *strp != ']') | 766 | && *strp != ']') |
| 767 | strp++; | 767 | strp++; |
| @@ -770,7 +770,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 770 | strp++; /* skip ] */ | 770 | strp++; /* skip ] */ |
| 771 | 771 | ||
| 772 | /* Save STRP in IDX. */ | 772 | /* Save STRP in IDX. */ |
| 773 | idx = strp - (unsigned char *) SDATA (string); | 773 | idx = strp - SDATA (string); |
| 774 | tem = Fintern (make_string (start, length_byte), Qnil); | 774 | tem = Fintern (make_string (start, length_byte), Qnil); |
| 775 | 775 | ||
| 776 | /* Note the Fwhere_is_internal can GC, so we have to take | 776 | /* Note the Fwhere_is_internal can GC, so we have to take |
| @@ -821,8 +821,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 821 | start = strp; | 821 | start = strp; |
| 822 | start_idx = start - SDATA (string); | 822 | start_idx = start - SDATA (string); |
| 823 | 823 | ||
| 824 | while ((strp - (unsigned char *) SDATA (string) | 824 | while ((strp - SDATA (string) < SCHARS (string)) |
| 825 | < SCHARS (string)) | ||
| 826 | && *strp != '}' && *strp != '>') | 825 | && *strp != '}' && *strp != '>') |
| 827 | strp++; | 826 | strp++; |
| 828 | 827 | ||
| @@ -830,7 +829,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int | |||
| 830 | strp++; /* skip } or > */ | 829 | strp++; /* skip } or > */ |
| 831 | 830 | ||
| 832 | /* Save STRP in IDX. */ | 831 | /* Save STRP in IDX. */ |
| 833 | idx = strp - (unsigned char *) SDATA (string); | 832 | idx = strp - SDATA (string); |
| 834 | 833 | ||
| 835 | /* Get the value of the keymap in TEM, or nil if undefined. | 834 | /* Get the value of the keymap in TEM, or nil if undefined. |
| 836 | Do this while still in the user's current buffer | 835 | Do this while still in the user's current buffer |