Mercurial > emacs
comparison src/syntax.c @ 3095:ef7d99920f81
(Fforward_comment): Arg is a Lisp_Object.
Convert it to an int.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 25 May 1993 20:46:16 +0000 |
parents | ea0cb469490e |
children | 3ee951a22a80 |
comparison
equal
deleted
inserted
replaced
3094:4b3770f84aa7 | 3095:ef7d99920f81 |
---|---|
568 Set point to the far end of the last comment found.\n\ | 568 Set point to the far end of the last comment found.\n\ |
569 Stop scanning if we find something other than a comment or whitespace.\n\ | 569 Stop scanning if we find something other than a comment or whitespace.\n\ |
570 If N comments are found as expected, with nothing except whitespace\n\ | 570 If N comments are found as expected, with nothing except whitespace\n\ |
571 between them, return t; otherwise return nil.") | 571 between 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; |
577 register int c; | 577 register int c; |
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; |
584 | 588 |
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; |
592 while (from < stop) | 596 while (from < stop) |
593 { | 597 { |
644 return Qnil; | 648 return Qnil; |
645 } | 649 } |
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 |
656 stop = BEGV; | 660 stop = BEGV; |
657 while (from > stop) | 661 while (from > stop) |
819 SET_PT (found); | 823 SET_PT (found); |
820 return Qnil; | 824 return Qnil; |
821 } | 825 } |
822 } | 826 } |
823 | 827 |
824 count++; | 828 count1++; |
825 } | 829 } |
826 | 830 |
827 SET_PT (from); | 831 SET_PT (from); |
828 immediate_quit = 0; | 832 immediate_quit = 0; |
829 return Qt; | 833 return Qt; |