aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-13 23:57:33 +0000
committerRichard M. Stallman1993-06-13 23:57:33 +0000
commit340f92b5768127c013bc7eb62f1c672a5430955d (patch)
treee8cf836395e7888fbbcaa0a2e858d274f9986475 /src
parent063fb61f51cc9dbab9eaf4e537255374ee6d4315 (diff)
downloademacs-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')
-rw-r--r--src/syntax.c12
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
28Lisp_Object Qsyntax_table_p; 28Lisp_Object Qsyntax_table_p;
29 29
30static void scan_sexps_forward ();
31static int char_quoted ();
32
30int words_include_escapes; 33int 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
334static void
331describe_syntax (value) 335describe_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
447Lisp_Object 451static Lisp_Object
448describe_syntax_1 (vector) 452describe_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
1245static int
1241char_quoted (pos) 1246char_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
1329static void
1324scan_sexps_forward (stateptr, from, end, targetdepth, 1330scan_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;