diff options
| author | Richard M. Stallman | 1993-06-13 23:57:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-13 23:57:33 +0000 |
| commit | 340f92b5768127c013bc7eb62f1c672a5430955d (patch) | |
| tree | e8cf836395e7888fbbcaa0a2e858d274f9986475 /src/syntax.c | |
| parent | 063fb61f51cc9dbab9eaf4e537255374ee6d4315 (diff) | |
| download | emacs-340f92b5768127c013bc7eb62f1c672a5430955d.tar.gz emacs-340f92b5768127c013bc7eb62f1c672a5430955d.zip | |
(scan_lists, Fforward_comment): Pass 0 as commentstop arg
to scan_sexps_forward.
(scan_sexps_forward, char_quoted): Now static.
(describe_syntax, describe_syntax_1): Now static.
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/syntax.c b/src/syntax.c index e11c5d1c341..89e5f753ba5 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -27,6 +27,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 27 | 27 | ||
| 28 | Lisp_Object Qsyntax_table_p; | 28 | Lisp_Object Qsyntax_table_p; |
| 29 | 29 | ||
| 30 | static void scan_sexps_forward (); | ||
| 31 | static int char_quoted (); | ||
| 32 | |||
| 30 | int words_include_escapes; | 33 | int words_include_escapes; |
| 31 | 34 | ||
| 32 | /* This is the internal form of the parse state used in parse-partial-sexp. */ | 35 | /* This is the internal form of the parse state used in parse-partial-sexp. */ |
| @@ -328,6 +331,7 @@ DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3, | |||
| 328 | 331 | ||
| 329 | /* Dump syntax table to buffer in human-readable format */ | 332 | /* Dump syntax table to buffer in human-readable format */ |
| 330 | 333 | ||
| 334 | static void | ||
| 331 | describe_syntax (value) | 335 | describe_syntax (value) |
| 332 | Lisp_Object value; | 336 | Lisp_Object value; |
| 333 | { | 337 | { |
| @@ -444,7 +448,7 @@ describe_syntax (value) | |||
| 444 | insert_string ("\n"); | 448 | insert_string ("\n"); |
| 445 | } | 449 | } |
| 446 | 450 | ||
| 447 | Lisp_Object | 451 | static Lisp_Object |
| 448 | describe_syntax_1 (vector) | 452 | describe_syntax_1 (vector) |
| 449 | Lisp_Object vector; | 453 | Lisp_Object vector; |
| 450 | { | 454 | { |
| @@ -805,7 +809,7 @@ between them, return t; otherwise return nil.") | |||
| 805 | last passed a comment starter. */ | 809 | last passed a comment starter. */ |
| 806 | struct lisp_parse_state state; | 810 | struct lisp_parse_state state; |
| 807 | scan_sexps_forward (&state, find_defun_start (comment_end), | 811 | scan_sexps_forward (&state, find_defun_start (comment_end), |
| 808 | comment_end - 1, -10000, 0, Qnil, 1); | 812 | comment_end - 1, -10000, 0, Qnil, 0); |
| 809 | if (state.incomment) | 813 | if (state.incomment) |
| 810 | from = state.comstart; | 814 | from = state.comstart; |
| 811 | else | 815 | else |
| @@ -1192,7 +1196,7 @@ scan_lists (from, count, depth, sexpflag) | |||
| 1192 | last passed a comment starter. */ | 1196 | last passed a comment starter. */ |
| 1193 | struct lisp_parse_state state; | 1197 | struct lisp_parse_state state; |
| 1194 | scan_sexps_forward (&state, find_defun_start (comment_end), | 1198 | scan_sexps_forward (&state, find_defun_start (comment_end), |
| 1195 | comment_end - 1, -10000, 0, Qnil, 1); | 1199 | comment_end - 1, -10000, 0, Qnil, 0); |
| 1196 | if (state.incomment) | 1200 | if (state.incomment) |
| 1197 | from = state.comstart; | 1201 | from = state.comstart; |
| 1198 | else | 1202 | else |
| @@ -1238,6 +1242,7 @@ scan_lists (from, count, depth, sexpflag) | |||
| 1238 | /* NOTREACHED */ | 1242 | /* NOTREACHED */ |
| 1239 | } | 1243 | } |
| 1240 | 1244 | ||
| 1245 | static int | ||
| 1241 | char_quoted (pos) | 1246 | char_quoted (pos) |
| 1242 | register int pos; | 1247 | register int pos; |
| 1243 | { | 1248 | { |
| @@ -1321,6 +1326,7 @@ This includes chars with \"quote\" or \"prefix\" syntax (' or p).") | |||
| 1321 | If STOPBEFORE is nonzero, stop at the start of an atom. | 1326 | If STOPBEFORE is nonzero, stop at the start of an atom. |
| 1322 | If COMMENTSTOP is nonzero, stop at the start of a comment. */ | 1327 | If COMMENTSTOP is nonzero, stop at the start of a comment. */ |
| 1323 | 1328 | ||
| 1329 | static void | ||
| 1324 | scan_sexps_forward (stateptr, from, end, targetdepth, | 1330 | scan_sexps_forward (stateptr, from, end, targetdepth, |
| 1325 | stopbefore, oldstate, commentstop) | 1331 | stopbefore, oldstate, commentstop) |
| 1326 | struct lisp_parse_state *stateptr; | 1332 | struct lisp_parse_state *stateptr; |