diff options
| author | Karl Heuer | 1994-03-29 05:58:40 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-03-29 05:58:40 +0000 |
| commit | ccf39e5651c22e6357cebd7c24026743f22b6c22 (patch) | |
| tree | 7313270db41e69b306c1f738bdd0798b3fa8c4ef /src | |
| parent | 546714cf353527b3429a3d10527b2fe6ea1f18d0 (diff) | |
| download | emacs-ccf39e5651c22e6357cebd7c24026743f22b6c22.tar.gz emacs-ccf39e5651c22e6357cebd7c24026743f22b6c22.zip | |
(Fcompute_motion): Typecheck all arguments.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/indent.c b/src/indent.c index 83122d3b0db..01777f7d0bb 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -651,11 +651,20 @@ visible section of the buffer, and pass LINE and COL as TOPOS.") | |||
| 651 | struct position *pos; | 651 | struct position *pos; |
| 652 | int hscroll, tab_offset; | 652 | int hscroll, tab_offset; |
| 653 | 653 | ||
| 654 | CHECK_INT (from, 0); | ||
| 654 | CHECK_CONS (frompos, 0); | 655 | CHECK_CONS (frompos, 0); |
| 656 | CHECK_INT (XCONS (frompos)->car, 0); | ||
| 657 | CHECK_INT (XCONS (frompos)->cdr, 0); | ||
| 658 | CHECK_INT (to, 0); | ||
| 655 | CHECK_CONS (topos, 0); | 659 | CHECK_CONS (topos, 0); |
| 660 | CHECK_INT (XCONS (topos)->car, 0); | ||
| 661 | CHECK_INT (XCONS (topos)->cdr, 0); | ||
| 662 | CHECK_INT (width); | ||
| 656 | if (!NILP (offsets)) | 663 | if (!NILP (offsets)) |
| 657 | { | 664 | { |
| 658 | CHECK_CONS (offsets, 0); | 665 | CHECK_CONS (offsets, 0); |
| 666 | CHECK_INT (XCONS (offsets)->car); | ||
| 667 | CHECK_INT (XCONS (offsets)->cdr); | ||
| 659 | hscroll = XINT (XCONS (offsets)->car); | 668 | hscroll = XINT (XCONS (offsets)->car); |
| 660 | tab_offset = XINT (XCONS (offsets)->cdr); | 669 | tab_offset = XINT (XCONS (offsets)->cdr); |
| 661 | } | 670 | } |