diff options
| author | Gerd Moellmann | 1999-09-20 00:34:44 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-09-20 00:34:44 +0000 |
| commit | 4ffe723bfed1f3d09a0b2805d61c568065af7d46 (patch) | |
| tree | d4989408d1a96e08dd21a51b2cb2df257509000f /src/syntax.c | |
| parent | 41d03b9a59ba9ff8cf39ce4f225e73c32fdc6604 (diff) | |
| download | emacs-4ffe723bfed1f3d09a0b2805d61c568065af7d46.tar.gz emacs-4ffe723bfed1f3d09a0b2805d61c568065af7d46.zip | |
(update_syntax_table, find_defun_start, back_comment,
describe_syntax, skip_chars): Remove unused variables.
(back_comment, forw_comment): Add braces to if-statement with
if-else as dependent statement.
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/src/syntax.c b/src/syntax.c index 98829863d42..7272cf38fd9 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -120,7 +120,7 @@ update_syntax_table (charpos, count, init, object) | |||
| 120 | Lisp_Object object; | 120 | Lisp_Object object; |
| 121 | { | 121 | { |
| 122 | Lisp_Object tmp_table; | 122 | Lisp_Object tmp_table; |
| 123 | int cnt = 0, doing_extra = 0, invalidate = 1; | 123 | int cnt = 0, invalidate = 1; |
| 124 | INTERVAL i, oldi; | 124 | INTERVAL i, oldi; |
| 125 | 125 | ||
| 126 | if (init) | 126 | if (init) |
| @@ -345,8 +345,6 @@ static int | |||
| 345 | find_defun_start (pos, pos_byte) | 345 | find_defun_start (pos, pos_byte) |
| 346 | int pos, pos_byte; | 346 | int pos, pos_byte; |
| 347 | { | 347 | { |
| 348 | int tem; | ||
| 349 | int shortage; | ||
| 350 | int opoint = PT, opoint_byte = PT_BYTE; | 348 | int opoint = PT, opoint_byte = PT_BYTE; |
| 351 | 349 | ||
| 352 | /* Use previous finding, if it's valid and applies to this inquiry. */ | 350 | /* Use previous finding, if it's valid and applies to this inquiry. */ |
| @@ -480,7 +478,7 @@ back_comment (from, from_byte, stop, comnested, comstyle, charpos_ptr, bytepos_p | |||
| 480 | that determines quote parity to the comment-end. */ | 478 | that determines quote parity to the comment-end. */ |
| 481 | while (from != stop) | 479 | while (from != stop) |
| 482 | { | 480 | { |
| 483 | int temp_byte, prev_comend_second; | 481 | int temp_byte; |
| 484 | 482 | ||
| 485 | /* Move back and examine a character. */ | 483 | /* Move back and examine a character. */ |
| 486 | DEC_BOTH (from, from_byte); | 484 | DEC_BOTH (from, from_byte); |
| @@ -565,10 +563,12 @@ back_comment (from, from_byte, stop, comnested, comstyle, charpos_ptr, bytepos_p | |||
| 565 | (because they go with the earlier comment-ender). */ | 563 | (because they go with the earlier comment-ender). */ |
| 566 | if (code == Sendcomment | 564 | if (code == Sendcomment |
| 567 | && SYNTAX_COMMENT_STYLE (FETCH_CHAR (from_byte)) == comstyle) | 565 | && SYNTAX_COMMENT_STYLE (FETCH_CHAR (from_byte)) == comstyle) |
| 568 | if (comnested) | 566 | { |
| 569 | nesting++; | 567 | if (comnested) |
| 570 | else | 568 | nesting++; |
| 571 | break; | 569 | else |
| 570 | break; | ||
| 571 | } | ||
| 572 | 572 | ||
| 573 | /* Assume a defun-start point is outside of strings. */ | 573 | /* Assume a defun-start point is outside of strings. */ |
| 574 | if (code == Sopen | 574 | if (code == Sopen |
| @@ -955,7 +955,7 @@ describe_syntax (value) | |||
| 955 | Lisp_Object value; | 955 | Lisp_Object value; |
| 956 | { | 956 | { |
| 957 | register enum syntaxcode code; | 957 | register enum syntaxcode code; |
| 958 | char desc, match, start1, start2, end1, end2, prefix, comstyle; | 958 | char desc, start1, start2, end1, end2, prefix, comstyle; |
| 959 | char str[2]; | 959 | char str[2]; |
| 960 | Lisp_Object first, match_lisp; | 960 | Lisp_Object first, match_lisp; |
| 961 | 961 | ||
| @@ -1304,7 +1304,6 @@ skip_chars (forwardp, syntaxp, string, lim) | |||
| 1304 | int forwardp, syntaxp; | 1304 | int forwardp, syntaxp; |
| 1305 | Lisp_Object string, lim; | 1305 | Lisp_Object string, lim; |
| 1306 | { | 1306 | { |
| 1307 | register unsigned char *p, *pend; | ||
| 1308 | register unsigned int c; | 1307 | register unsigned int c; |
| 1309 | register int ch; | 1308 | register int ch; |
| 1310 | unsigned char fastmap[0400]; | 1309 | unsigned char fastmap[0400]; |
| @@ -1705,16 +1704,18 @@ forw_comment (from, from_byte, stop, nesting, style, prev_syntax, | |||
| 1705 | && SYNTAX_FLAGS_COMMENT_STYLE (syntax) == style | 1704 | && SYNTAX_FLAGS_COMMENT_STYLE (syntax) == style |
| 1706 | && (c1 = FETCH_CHAR (from_byte), | 1705 | && (c1 = FETCH_CHAR (from_byte), |
| 1707 | SYNTAX_COMEND_SECOND (c1))) | 1706 | SYNTAX_COMEND_SECOND (c1))) |
| 1708 | if (--nesting <= 0) | 1707 | { |
| 1709 | /* we have encountered a comment end of the same style | 1708 | if (--nesting <= 0) |
| 1710 | as the comment sequence which began this comment | 1709 | /* we have encountered a comment end of the same style |
| 1711 | section */ | 1710 | as the comment sequence which began this comment |
| 1712 | break; | 1711 | section */ |
| 1713 | else | 1712 | break; |
| 1714 | { | 1713 | else |
| 1715 | INC_BOTH (from, from_byte); | 1714 | { |
| 1716 | UPDATE_SYNTAX_TABLE_FORWARD (from); | 1715 | INC_BOTH (from, from_byte); |
| 1717 | } | 1716 | UPDATE_SYNTAX_TABLE_FORWARD (from); |
| 1717 | } | ||
| 1718 | } | ||
| 1718 | if (nesting > 0 | 1719 | if (nesting > 0 |
| 1719 | && from < stop | 1720 | && from < stop |
| 1720 | && SYNTAX_FLAGS_COMSTART_FIRST (syntax) | 1721 | && SYNTAX_FLAGS_COMSTART_FIRST (syntax) |