aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-25 20:46:16 +0000
committerRichard M. Stallman1993-05-25 20:46:16 +0000
commit840f481ca4f3358dc9e5204a3542d69ae6c41422 (patch)
tree2e6cf821b6cae83d41e229db5a20ddc67ef7b62e /src/syntax.c
parentbbc4efeba0e1d1088f904648a935419f3dff4c14 (diff)
downloademacs-840f481ca4f3358dc9e5204a3542d69ae6c41422.tar.gz
emacs-840f481ca4f3358dc9e5204a3542d69ae6c41422.zip
(Fforward_comment): Arg is a Lisp_Object.
Convert it to an int.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 2ade690b274..4ffc7d7eea3 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -570,7 +570,7 @@ Stop scanning if we find something other than a comment or whitespace.\n\
570If N comments are found as expected, with nothing except whitespace\n\ 570If N comments are found as expected, with nothing except whitespace\n\
571between them, return t; otherwise return nil.") 571between them, return t; otherwise return nil.")
572 (count) 572 (count)
573 int count; 573 Lisp_Object count;
574{ 574{
575 register int from; 575 register int from;
576 register int stop; 576 register int stop;
@@ -578,6 +578,10 @@ between them, return t; otherwise return nil.")
578 register enum syntaxcode code; 578 register enum syntaxcode code;
579 int comstyle = 0; /* style of comment encountered */ 579 int comstyle = 0; /* style of comment encountered */
580 int found; 580 int found;
581 int count1;
582
583 CHECK_NUMBER (count, 0);
584 count1 = XINT (count);
581 585
582 immediate_quit = 1; 586 immediate_quit = 1;
583 QUIT; 587 QUIT;
@@ -585,7 +589,7 @@ between them, return t; otherwise return nil.")
585 from = PT; 589 from = PT;
586 found = from; 590 found = from;
587 591
588 while (count > 0) 592 while (count1 > 0)
589 { 593 {
590 found = from; 594 found = from;
591 stop = ZV; 595 stop = ZV;
@@ -646,10 +650,10 @@ between them, return t; otherwise return nil.")
646 } 650 }
647 651
648 /* End of comment reached */ 652 /* End of comment reached */
649 count--; 653 count1--;
650 } 654 }
651 655
652 while (count < 0) 656 while (count1 < 0)
653 { 657 {
654 found = from; 658 found = from;
655 659
@@ -821,7 +825,7 @@ between them, return t; otherwise return nil.")
821 } 825 }
822 } 826 }
823 827
824 count++; 828 count1++;
825 } 829 }
826 830
827 SET_PT (from); 831 SET_PT (from);